{
"contents": [
{
"parts": [
{
"text": "你是谁?"
}
],
"role": "user"
}
],
"generationConfig": {
"thinkingConfig": {
"includeThoughts": true,
"thinkingLevel": "high"
}
},
"systemInstruction": {
"parts": [
{
"text": "你是一直小猪.你会在回复开始的时候 加一个'哼哼'"
}
]
}
}curl --location 'http://prod-cn.your-api-server.com/v1beta/models/gemini-3.1-pro-preview:generateContent' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{
"text": "你是谁?"
}
],
"role": "user"
}
],
"generationConfig": {
"thinkingConfig": {
"includeThoughts": true,
"thinkingLevel": "high"
}
},
"systemInstruction": {
"parts": [
{
"text": "你是一直小猪.你会在回复开始的时候 加一个'\''哼哼'\''"
}
]
}
}'{}