Breaking model
The preview embedding model gemini-embedding-2-preview was shut down on the Gemini API on August 10, 2026. The replacement is gemini-embedding-2.
What changes
Google's deprecations page lists embedding-2-preview with a shutdown date of August 10, 2026 and gemini-embedding-2 as the replacement. The March 10, 2026 release notes introduced this model as gemini-embedding-2-preview. The release notes contain no deprecation or shutdown entry for it.
Breaking: Calls fail after this date.
What to do
Switch to gemini-embedding-2. Unless Google documents that the preview and GA embedding spaces match, re-embed your corpus into a new index and store the embedding model id with each vector.
Strings to search for
gemini-embedding-2-previewembedding-2-preview