AI EngineerGuide

text-embedding-004 retirement date: January 14, 2026

Retired on January 14, 2026; requests to text-embedding-004 now fail.

Retired on Jan 14, 2026retired
Provider
Google (Gemini API)
Model IDs affected
text-embedding-004
Shutdown date
January 14, 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 text-embedding-004

Not yet reviewed. We haven't written model-specific migration notes for text-embedding-004 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 text-embedding-004.
  • 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 Jan 14

All model retirements · All Google (Gemini API) deprecations

FAQ

When was text-embedding-004 retired?

text-embedding-004 (text-embedding-004) was retired on the Gemini API on January 14, 2026, according to the official Gemini API deprecations page. Requests to it now fail.

What should I use instead of text-embedding-004?

The recommended replacement is gemini-embedding-2.

What happens to text-embedding-004 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.