/v1beta/models/{model_name}:{action}/v1beta/models/gemini-2.5-pro:generateContent/v1beta/models/gemini-2.5-pro:streamGenerateContent?alt=sse{
"systemInstruction": {
"role": "system",
"parts": [
{
"text": "你是一个专业、严谨、有帮助的AI助手,回答简洁准确,使用中文。"
}
]
},
"contents": [
{
"parts": [
{
"text": "你好"
}
]
}
],
"generationConfig": {
"temperature": 0.7,
"maxOutputTokens": 1024
}
}curl --location 'https://ai.interwestinfo.com/v1beta/models/:generateContent' \
--header 'Authorization: sk-************************************************' \
--header 'Content-Type: application/json' \
--data '{
"systemInstruction": {
"role": "system",
"parts": [
{
"text": "你是一个专业、严谨、有帮助的AI助手,回答简洁准确,使用中文。"
}
]
},
"contents": [
{
"parts": [
{
"text": "你好"
}
]
}
],
"generationConfig": {
"temperature": 0.7,
"maxOutputTokens": 1024
}
}'{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "您好。请问有什么我可以协助您的?"
}
]
},
"finishReason": "STOP",
"index": 0,
"safetyRatings": []
}
],
"usageMetadata": {
"promptTokenCount": 22,
"toolUsePromptTokenCount": 0,
"candidatesTokenCount": 303,
"totalTokenCount": 325,
"thoughtsTokenCount": 0,
"cachedContentTokenCount": 0,
"promptTokensDetails": null,
"toolUsePromptTokensDetails": null
}
}