Google Gemini API · model
text-embedding-004 deprecation: shutdown date & replacement
- Provider
- Google Gemini API
- Type
- model
- Announced
- —
- Shutdown
- Replacement
gemini-embedding-2- Source
- Official Google Gemini API notice
Page lists announced earliest shutdown date.
How to migrate off text-embedding-004
- Find every place that references it:
grep -rn --exclude-dir={node_modules,.git,dist} "text-embedding-004" . - Replace the model ID:
- model: "text-embedding-004" + model: "gemini-embedding-2" - Re-run your evals or a sample of real prompts — output style, token usage and pricing can change between models.
- Check config outside code too: environment variables, feature flags, prompt-management tools, and fine-tuned model references.
- Deploy before January 14, 2026, and add the CI scanner so it cannot come back.
Same model on other platforms
- Google Cloud Vertex AI (Gemini Enterprise Agent Platform) — April 1, 2027
Questions
Is text-embedding-004 deprecated?
Yes. Google Gemini API has deprecated text-embedding-004. It was shut down on January 14, 2026.
When does text-embedding-004 shut down?
January 14, 2026, according to Google Gemini API's official deprecation notice.
What should I use instead of text-embedding-004?
Google Gemini API recommends gemini-embedding-2. Switch the model ID and re-test your prompts, since outputs, pricing and limits can differ.
What happens to requests to text-embedding-004 after the shutdown?
Requests using the retired model ID fail with an error, so any code still calling it breaks. Update and deploy before the shutdown date.