Gemini 3.1 Flash Image Preview

Deprecated

Preview endpoint for Nano Banana 2, superseded by the stable gemini-3.1-flash-image. Google no longer prices it on the pricing page, so token prices are null rather than carried forward. Its stated shutdown date has passed but Google has not marked the row as shut down. Google publishes shutdown dates as "the earliest possible dates on which a model might be retired"; already-shut-down models are marked with a grey row on the deprecations page.

Gemini 3.1 Flash Image Preview by Google is tracked live in our LLM catalog. It is deprecated, shutting down 25 Jun 2026; the recommended replacement is Gemini 3.1 Flash Image (Nano Banana 2).

Last verified: 13 Aug 2026 · sourced from official provider documentation

Lifecycle warning

This model is deprecated. Scheduled shutdown: 25 Jun 2026. Recommended migration: Gemini 3.1 Flash Image (Nano Banana 2).

Read the Gemini 3.1 Flash Image Preview migration guide → replacement & cheapest alternatives

Provider
Google
Status
Deprecated
Input price
Output price
Cached input
Blended price
Context window
Max output
Modality
text, image, image-out
Open weights
No — API only
Knowledge cutoff
Released
26 Feb 2026
API string
gemini-3.1-flash-image-preview

Source: Google official documentation ↗

FAQ

Gemini 3.1 Flash Image Preview — questions & answers

Is Gemini 3.1 Flash Image Preview being deprecated or retired?

Gemini 3.1 Flash Image Preview is deprecated. Its scheduled shutdown date is 25 Jun 2026. The recommended migration is Gemini 3.1 Flash Image (Nano Banana 2).

Does Gemini 3.1 Flash Image Preview support image or vision input?

Yes — Gemini 3.1 Flash Image Preview accepts image input. Listed modalities: text, image, image-out.

Can I self-host Gemini 3.1 Flash Image Preview?

No — Gemini 3.1 Flash Image Preview is proprietary. Its weights are not publicly released, so it is available only through Google's API (or hosted partners), not for self-hosting.

What is the API model string for Gemini 3.1 Flash Image Preview?

The API model identifier for Gemini 3.1 Flash Image Preview is "gemini-3.1-flash-image-preview" when calling Google's API.