The error you get
What Gemini API answers a call to embedding-2-preview once the model is gone, as recorded from real responses:
{"error":{"code":404,"message":"This model models/embedding-2-preview is no longer available to new users. Please update your code to use a newer model for the latest features and improvements.","status":"NOT_FOUND"}}
{"error":{"code":404,"message":"models/embedding-2-preview is not found for API version v1beta, or is not supported for generateContent. Call ModelService.ListModels to see the list of available models and their supported methods.","status":"NOT_FOUND"}}
What to use instead of embedding-2-preview
Migrate to gemini-embedding-2, which is recommended by Google. Moving takes more than changing an identifier, as embeddings from another model are not comparable and stored vectors must all be computed again with the new model.
Embeddings from another model are not comparable with this one's: vectors the code stores must all be computed again with the new model.
Facts
- API
- Gemini API
generativelanguage.googleapis.com - Model
embedding-2-preview- Kind
- Model retirement
- Takes effect
- August 10, 2026
- Calls after that day
- Fail
- Source
- Deprecations page
- Last updated
- Verified
- , against Gemini API's own pages
Questions
When does embedding-2-preview shut down?
Calls to the model embedding-2-preview on Gemini API stopped working on August 10, 2026.
What happens to calls after August 10, 2026?
They have failed since August 10, 2026.
What error does embedding-2-preview return once it is shut down?
Gemini API answers HTTP 404: "This model models/embedding-2-preview is no longer available to new users. Please update your code to use a newer model for the latest features and improvements.". Send another model to fix it.
More from Gemini API 10
| Effective | Model | Status |
|---|---|---|
gemini-3-pro-image-preview | stopped working | |
gemini-3.1-flash-image-preview | stopped working | |
veo-2.0-generate-001 | stopped working | |
veo-3.0-fast-generate-001 | stopped working | |
veo-3.0-generate-001 | stopped working | |
gemini-2.5-computer-use-preview-10-2025 | stopped working | |
imagen-4.0-fast-generate-001 | stopped working | |
imagen-4.0-generate-001 | stopped working | |
imagen-4.0-ultra-generate-001 | stopped working | |
gemini-robotics-er-1.6-preview | stopped working |