{
"model": "glm-4.7",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!你是什么模型?"
}
],
"stream": false
}curl --location 'https://ai.tiantoken.com/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: ' \
--header 'New-Api-User: 1' \
--header 'Content-Type: application/json' \
--data '{
"model": "glm-4.7",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!你是什么模型?"
}
],
"stream": false
}'{
"id": "string",
"object": "chat.completion",
"created": 0,
"model": "string",
"service_tier": "string",
"choices": [
{
"index": 0,
"message": {
"role": "system",
"content": "string",
"name": "string",
"reasoning_content": "string"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 0,
"audio_tokens": 0,
"image_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"accepted_prediction_tokens": "string",
"rejected_prediction_tokens": "string"
}
},
"system_fingerprint": "string"
}