curl --location --request POST 'https://ai.vnet.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-5",
"messages": [
{
"role": "user",
"content": "你好"
}
],
"temperature": 0.7,
"max_tokens": 1000
}'{
"id": "chatcmpl-WwKP5kjA7rk7yZvARFIPhKF6G9yZ1",
"object": "chat.completion",
"created": 1776826935,
"model": "gpt-5",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "你好!有什么可以帮你的吗?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 7,
"completion_tokens": 108,
"total_tokens": 115,
"completion_tokens_details": {
"reasoning_tokens": 64
}
}
}