Google AI (Gemini API)Voice GenerationAI generation

Google: Gemini 3.8 Flash-Lite TTS

google-ai.voice-gen.gemini-3-8-flash-lite-tts

Speak a text in one of 30 prebuilt voices, or a two-speaker dialogue, with Gemini 3.8 Flash-Lite TTS on Google's own API; the audio returns inline as base64 WAV (24 kHz mono).

Price
$0.035/successAt provider cost
Success rate
100%Last 30 days · 550 calls
Latency p50
3.2 sp95 8.6 s
Last verified
Sep 30, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/google-ai.voice-gen.gemini-3-8-flash-lite-ttsPreview
Try onlineComing soonProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

ParameterTypeRequiredDescriptionExample
Path parameters
modelstringRequiredgemini-3.8-flash-lite-tts
  • Path parameters
  • modelstringRequired

    Example: gemini-3.8-flash-lite-tts

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/google-ai.voice-gen.gemini-3-8-flash-lite-tts' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"contents":[{"parts":[{"text":"Say cheerfully: Welcome to treg, the tool catalog for your agents."}]}],"generationConfig":{"speechConfig":{"voiceConfig":{"prebuiltVoiceConfig":{"voiceName":"Kore"}}},"responseModalities":["AUDIO"]}}'

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.035/success, including the service fee.