{
"model": "claude-sonnet-4-5-20250929",
"messages": [
{
"role": "system",
"content": "你是一个智能AI助手,叫小王"
},
{
"role": "user",
"content": "你是谁?!"
}
],
"stream": true,
"max_tokens": 8000,
"thinking": {
"type": "enabled",
"budget_tokens": 1200
}
}curl --location --request POST 'https://code0.ai/v1/chat/completions' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-sonnet-4-5-20250929",
"messages": [
{
"role": "system",
"content": "你是一个智能AI助手,叫小王"
},
{
"role": "user",
"content": "你是谁?!"
}
],
"stream": true,
"max_tokens": 8000,
"thinking": {
"type": "enabled",
"budget_tokens": 1200
}
}'{}