Starting November 2, 2026, Firebase App Check enforcement will be required to use Firebase AI Logic. Learn more.
Model updates:
Gemini 4 Carbon and Gemini 4 Argon are now
available to use with Firebase AI Logic!
Learn more.
Gemini 2.5 models are deprecated or shut down. For the
Agent Platform Gemini API, all general-use Gemini 2.5 models
have shut down. For the Gemini Developer API, starting
December 1, 2026, requests to the general-use
Gemini 2.5 Flash and Pro models will be automatically routed to newer
models (which may cause breaking changes;
learn more).
To avoid service disruptions, update to a newer model (like
gemini-4-argon,
gemini-3.8-flash,
gemini-3.5-flash-lite, or
gemini-nano-banana-2.1).
Learn more.
Generate audio using the Gemini API
Stay organized with collections
Save and categorize content based on your preferences.
You can ask a Gemini model to generate audio output. When you use
Firebase AI Logic, you can make this request directly from your mobile or
web app (such as your Apple (Swift), Android (Kotlin / Java), Web (JavaScript),
Flutter (Dart), or Unity app).
Both text-to-speech (TTS) models and Live API models are low-latency,
speech-generating models that can be configured for different response voices
and languages. However, they serve very different use cases.
Text-to-speech (TTS) generation is a
unidirectional, request-response interaction (text in, audio out). It's
tailored for scenarios that require exact recitation of the provided
text with fine-grained control over style and sound, such as podcast
narration, audiobooks, or reading articles aloud.
Live API generation supports
bidirectional streaming for real-time voice conversations (voice in,
voice out). It excels in dynamic conversational contexts where the model
decides the applicable speech to return. Note that the latest Live API
models also support video and image input.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-12 UTC."],[],[]]