Authorization: ********************{
"model": "claude-4.5-sonnet",
"messages": [
{
"content": [
{
"text": "What is the sun",
"type": "text"
}
],
"role": "user"
}
],
"thinking": {
"type": "enabled",
"budget_tokens": 1024 // claude-4.5-sonnet model supports a minimum of 1024, maximum value must be less than max_token
}
}curl --location 'https://api-xmodel.nexconn.ai/v1/chat/completions' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"model": "claude-4.5-sonnet",
"messages": [
{
"content": [
{
"text": "What is the sun",
"type": "text"
}
],
"role": "user"
}
],
"thinking": {
"type": "enabled",
"budget_tokens": 1024 // claude-4.5-sonnet model supports a minimum of 1024, maximum value must be less than max_token
}
}'{}