BestPaid guides · Firebase · Gemini API

Firebase AI Logic model shutdowns: Gemini and Imagen dates, the December 1, 2026 rerouting and how to update your app

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.

Sources: Firebase's supported models page (last updated November 18, 2026), deprecated and shut down models FAQ (November 20, 2026) and release note of November 2, 2026; its guides to changing the model name remotely, Remote Config with Firebase AI Logic, migrating from Imagen, migrating SDKs, getting started, thinking, model parameters and server prompt templates; the FAQ's App Check section and the release notes' latest SDK versions; Google Cloud's Agent Platform model versions (November 24, 2026) and the Gemini API deprecations page (no date shown). Checked on November 25, 2026. This page is our own summary; follow the vendor's documentation for every detail.

Two backends, two sets of dates

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.

What Firebase lists as shut down (as of November 25, 2026)

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 namesShut downFirebase's replacement
Gemini 1.0 and 1.5 modelsListed as shut down—
gemini-2.0-flash, gemini-2.0-flash-001, gemini-2.0-flash-lite, gemini-2.0-flash-lite-001June 1, 2026gemini-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-imageOctober 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-liteOctober 20, 2026, Agent Platform onlygemini-3.8-flash for Pro, gemini-3.5-flash-lite for the others
gemini-3.6-flashNovember 19, 2026, Agent Platform only (Google Cloud: January 28, 2027)gemini-3.8-flash
gemini-3.1-flash-tts-previewNovember 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-09December 9, 2025gemini-3.1-flash-live-preview (Developer API), gemini-live-2.5-flash-native-audio (Agent Platform)

Scheduled after November 25, 2026

DateBackendWhat Firebase lists
December 1, 2026Gemini Developer APIRequests 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, 2027Agent Platformgemini-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.

Where Google's pages disagree

ModelFirebaseOther Google pages
gemini-live-2.5-flash-native-audio (Agent Platform)No shutdown dateAgent Platform model versions: December 13, 2026
gemini-3.1-flash-tts-preview (Developer API)Shut down November 17, 2026Gemini API deprecations: December 18, 2026
gemini-3.6-flash (Agent Platform)Shut down November 19, 2026Agent Platform model versions: January 28, 2027
gemini-2.5-flash-imageShut down October 2, 2026Agent Platform model versions and Gemini API deprecations: March 15, 2027
gemini-2.5-flash-native-audio-preview-12-2025 (Developer API)No shutdown dateGemini API deprecations: March 31, 2027
gemini-3.1-flash-lite (Developer API)No shutdown dateGemini API deprecations: May 7, 2027
Imagen 3 and 4FAQ: June 30, 2026; Imagen guide: August 17, 2026Agent 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.

What happens to an app that calls a shut-down model

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.

Why hard-coded model names break

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:

Switch models with Remote Config

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:

  1. In the console's Remote Config, select Client, add a String parameter (model_name in Firebase's guide) set to an explicit stable model name, not a -latest alias, and publish.
  2. Add the Remote Config SDK and in-app defaults, fetch and activate, then create the model.
  3. Add a real-time listener so later changes reach running apps.
// 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.

SDK versions per platform

As Firebase documents them. The agentPlatform syntax matters only on the Agent Platform backend.

PlatformLibrary (legacy)Documented versionsLatest listed
Androidfirebase-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
iOSFirebaseAILogic (FirebaseAI, FirebaseVertexAI)FirebaseAILogic module from v12.5.0; agentPlatform from v12.17.0+; FirebaseAI module and vertexAI removed in v13.0.013.2.0
Webfirebase/ai (firebase/vertexai)AgentPlatformBackend from v12.17.0+; VertexAIBackend removed in v13.0.013.4.0
Flutterfirebase_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
UnityFirebaseAI package (no legacy SDK)AgentPlatform from v13.15.0+; VertexAI removed in v14.0.014.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.

Test outputs after a model change

Order of work

  1. Inventory each app: model names, ImagenModel calls, legacy libraries, backend, and the app versions still in use.
  2. Check each name against Firebase's models page and FAQ, and the other Google pages where they disagree.
  3. On the Developer API with 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.
  4. Update the SDK and initialization, rewrite Imagen calls, and read the model name (and Agent Platform location) from Remote Config.
  5. Fix request settings (thinking, sampling parameters, prefilled model turns) and test outputs.
  6. Ship with App Check in the same release: Firebase enforced it for Firebase AI Logic on November 2, 2026, and projects that unenforced or delayed it are enforced by January 21, 2027 at the latest, which blocks requests from app versions without App Check. Ask users on old versions to update.
  7. Watch for the next date: Google emails project members and posts notices in Firebase's release notes and docs.
Does your app still call a retired Gemini or Imagen model? We update native, Unity, Flutter, React Native and Xamarin apps to current SDKs, models and engine versions at a fixed price. You keep your signing keys. It starts with a $290 check and a fixed quote within 2 business days.
See the app update offer