Authorization: Bearer ********************{
"model": "gpt-4",
"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-4",
"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-CqZXLqcFBqpPsFqidtxNBb54A7cPK",
"object": "chat.completion",
"created": 1766645695,
"model": "gpt-4",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The sum \\(1 + 2 + 3 + \\ldots + 100\\) is the sum of the first 100 natural numbers.\n\nThe formula for the sum of the first \\(n\\) natural numbers is:\n\n\\[\nS = \\frac{n(n+1)}{2}\n\\]\n\nFor \\(n = 100\\):\n\n\\[\nS = \\frac{100 \\times 101}{2} = \\frac{10100}{2} = 5050\n\\]\n\n**Final answer:**\n\n\\[\n1 + 2 + 3 + \\ldots + 100 = \\boxed{5050}\n\\]",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop",
"content_filter_results": {
"hate": {
"filtered": false,
"severity": "safe"
},
"self_harm": {
"filtered": false,
"severity": "safe"
},
"sexual": {
"filtered": false,
"severity": "safe"
},
"violence": {
"filtered": false,
"severity": "safe"
}
}
}
],
"usage": {
"prompt_tokens": 19,
"completion_tokens": 133,
"total_tokens": 152,
"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_b9041e10b4",
"prompt_filter_results": [
{
"prompt_index": 0,
"content_filter_results": {
"hate": {
"filtered": false,
"severity": "safe"
},
"self_harm": {
"filtered": false,
"severity": "safe"
},
"sexual": {
"filtered": false,
"severity": "safe"
},
"violence": {
"filtered": false,
"severity": "safe"
}
}
}
]
}