Authorization: Bearer ********************{
"model": "gpt-5.2-chat",
"max_tokens": 2000,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "1+2+3+4+...+100=?"
}
]
}
],
"temperature": 0.8,
"top_p": 0.1,
"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": "gpt-5.2-chat",
"max_tokens": 2000,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "1+2+3+4+...+100=?"
}
]
}
],
"temperature": 0.8,
"top_p": 0.1,
"steam": false
}'{
"id": "chatcmpl-CqsFnmr28FT14LIdzelKLjcLm3Efp",
"object": "chat.completion",
"created": 1766717643,
"model": "gpt-5.2-chat",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The sum of the integers from 1 to 100 is:\n\n5050",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 25,
"total_tokens": 43,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
},
"system_fingerprint": null
}