Authorization: Bearer ********************{
"model": "claude-opus-4-5-20251101",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "1+2+3+4+...+100=?"
}
]
}
],
"temperature": 0.8,
"top_p": 0.1,
"max_tokens": 300,
"steam": false
}curl --location --request POST 'https://api.mixrouter.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-opus-4-5-20251101",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "1+2+3+4+...+100=?"
}
]
}
],
"temperature": 0.8,
"top_p": 0.1,
"max_tokens": 300,
"steam": false
}'{
"id": "msg_01YHGPdhsgE5NjPyVF8tfKkK",
"model": "claude-opus-4-5-20251101",
"object": "chat.completion",
"created": 1765209435,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "<budget:thinking>\nThis is a simple arithmetic series problem. I need to find the sum 1+2+3+...+100.\n</budget:thinking>\n\nUsing the formula for the sum of an arithmetic series: S = n(n+1)/2\n\nFor n = 100:\nS = 100 × 101 / 2 = **5050**"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 21,
"completion_tokens": 87,
"total_tokens": 108,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 0,
"audio_tokens": 0,
"image_tokens": 0
},
"completion_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0
},
"output_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0
},
"input_tokens": 0,
"output_tokens": 0,
"input_tokens_details": null,
"claude_cache_creation_5_m_tokens": 0,
"claude_cache_creation_1_h_tokens": 0
}
}