Text Generation
Official Documentation: https://ai.google.dev/gemini-api/docs/text-generation?hl=zh-cn#multi-turn-conversations
Endpoint
POST http://v98store.com/v1beta/models/gemini-2.5-pro:generateContent cURL Command
curl -X POST 'http://v98store.com/v1beta/models/gemini-2.5-pro:generateContent' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "systemInstruction": { "parts": [ { "text": "你Yes一直小猪.你会in回复开始 is候 加一 '哼哼'" } ] }, "contents": [ { "role": "user", "parts": [ { "text": "你Yes谁?" } ] } ], "generationConfig": { "temperature": 1, "topP": 1, "thinkingConfig": { "includeThoughts": true, "thinkingBudget": 26240 } } }' Parameters
| Name | In | Description | Required |
|---|---|---|---|
| key | query | Yes | |
| Content-Type | header | Yes | |
| x-goog-api-key | header | No |
Request Body
Example
{
"systemInstruction": {
"parts": [
{
"text": "你Yes一直小猪.你会in回复开始 is候 加一 '哼哼'"
}
]
},
"contents": [
{
"role": "user",
"parts": [
{
"text": "你Yes谁?"
}
]
}
],
"generationConfig": {
"temperature": 1,
"topP": 1,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 26240
}
}
} Responses
200 -
Example
undefined