gemini-embedding-2-preview
Google (Gemini API) retired gemini-embedding-2-preview on 6 November 2026. Replacement: gemini-embedding-2.
| Provider | Google (Gemini API) |
|---|---|
| Status | retired |
| Shutdown date | |
| Deprecated on | |
| Replacement | gemini-embedding-2 |
| Source | https://ai.google.dev/gemini-api/docs/deprecations |
| Note | rel 2026-03-10; deprecated 2026-11-06 (release notes): from that day API requests route to gemini-embedding-2 at its rates (same API schema, pricing and embedding space; update the model string). Earlier data mapped a 2026-08-10 'embedding-2-preview' row to this id; the deprecations page now lists gemini-embedding-2-preview with 2026-11-06 |
Move off it now
- Find every call to it in your code (Python, JS/TS, Go, Java, configs, notebooks), with nothing to install:
uvx llmshift scan - Turn your real traffic into tests, so you compare on what your users send:
llmshift snapshot logs/ --model "gemini-embedding-2-preview" - See exactly what changes on the replacement: formats, facts, tone, tool calls and settings it rejects:
llmshift compare --to gemini-embedding-2 - Swap the model in your code and open a pull request with the results:
llmshift upgrade --from "gemini-embedding-2-preview" --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/gemini-embedding-2-preview is not found for API version v1beta, or is not supported for generateContent.
Other Google (Gemini API) retirements
gemini-3.1-flash-live-preview: retires 2026-11-17gemini-2.5-flash: retires 2026-12-01gemini-2.5-pro: retires 2026-12-01gemini-omni-1.1-flash: retires 2026-12-03gemini-2.5-flash-preview-tts: retires 2026-12-18gemini-2.5-pro-preview-tts: retires 2026-12-18
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.