# Codestral Embed API Pricing

As of October 10, 2026, Codestral Embed costs $0.15 per 1M input tokens on Mistral AI. It has an 8,192-token context window.

- Page: https://models.litellm.ai/models/codestral-embed
- Lab: Mistral AI
- LiteLLM model name: `mistral/codestral-embed`
- Context window: 8,192 tokens
- Added to LiteLLM: September 2025
- 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 |
|---|---|---|---|---|---|---|---|
| Mistral AI | `mistral/codestral-embed` | $0.15 | – | $0.015 | – | – | 8K |
| Mistral AI (snapshot 2505) | `mistral/codestral-embed-2505` | $0.15 | – | $0.015 | – | – | 8K |
| Vercel AI Gateway | `vercel_ai_gateway/mistral/codestral-embed` | $0.15 | $0 | – | – | – | – |

## Cost examples

Embedding 10,000 documents of 500 tokens each:

- Mistral AI: $0.75
- Vercel AI Gateway: $0.75

## Use it with LiteLLM

```python
from litellm import embedding

response = embedding(
    model="mistral/codestral-embed",
    input=["hello world"],
)
```

## FAQ

### How much does Codestral Embed cost?

Codestral Embed costs $0.15 per 1M input tokens on Mistral AI.

### What is the context window of Codestral Embed?

Codestral Embed has an 8,192-token context window.

### Which providers offer Codestral Embed?

Codestral Embed is available from 2 providers through LiteLLM: Mistral AI and Vercel AI Gateway.

### How do I call Codestral Embed with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="mistral/codestral-embed", 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 Codestral Embed?

Codestral Embed was added to LiteLLM's model price file in September 2025.

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