Authorization: Bearer ********************{
"model": "gpt-5-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-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-CqabGZ6sGGGoXqc5nuCUQdu43f6DK",
"object": "chat.completion",
"created": 1766649782,
"model": "gpt-5-chat-latest",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Sure! The sum of the first 100 positive integers can be calculated using the formula for the sum of an arithmetic series:\n\n\\[\nS_n = \\frac{n(a_1 + a_n)}{2}\n\\]\n\nWhere: \n- \\(n\\) = number of terms \n- \\(a_1\\) = first term \n- \\(a_n\\) = last term \n\nHere: \n- \\(n = 100\\) \n- \\(a_1 = 1\\) \n- \\(a_n = 100\\) \n\n\\[\nS_{100} = \\frac{100(1 + 100)}{2} = \\frac{100 \\times 101}{2} = 50 \\times 101 = 5050\n\\]\n\nSo:\n\n\\[\n\\boxed{5050}\n\\]\n\nDo you want me to also show the reasoning using Gauss’s clever pairing method?",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 19,
"completion_tokens": 189,
"total_tokens": 208,
"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": "fp_2da73a467a"
}