AI EngineerGuide

embedding-2-preview retirement date: August 10, 2026

Retired on August 10, 2026; requests to embedding-2-preview now fail.

Retired on Aug 10, 2026retired
Provider
Google (Gemini API)
Model IDs affected
embedding-2-preview
Shutdown date
August 10, 2026
Replacement
gemini-embedding-2
Platforms
Dates apply to the Gemini API and are the earliest possible shutdown dates Google publishes. If you use Gemini through another platform, check that platform's own schedule.
Source
Official Google (Gemini API) deprecations page (data last changed 2026-11-02, re-checked daily)

Migrating from embedding-2-preview

Not yet reviewed. We haven't written model-specific migration notes for embedding-2-preview yet. Start with the provider's official guidance and the replacement's model page, and use this general checklist:

  • Search your code, config and environment variables for embedding-2-preview.
  • Re-run your evaluation set against gemini-embedding-2 before switching traffic.
  • Recount tokens with the new model's tokenizer and re-check max_tokens, context fit and cost.
  • Check tool calling, structured output and stop sequences on your real prompts.
  • Dates apply to the Gemini API and are the earliest possible shutdown dates Google publishes. If you use Gemini through another platform, check that platform's own schedule.

Check your code before Aug 10

Also shutting down on August 10, 2026

All model retirements · All Google (Gemini API) deprecations

FAQ

When was embedding-2-preview retired?

embedding-2-preview (embedding-2-preview) was retired on the Gemini API on August 10, 2026, according to the official Gemini API deprecations page. Requests to it now fail.

What should I use instead of embedding-2-preview?

The recommended replacement is gemini-embedding-2.

What happens to embedding-2-preview requests after the shutdown date?

After a model is retired, API requests to it return an error. Move traffic to the replacement and test it on your own prompts before the date.

Does this date apply to Amazon Bedrock, Vertex AI or Azure?

Dates apply to the Gemini API and are the earliest possible shutdown dates Google publishes. If you use Gemini through another platform, check that platform’s own schedule.