text-embedding-004 shut down on the Gemini API January 14, 2026; replacement is gemini-embedding-2
Took effect · Gemini API embedding model text-embedding-004
Reviewed against the vendor source on Sep 24, 2026 (AI-assisted review). Key facts are re-checked against the source daily.
What changes
Google's deprecations page lists January 14, 2026 as the shutdown date, with gemini-embedding-2 as the replacement; the changelog records the shutdown on that date. Once a model is shut down its endpoint is no longer available.
Breaking: Calls fail after this date.
What to do
Re-embed the whole corpus with gemini-embedding-2 into a new index, check dimensions, cut over atomically, and record the embedding model id with every stored vector.