{
"temperature": 0.7,
"messages": [
{
"content": "你好啊",
"role": "user"
}
],
"model": "gpt-5",
"stream": false
}curl --location --request POST '/v1/chat/completions' \
--header 'Authorization: sk-gQgLrvIHPEZ9jTM5QsmDV6NLm2rPR1mYpD2rcbgSzpHRFvCB' \
--header 'Content-Type: application/json' \
--data-raw '{
"temperature": 0.7,
"messages": [
{
"content": "你好啊",
"role": "user"
}
],
"model": "gpt-5",
"stream": false
}'{
"id": "chatcmpl-D7AhD4b1JkQ4n00iwojmtQDH642Bn",
"object": "chat.completion",
"created": 1770601783,
"model": "gpt-5-2025-08-07",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "你好!很高兴见到你。有什么我可以帮你的?比如查资料、写作润色、解题、编程、翻译或规划行程等。你现在想做什么呢?",
"refusal": null,
"annotations": []
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 8,
"completion_tokens": 118,
"total_tokens": 126,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 64,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
},
"service_tier": "default",
"system_fingerprint": null
}