SunsetDiff

Replacement for gemini-2.5-flash-image (Google Vertex AI): what changes when you switch

The official replacement is gemini-3.1-flash-lite-image. gemini-2.5-flash-image shuts down on 2027-03-15 per Google Vertex AI's deprecation page (checked 2026-11-12). On the labeled example of 10 million input tokens and 2 million output tokens, gemini-3.1-flash-lite-image costs $5.5 a month, lower than $8 for gemini-2.5-flash-image.

gemini-2.5-flash-image model page · Google Vertex AI

Official replacement. Full diff page

gemini-2.5-flash-image to gemini-3.1-flash-lite-image

All values from official sources Checked 2026-11-12.

Price per 1M tokens

Price comparison. Example monthly cost for 10M input tokens and 2M output tokens. Labeled example, not a bill.
FieldOldNewChange
Input $0.3 $0.25 -16.7% (lower)
Output $2.5 $1.5 -40% (lower)
Cached input Not published Not published Not published
Example monthly cost $8 $5.5 Example only

Context and max output

Token limits
LimitOldNewChange
Context window 32,768 65,536 +100% (higher)
Max output 32,768 4,096 -87.5% (lower)

Capabilities that differ

No differing capability values are published for both models.

Endpoint changes

  • Both ids are image models. The Gemini API image generation guide's text-to-image sample uses client.interactions.create and POST https://generativelanguage.googleapis.com/v1beta/interactions. These records are Vertex model ids, and that guide does not show a Vertex host, so this page does not show a model-id swap. Source

Checklist

  1. Read the shutdown date for gemini-2.5-flash-image on the linked official page.
  2. Point your requests at gemini-3.1-flash-lite-image.
  3. Re-check price, context, and parameters on the provider pages linked here.
  4. Ship the change before the published shutdown date.

Related models

Questions

What is the replacement for gemini-2.5-flash-image?

The official replacement is gemini-3.1-flash-lite-image. gemini-2.5-flash-image shuts down on 2027-03-15 per Google Vertex AI's deprecation page (checked 2026-11-12). On the labeled example of 10 million input tokens and 2 million output tokens, gemini-3.1-flash-lite-image costs $5.5 a month, lower than $8 for gemini-2.5-flash-image.

Is gemini-3.1-flash-lite-image cheaper than gemini-2.5-flash-image?

Yes. The labeled example monthly cost is $8 for the old model and $5.5 for the replacement.

Does gemini-3.1-flash-lite-image have a bigger context window than gemini-2.5-flash-image?

Yes. The context window changes from 32,768 to 65,536 tokens.

Sources

Deprecation alerts

We email you before models shut down. Unsubscribe anytime.

Deprecation alert signup
Providers (optional)