# gemini-2.5-flash-image

Calls to the model gemini-2.5-flash-image on Vertex AI stop working on March 15, 2027.

On March 15, 2027, the gemini-2.5-flash-image model will be retired. Calls using model gemini-2.5-flash-image will fail after this date.

## The error Vertex AI returns once gemini-2.5-flash-image is gone

HTTP 404

```json
{"error":{"code":404,"message":"Publisher model `projects/{project}/locations/{region}/publishers/google/models/gemini-2.5-flash-image` was not found or your project does not have access to it. Ensure you are using a valid model name and that the model is available in the specified region.","status":"NOT_FOUND"}}
```

## What to use instead

Move to gemini-3.1-flash-lite-image, recommended by Google.

- API: Vertex AI (aiplatform.googleapis.com)
- Model: gemini-2.5-flash-image
- Released: August 26, 2025 (models.dev)
- Kind: Model retirement
- Takes effect: March 15, 2027
- Calls after that day: fail
- Calls it hits: `model gemini-2.5-flash-image`
- Source: [Deprecations page](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions)
- Verified: November 6, 2026, against Vertex AI's own pages
- Page: https://www.okapi.bot/models/vertex-ai/gemini-2.5-flash-image/

## Vertex AI's words

> Model ID: gemini-2.5-flash-image; Release date: October 2, 2025; Retirement date: March 15, 2027; Replacement model ID: gemini-3.1-flash-lite-image

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
