POST https://api.tokenhot.ai/v1beta/models/{model}:streamGenerateContent?alt=ssegemini-3.1-pro-previewcurl --location 'https://api.tokenhot.ai/v1beta/models/gemini-3.1-pro-preview:streamGenerateContent?alt=sse%2Fgemini-3-1-pro-preview' \
--header 'Content-Type: application/json' \
--data '{
"system_instruction": {
"parts": [
{
"text": "You are my assistant, your name is Xiao Jiang."
}
]
},
"contents": [
{
"role": "user",
"parts": [
{
"text": "My name is Xiao Ming."
}
]
},
{
"role": "model",
"parts": [
{
"text": "Hello, Ming! I'\''m Jiang Xiao, nice to meet you. Is there anything I can do for you?"
}
]
},
{
"role": "user",
"parts": [
{
"text": "Remember my name?"
}
]
}
]
}'{
"candidates": [
{
"content": {
"role": "string",
"parts": [
{}
]
},
"finishReason": "string",
"safetyRatings": [
{}
]
}
],
"usageMetadata": {
"promptTokenCount": 0,
"candidatesTokenCount": 0,
"totalTokenCount": 0
}
}