Authorization: Bearer ********************curl --location 'https://openai.qiniu.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "claude-4.5-sonnet",
"messages": [
{
"content": [
{
"text": "什么是太阳",
"type": "text"
}
],
"role": "user"
}
],
"thinking": {
"type": "enabled",
"budget_tokens": 1024 // claude-4.5-sonnet 模型支持最小为 1024,最大值要小于 max_token
}
}'{}