Gemini audio generation API. Models such as gemini-2.5-flash-preview-tts can be used
Request
Authorization
or
Path Params
Body Params application/json
Example
{"contents":[{"parts":[{"text":"Say cheerfully: Have a wonderful day!"}]}],"generationConfig":{"responseModalities":["AUDIO"],"speechConfig":{"voiceConfig":{"prebuiltVoiceConfig":{"voiceName":"Kore"}}}}}