Breaking model
Google shut down the embedding models embedding-001, embedding-gecko-001 and gemini-embedding-exp / gemini-embedding-exp-03-07 on the Gemini API on October 30, 2025. The replacement is gemini-embedding-2.
What changes
Google's release notes of September 16, 2025 said that embedding-001, embedding-gecko-001 and gemini-embedding-exp-03-07 (gemini-embedding-exp) would be shut down in October 2025. The deprecations page lists October 30, 2025 for all four ids, with gemini-embedding-2 as the replacement. The release notes don't separately record the shutdown.
Breaking: Calls fail after this date.
What to do
Switch to gemini-embedding-2. Re-embed your corpus into a new index, cut over at once, and store the embedding model id with each vector. gemini-embedding-2 doesn't support the task_type parameter, so put task instructions in the prompt instead.
Strings to search for
embedding-001embedding-gecko-001gemini-embedding-expgemini-embedding-exp-03-07