Gemini 3.8 Flash-Lite TTS and Gemini 3.8 Flash TTS from Google are now available on AI Gateway.
Both models generate speech from text in more than 100 languages and support long-form narration, control over delivery, and two-speaker dialogue.
google/gemini-3.8-flash-lite-ttsis optimized for high-volume speech generation, with controls for tone, pacing, and line-by-line delivery.google/gemini-3.8-flash-ttsis optimized for expressive voice generation and custom character design, with controls for acting cues, pacing, accents, and conversational reactions.
To generate speech, pass either model ID to the AI SDK (7 or later):
import { generateSpeech } from 'ai';import { gateway } from '@ai-sdk/gateway';import { writeFile } from 'node:fs/promises';
const result = await generateSpeech({ model: gateway.speechModel('google/gemini-3.8-flash-lite-tts'), text: 'Welcome to the audio edition.', voice: 'Kore', instructions: 'Warm, relaxed, and speaking slowly', outputFormat: 'wav',});
await writeFile('speech.wav', result.audio.uint8Array);Generate a WAV file with Gemini 3.8 Flash-Lite TTS.
Try Flash-Lite TTS or Flash TTS in the model playground. See the text-to-speech guide for setup instructions, two-speaker dialogue, and more examples.