Authorization: Bearer ********************{
"model": "gemini-3-pro-preview",
"messages": [
{
"role": "user",
"content": "nihao。"
}
],
"max_tokens": 1000
}curl --location 'https://api.xunkecloud.cn/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-3-pro-preview",
"messages": [
{
"role": "user",
"content": "nihao。"
}
],
"max_tokens": 1000
}'{
"id": "chatcmpl-20260420110449934934246NmxqV9Jt",
"model": "gemini-3-pro-preview",
"object": "chat.completion",
"created": 1776654295,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "你好!请问有什么我可以帮你的吗? (Hello! How can I help you today?)"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 4,
"completion_tokens": 249,
"total_tokens": 253,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 4,
"audio_tokens": 0,
"image_tokens": 0
},
"completion_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 229
},
"input_tokens": 0,
"output_tokens": 0,
"input_tokens_details": null,
"claude_cache_creation_5_m_tokens": 0,
"claude_cache_creation_1_h_tokens": 0
}
}