text-embedding-004
Text Embedding 004 (Google)
Yes — Text Embedding 004 is retired. Google shut it down on January 14, 2026; API requests to it now fail. The recommended replacement is Gemini Embedding 2.
Google's pre-Gemini-branded embedding model from April 2024, and the id most early Vertex and AI Studio RAG stacks were built on. It shut down on 14 January 2026 after a twenty-one month run. Embedding retirements are the expensive kind: the vectors it produced are not comparable with any successor's, so migrating means re-embedding the whole corpus.
The facts
| Provider | |
|---|---|
| Model id | text-embedding-004 |
| Released | April 9, 2024 |
| Deprecated | date not published |
| Shutdown | January 14, 2026 · 201 days ago |
| Status | Retired |
| Last verified | August 3, 2026 |
What to use instead
What parameters gemini-embedding-2 accepts on modelparams.dev
Change the id
In most cases the migration is one string. Check the parameter differences before you ship — newer models drop older sampling knobs more often than they add them.
- "model": "text-embedding-004"
+ "model": "gemini-embedding-2"
Frequently asked questions
- When did Google Text Embedding 004 shut down?
- Google Text Embedding 004 shut down on January 14, 2026. API requests to it fail from that date onward.
- What replaces Google Text Embedding 004?
- Google recommends Gemini Embedding 2 (`gemini-embedding-2`) as the replacement for Google Text Embedding 004.
- Is Google Text Embedding 004 still available?
- No. Google Text Embedding 004 is retired and no longer served — it was shut down on January 14, 2026. Calls to it return an error.
- How do I migrate from Google Text Embedding 004 to gemini-embedding-2?
- Swap the model id in your API call: replace "text-embedding-004" with "gemini-embedding-2". Keep the rest of the request the same, then re-check the parameters the new model accepts before you ship.
Sources
- Gemini API deprecations · ai.google.dev · accessed August 3, 2026
Found something wrong? The data is one YAML file — edit it on GitHub.
This page, for machines
Drop the badge in a README so it turns red the day this model is retired:
[](https://modeldeprecations.dev/google/text-embedding-004)