# Text Embedding 004 API Pricing

As of October 10, 2026, Text Embedding 004 costs $0.10 per 1M input tokens on Google Vertex AI. It has a 2,048-token context window.

- Page: https://models.litellm.ai/models/text-embedding-004
- Lab: Google
- LiteLLM model name: `vertex_ai/text-embedding-004`
- Context window: 2,048 tokens
- Added to LiteLLM: June 2024
- Deprecation date: April 1, 2027
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Google Vertex AI | `vertex_ai/text-embedding-004` | $0.10 | $0 | – | – | – | 2K |

## Cost examples

Embedding 10,000 documents of 500 tokens each:

- Google Vertex AI: $0.50

## Use it with LiteLLM

```python
from litellm import embedding

response = embedding(
    model="vertex_ai/text-embedding-004",
    input=["hello world"],
)
```

## FAQ

### How much does Text Embedding 004 cost?

Text Embedding 004 costs $0.10 per 1M input tokens on Google Vertex AI.

### What is the context window of Text Embedding 004?

Text Embedding 004 has a 2,048-token context window.

### Which providers offer Text Embedding 004?

Text Embedding 004 is available from Google Vertex AI through LiteLLM, using the model name vertex_ai/text-embedding-004.

### How do I call Text Embedding 004 with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="vertex_ai/text-embedding-004", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/embeddings from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

### When did LiteLLM add Text Embedding 004?

Text Embedding 004 was added to LiteLLM's model price file in June 2024.

### Is Text Embedding 004 being deprecated?

Google Vertex AI lists a deprecation date of April 1, 2027 for vertex_ai/text-embedding-004.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
