Authorization: Bearer ********************{
"systemInstruction": {
"parts": [
{
"text": "你是一个简单专业的AI助手"
}
]
},
"contents": [
{
"role": "user",
"parts": [
{
"text": "你是谁?"
}
]
}
],
"generationConfig": {
"temperature": 1,
"topP": 1,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 26240
}
}
}curl --location 'https://api.xheai.cc/v1beta/models/gemini-3-flash-preview:generateContent' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"systemInstruction": {
"parts": [
{
"text": "你是一个简单专业的AI助手"
}
]
},
"contents": [
{
"role": "user",
"parts": [
{
"text": "你是谁?"
}
]
}
],
"generationConfig": {
"temperature": 1,
"topP": 1,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 26240
}
}
}'{"id":"chatcmpl-89DUzcKrrzdQubu3rrfOADYjVcd34","object":"chat.completion","created":1767933143,"model":"claude-opus-4-5-20251101","choices":[{"index":0,"message":{"role":"assistant","content":"我的知识截止日期是 **2025 年 4 月**。\n\n这意味着我的训练数据包含截至该日期的信息,之后发生的事件我可能不了解。请问有什么我可以帮助你的吗?"},"finish_reason":"stop"}],"usage":{"prompt_tokens":19,"completion_tokens":89,"total_tokens":108,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0,"text_tokens":0,"image_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"audio_tokens":0,"text_tokens":0,"content_tokens":71}}}