text-embedding-004

Google (Gemini API) retired text-embedding-004 on 14 January 2026. Replacement: gemini-embedding-2.

ProviderGoogle (Gemini API)
Statusretired
Shutdown date
Deprecated on
Replacementgemini-embedding-2
Sourcehttps://ai.google.dev/gemini-api/docs/deprecations
Notegray row = shut down; rel 2024-04-09

Move off it now

  1. Find every call to it in your code (Python, JS/TS, Go, Java, configs, notebooks), with nothing to install:
    uvx llmshift scan
  2. Turn your real traffic into tests, so you compare on what your users send:
    llmshift snapshot logs/ --model "text-embedding-004"
  3. See exactly what changes on the replacement: formats, facts, tone, tool calls and settings it rejects:
    llmshift compare --to gemini-embedding-2
  4. Swap the model in your code and open a pull request with the results:
    llmshift upgrade --from "text-embedding-004" --apply --compare --pr

Then llmshift init --github keeps the check on every pull request. LLMShift is free and open source (MIT) and runs on your machine.

The error you get now

Calls to a model after its shutdown fail. The answer usually reads (the wording varies by SDK and endpoint):

404 NOT_FOUND: models/text-embedding-004 is not found for API version v1beta, or is not supported for generateContent.

Other Google (Gemini API) retirements

Wrong date or replacement? Tell us on GitHub, with a link to the provider's page.

Lifecycle data updated 2026-11-14, collected from the providers' official deprecation pages. Dates can move: check the source before you plan around one. Visits are counted with GoatCounter, which sets no cookies.