# text-embedding-004

Calls to the model text-embedding-004 on Vertex AI stop working on April 1, 2027.

## The error Vertex AI returns once text-embedding-004 is gone

HTTP 404

```json
{"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"}}
```

- API: Vertex AI (aiplatform.googleapis.com)
- Model: text-embedding-004
- Kind: Model retirement
- Takes effect: April 1, 2027
- Calls after that day: fail
- Calls it hits: `model text-embedding-004`
- Source: [Deprecations page](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions)
- Verified: November 6, 2026, against Vertex AI's own pages
- Page: https://www.okapi.bot/models/vertex-ai/text-embedding-004/

## Vertex AI's words

> Model ID: text-embedding-004; Release date: May 14, 2024; Retirement date: April 1, 2027

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
