Native Gemini Format
POST /v1beta/models/{model}:generateContent
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model (path) | string | Required | Model name |
contents | array<object> | Required | - |
contents[].parts | array<object> | Optional | - |
contents[].parts[].text | string | Optional | - |
generationConfig | object | Required | - |
generationConfig.responseModalities | array<string> | Required | - |
generationConfig.speechConfig | object | Required | - |
generationConfig.speechConfig.voiceConfig | object | Required | - |
Request Example
{
"path": {
"model": "string"
},
"body": {
"contents": [
{}
],
"generationConfig": {
"responseModalities": [
"string"
],
"speechConfig": {
"voiceConfig": {
"prebuiltVoiceConfig": {
"voiceName": "string"
}
}
}
}
}
}
Response Fields(200)
| Field Name | Type | Description |
|---|---|---|
| No structured response fields (may be binary or empty response body) |