curl --location --request POST 'https://cn2us02.opapi.win/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Say test"
}
]
}'
{
"id": "chatcmpl-CKHZZAc3pBCNZrwv5PoN8yXMuEbiT",
"object": "chat.completion",
"created": 1758950145,
"model": "gpt-5-nano-2025-08-07",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "test",
"refusal": null,
"annotations": []
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 138,
"total_tokens": 156,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 128,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
},
"service_tier": "default",
"system_fingerprint": null
}