From the source
Google DeepMind has deprecated gemini-embedding-2-preview, and from November 6, 2026 API requests to it will route to gemini-embedding-2 at Gemini Embedding 2 rates.
- Developers only need to update their model string to gemini-embedding-2, since the replacement uses the same API schema, pricing and embedding space.
- That means no other code changes and no vector re-indexing are required.




