gemini-2.5-flash-image to gemini-3.1-flash-lite-image
All values from official sources Checked 2026-10-17.
Price per 1M tokens
| Field | Old | New | Change |
|---|---|---|---|
| Input | $0.3 | $0.25 | -16.7% (lower) |
| Output | $0.039 | $1.5 | +3746.2% (higher) |
| Cached input | Not published | Not published | Not published |
| Example monthly cost | $3.08 | $5.5 | Example only |
Context and max output
| Limit | Old | New | Change |
|---|---|---|---|
| Context window | 65,536 | 65,536 | 0% (same) |
| Max output | 32,768 | 4,096 | -87.5% (lower) |
Capabilities that differ
No differing capability values are published for both models.
API changes
No parameter change is listed on the official pages we checked. The sample below only swaps the model id.
Code
python before
from google import genai
client = genai.Client()
response = client.models.generate_content(
model="gemini-2.5-flash-image",
contents="Hello",
)
python after
from google import genai
client = genai.Client()
response = client.models.generate_content(
model="gemini-3.1-flash-lite-image",
contents="Hello",
)
typescript before
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({});
const response = await ai.models.generateContent({
model: "gemini-2.5-flash-image",
contents: "Hello",
});
typescript after
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({});
const response = await ai.models.generateContent({
model: "gemini-3.1-flash-lite-image",
contents: "Hello",
});
curl before
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"Hello"}]}]}'
curl after
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-lite-image:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"Hello"}]}]}'
Checklist
- Read the shutdown date for gemini-2.5-flash-image on the linked official page.
- Point your requests at gemini-3.1-flash-lite-image.
- Re-check price, context, and parameters on the provider pages linked here.
- Ship the change before the published shutdown date.