Authorization: Bearer ********************{ "contents": [ { "parts": [ { "text": "sample text,sample text,sample text" } ] } ], "generationConfig": { "responseModalities": [ "AUDIO" ], "speechConfig": { "voiceConfig": { "prebuiltVoiceConfig": { "voiceName": "Kore" } } } }, "model": "gemini-2.5-flash-preview-tts" }curl --location --globoff '/v1beta/models/gemini-2.5-flash-preview-tts:generateContent?key={{api_key}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "contents": [ { "parts": [ { "text": "sample text,sample text,sample text" } ] } ], "generationConfig": { "responseModalities": [ "AUDIO" ], "speechConfig": { "voiceConfig": { "prebuiltVoiceConfig": { "voiceName": "Kore" } } } }, "model": "gemini-2.5-flash-preview-tts" }'{}