Authorization: Bearer ********************{
"model": "claude-opus-4-7",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
],
"stream":true
}curl --location 'https://api.xunkecloud.cn/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "claude-opus-4-7",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
],
"stream":true
}'{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"logprobs": null,
"message": {
"content": "你好!有什么我可以帮你的吗?如果你愿意,也可以告诉我你更想用中文还是英文交流。",
"role": "assistant"
}
}
],
"created": 1776651187,
"id": "chatcmpl-resp_03ec0596717a65f10069e58bb34f448196b37bc3e3122a2326",
"model": "gpt-5.2",
"object": "chat.completion",
"service_tier": "default",
"system_fingerprint": "fp_11f3029f6b",
"usage": {
"completion_tokens": 30,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens": 9,
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
},
"total_tokens": 39
}
}