Apps that call Gemini or Imagen through Firebase AI Logic (formerly Vertex AI in Firebase) name the model in their code. When Google shuts that model down, the AI feature fails in every installed copy that still sends the name. Here are the dates as Google's pages list them as of November 25, 2026, and how to move to current models.
Firebase AI Logic calls either the Gemini Developer API or the Agent Platform Gemini API (Vertex AI until mid-2026), and dates differ by backend. On the Developer API, Google sometimes routes requests to a newer model, billed at that model's rates, instead of shutting the old one down. On Agent Platform, Firebase marks some stable models, including gemini-4-hydrogen and gemini-nano-banana-2.1, as short-term availability models that may be shut down as early as 45 days after a replacement is released.
Dates and replacements as Firebase's FAQ and models page list them. Where another Google page gives a different date, it's shown in parentheses; see where Google's pages disagree.
| Model names | Shut down | Firebase's replacement |
|---|---|---|
| Gemini 1.0 and 1.5 models | Listed as shut down | — |
gemini-2.0-flash, gemini-2.0-flash-001, gemini-2.0-flash-lite, gemini-2.0-flash-lite-001 | June 1, 2026 | gemini-3.5-flash-lite |
Imagen 3 and 4 (imagen-3.0-*, imagen-4.0-*) | June 30, 2026 (FAQ) or August 17, 2026 (Imagen guide) | gemini-nano-banana-2.1; gemini-3-pro-image for imagen-4.0-ultra-generate-001 |
gemini-2.5-flash-image | October 2, 2026 (Google Cloud and the Gemini API deprecations page: March 15, 2027) | gemini-nano-banana-2.1 |
gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite | October 20, 2026, Agent Platform only | gemini-3.8-flash for Pro, gemini-3.5-flash-lite for the others |
gemini-3.6-flash | November 19, 2026, Agent Platform only (Google Cloud: January 28, 2027) | gemini-3.8-flash |
gemini-3.1-flash-tts-preview | November 17, 2026 (Gemini API deprecations page: December 18, 2026) | gemini-3.8-flash-tts or gemini-3.8-flash-lite-tts |
gemini-live-2.5-flash-preview, gemini-2.0-flash-live-001, gemini-2.0-flash-live-preview-04-09 | December 9, 2025 | gemini-3.1-flash-live-preview (Developer API), gemini-live-2.5-flash-native-audio (Agent Platform) |
| Date | Backend | What Firebase lists |
|---|---|---|
| December 1, 2026 | Gemini Developer API | Requests to gemini-2.5-pro are routed to gemini-3.8-flash, and requests to gemini-2.5-flash to gemini-3.5-flash-lite. No change yet for gemini-2.5-flash-lite. |
| January 28, 2027 | Agent Platform | gemini-3.7-flash shuts down; replacement gemini-3.8-flash. On the Developer API its requests are already routed there. |
Firebase's release note lists what the December 1 routing changes: requests are billed at the newer models' rates; on gemini-3.8-flash, frequencyPenalty, presencePenalty, candidateCount and the MINIMAL thinking level fail with a 400 error; general-use Gemini 3.x models ignore temperature, topK and topP; and a request whose last non-empty turn is a model turn fails with a 400 error. Firebase's thinking guide adds that neither target model supports turning thinking off with thinkingBudget: 0. Firebase recommends switching to a newer model and testing before December 1, 2026.
| Model | Firebase | Other Google pages |
|---|---|---|
gemini-live-2.5-flash-native-audio (Agent Platform) | No shutdown date | Agent Platform model versions: December 13, 2026 |
gemini-3.1-flash-tts-preview (Developer API) | Shut down November 17, 2026 | Gemini API deprecations: December 18, 2026 |
gemini-3.6-flash (Agent Platform) | Shut down November 19, 2026 | Agent Platform model versions: January 28, 2027 |
gemini-2.5-flash-image | Shut down October 2, 2026 | Agent Platform model versions and Gemini API deprecations: March 15, 2027 |
gemini-2.5-flash-native-audio-preview-12-2025 (Developer API) | No shutdown date | Gemini API deprecations: March 31, 2027 |
gemini-3.1-flash-lite (Developer API) | No shutdown date | Gemini API deprecations: May 7, 2027 |
| Imagen 3 and 4 | FAQ: June 30, 2026; Imagen guide: August 17, 2026 | Agent Platform model versions: June 30, 2026; Gemini API deprecations: August 17, 2026 for Imagen 4, November 10, 2025 for imagen-3.0-generate-002 |
The Gemini API deprecations page says its dates are the earliest possible shutdown dates; Google Cloud says its retirement dates may be extended but won't move earlier. Recommended replacements differ too: for gemini-3.6-flash and gemini-3.7-flash, Google Cloud names gemini-4-hydrogen and Firebase names gemini-3.8-flash; for gemini-live-2.5-flash-native-audio, Google Cloud names gemini-3.8-live, which Firebase's models page doesn't list as of November 25, 2026. Where dates differ, plan for the earlier one.
Firebase says a request that names a shut-down model fails with a 404 error. Several weeks before a shutdown, projects with no prior usage of the model are blocked from starting to use it, so a new test project may not reach a model your production app still calls. A routed Developer API request still gets an answer, but from another model: as of November 25, 2026, Firebase lists gemini-3.5-flash as routed to gemini-3.6-flash and gemini-3.7-flash to gemini-3.8-flash.
The model name is set when the app creates a GenerativeModel, LiveModel or ImagenModel instance. If it's a string in the code, only a new release changes it, and Firebase points out that not all users update. Its FAQ advises: "do not hard-code model names into your app's codebase." Two cases need more than a new name:
ImagenModel with a GenerativeModel on a Nano Banana model with an IMAGE response modality.vertexAI syntax defaults to the us-central1 location, where Firebase notes most models aren't supported; the agentPlatform syntax defaults to global.Firebase strongly recommends Remote Config or server prompt templates for the model name; released versions that use them pick up a new model without an app release. Firebase's steps:
model_name in Firebase's guide) set to an explicit stable model name, not a -latest alias, and publish.// Kotlin, Gemini Developer API
val remoteConfig = Firebase.remoteConfig
remoteConfig.setConfigSettingsAsync(remoteConfigSettings {
minimumFetchIntervalInSeconds = 3600 // Firebase's example value
})
remoteConfig.setDefaultsAsync(R.xml.remote_config_defaults) // includes model_name
remoteConfig.fetchAndActivate().addOnCompleteListener {
val ai = Firebase.ai(backend = GenerativeBackend.googleAI())
// Agent Platform: GenerativeBackend.agentPlatform(
// location = remoteConfig.getString("agent_platform_location"))
val model = ai.generativeModel(modelName = remoteConfig.getString("model_name"))
// call model.generateContent(...) from a coroutine
}
Firebase's guide also covers Swift, Java, Web, Dart and Unity. Don't store confidential data in Remote Config: end users can read the values. The in-app default is compiled into each build, so keep it current. Server prompt templates (in Preview) hold the model name on the server but don't support Live API models.
As Firebase documents them. The agentPlatform syntax matters only on the Agent Platform backend.
| Platform | Library (legacy) | Documented versions | Latest listed |
|---|---|---|---|
| Android | firebase-ai (firebase-vertexai) | agentPlatform from v17.15.0+ (BoM v34.17.0+); vertexAI removed in v18.0.0 (BoM v35.0.0) | BoM 35.2.0 |
| iOS | FirebaseAILogic (FirebaseAI, FirebaseVertexAI) | FirebaseAILogic module from v12.5.0; agentPlatform from v12.17.0+; FirebaseAI module and vertexAI removed in v13.0.0 | 13.2.0 |
| Web | firebase/ai (firebase/vertexai) | AgentPlatformBackend from v12.17.0+; VertexAIBackend removed in v13.0.0 | 13.4.0 |
| Flutter | firebase_ai (firebase_vertexai) | agentPlatform from v3.15.0+ (Flutter BoM v4.18.0+); vertexAI removed in v5.0.0 (Flutter BoM v5.0.0+) | Flutter BoM 5.2.0 |
| Unity | FirebaseAI package (no legacy SDK) | AgentPlatform from v13.15.0+; VertexAI removed in v14.0.0 | 14.2.0 |
The last column is from Firebase's release notes as of November 25, 2026. Firebase says builds on an older SDK with the legacy syntax keep running: the syntax doesn't break them, but a shut-down model name does.
thinkingLevel from Gemini 3.x on; Gemini 4.x models reject thinkingBudget with a 400 error. gemini-4-hydrogen defaults to HIGH (gemini-3.8-flash: MEDIUM); Firebase notes that a lower level can help reduce latency and cost.frequencyPenalty, presencePenalty and candidateCount fail with a 400 error on the Gemini 4 models, gemini-3.8-flash, gemini-3.7-flash and the 3.8 TTS models, and that TTS models also reject temperature, topK and topP with a 400 error.temperature, topK and topP are ignored, Firebase suggests explicit rules in system instructions for more deterministic responses.ImagenModel calls, legacy libraries, backend, and the app versions still in use.gemini-2.5-pro or gemini-2.5-flash, switch to a model you have tested; from December 1, 2026 their requests are routed to the models listed above.