apiwatch

All changes / Google

Deprecation model

Google deprecated the gemini-embedding-2-preview model; since November 6, 2026, Gemini API requests for it route to gemini-embedding-2.

Took effect · Gemini API embedding model gemini-embedding-2-preview

Reviewed against the vendor source on Nov 11, 2026 (AI-assisted review). Key facts are re-checked against the source daily.

What changes

The November 6, 2026 Gemini API changelog says gemini-embedding-2-preview is deprecated and that, effective November 6, 2026, API requests to it route to gemini-embedding-2 at Gemini Embedding 2 rates, and tells callers to update the model string. Google says gemini-embedding-2 uses the same API schema, pricing and embedding space, so no other code changes or vector re-indexing are needed. The deprecations page lists gemini-embedding-2-preview (released March 10, 2026) with a shutdown date of November 6, 2026 and gemini-embedding-2 as the replacement.

Deprecation: Still works; removal is announced.

What to do

Change the model string from gemini-embedding-2-preview to gemini-embedding-2, as Google directs. Google says the two share the same API schema, pricing and embedding space, so existing vectors stay usable without re-indexing.

Strings to search for

gemini-embedding-2-preview

Source

https://ai.google.dev/gemini-api/docs/deprecations