curl --location --request POST '/gemini/v1beta/models/:streamGenerateContent' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"parts": [
{
"codeExecutionResult": {},
"executableCode": {},
"functionCall": {
"name": "string"
},
"functionResponse": {
"name": "string",
"response": {
"content": "string",
"name": "string"
}
},
"inlineData": {
"data": "string",
"mime_type": "string"
},
"text": "string",
"thought": true,
"thoughtSignature": "string"
}
],
"role": "model"
}
],
"generationConfig": {
"maxOutputTokens": 0,
"responseMimeType": "string",
"responseModalities": [
"AUDIO"
],
"responseSchema": {
"items": {
"properties": {
"recipe_name": {
"type": "string"
}
},
"type": "string"
},
"type": "string"
},
"speechConfig": {
"languageCode": "string",
"multiSpeakerVoiceConfig": {
"speakerVoiceConfigs": [
{
"speaker": "string",
"voiceConfig": {
"prebuiltVoiceConfig": {
"voiceName": "string"
}
}
}
]
},
"voiceConfig": {
"prebuiltVoiceConfig": {
"voiceName": "string"
}
}
},
"stopSequences": [
"string"
],
"temperature": 0,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 0
},
"topK": 0,
"topP": 0
},
"safetySettings": [
{}
],
"system_instruction": {
"parts": {
"text": "string"
}
},
"tool_config": {
"functionCallingConfig": {
"allowedFunctionNames": [
"string"
],
"mode": "string"
}
},
"tools": [
{
"codeExecution": {},
"functionDeclarations": [
{
"description": "string",
"name": "string",
"parameters": {
"properties": {
"rgb_hex": {
"description": "string",
"type": "string"
}
},
"required": [
"string"
],
"type": "string"
}
}
],
"googleSearch": {}
}
]
}'{}