Authorization: Bearer ********************{
"model": "gpt-4o-mini",
"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-4o-mini",
"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-CqaE04p8lM9SbUT7SpjnAR1v3GPmD",
"object": "chat.completion",
"created": 1766648340,
"model": "gpt-4o-mini-2024-07-18",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The sum of the first \\( n \\) natural numbers can be calculated using the formula:\n\n\\[\nS = \\frac{n(n + 1)}{2}\n\\]\n\nFor \\( n = 100 \\):\n\n\\[\nS = \\frac{100(100 + 1)}{2} = \\frac{100 \\times 101}{2} = \\frac{10100}{2} = 5050\n\\]\n\nSo, the sum \\( 1 + 2 + 3 + \\ldots + 100 = 5050 \\).",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 19,
"completion_tokens": 116,
"total_tokens": 135,
"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_f97eff32c5"
}