Vertex AI
text-embedding-004 model retirement
Stops workingSubscribe to Vertex AIShare
Calls to the model text-embedding-004 on Vertex AI stop working on April 1, 2027.
The error you get from April 1, 2027
What Vertex AI answers a call to text-embedding-004 once the model is gone, as recorded from real responses:
{"error":{"code":404,"message":"Publisher model `projects/{project}/locations/{region}/publishers/google/models/text-embedding-004` was not found or your project does not have access to it. Ensure you are using a valid model name and that the model is available in the specified region.","status":"NOT_FOUND"}}
In Vertex AI's words
Model ID: text-embedding-004; Release date: May 14, 2024; Retirement date: April 1, 2027
Facts
- API
- Vertex AI
aiplatform.googleapis.com - Model
text-embedding-004- Kind
- Model retirement
- Takes effect
- April 1, 2027
- Calls after that day
- Fail
- Source
- Deprecations page
- Last updated
- Verified
- , against Vertex AI's own pages
Questions
When does text-embedding-004 shut down?
Calls to the model text-embedding-004 on Vertex AI stop working on April 1, 2027.
What happens to calls after April 1, 2027?
They fail from that day.
What error does text-embedding-004 return once it is shut down?
Vertex AI answers HTTP 404: "Publisher model `projects/{project}/locations/{region}/publishers/google/models/text-embedding-004` was not found or your project does not have access to it. Ensure you are using a valid model name and that the model is available in the specified region.". Send another model to fix it.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
text-embedding-004 on other APIs 1
-
Gemini API
text-embedding-004Model retirement Stopped working
More from Vertex AI 10
-
claude-sonnet-4-5Model retirement Stops workingin 24 days -
gemini-live-2.5-flash-native-audioModel retirement Stops workingin 37 days -
gemini-3.7-flashModel retirement Stops workingin 83 days -
/v1/projects/{id}/locations/{id}/featurestores*Endpoint removal Stops workingin 103 days -
/v1beta1/projects/{id}/locations/{id}/featurestores*Endpoint removal Stops workingin 103 days -
gemini-2.5-flash-imageModel retirement Stops workingin 129 days -
POST /v1/projects/{id}/locations/{id}/endpoints/{id}:explainEndpoint removal Stops workingin 130 days -
POST /v1beta1/projects/{id}/locations/{id}/endpoints/{id}:explainEndpoint removal Stops workingin 130 days -
text-embedding-005Model retirement Stops workingin 146 days -
text-multilingual-embedding-002Model retirement Stops workingin 146 days
Is your code calling this?
Okapi finds the calls this change hits in your repo and opens the pull request with the fix before April 1, 2027.