Codestral Embed API Pricing
mistral/codestral-embed- Input
- $0.15 per 1M tokens
- Cache read
- $0.015 / 1M
- Context
- 8K tokens
As of November 24, 2026, Codestral Embed costs $0.15 per 1M input tokens on Mistral AI. It has an 8,192-token context window.
Codestral Embed pricing by provider
3 listings across 2 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Cache read | Context |
|---|---|---|---|---|---|
| Mistral AI | mistral/codestral-embed | $0.15 | – | $0.015 | 8K |
| Mistral AIsnapshot 2505 | mistral/codestral-embed-2505 | $0.15 | – | $0.015 | 8K |
| Vercel AI Gateway | vercel_ai_gateway/mistral/codestral-embed | $0.15 | $0 | – | – |
What Codestral Embed costs in practice
Embedding 10,000 documents of 500 tokens each
| Mistral AI | $0.75 |
| Vercel AI Gateway | $0.75 |
Use Codestral Embed with LiteLLM
Call Codestral Embed through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/embeddings. LiteLLM tracks the cost of every request at these prices.
from litellm import embedding
response = embedding(
model="mistral/codestral-embed",
input=["hello world"],
)model_list:
- model_name: codestral-embed
litellm_params:
model: mistral/codestral-embed
api_key: os.environ/MISTRAL_API_KEYcurl http://0.0.0.0:4000/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-d '{
"model": "codestral-embed",
"input": "hello world"
}'Codestral Embed 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.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change.
LiteLLM docs: Mistral AI, Vercel AI Gateway.
Provider pages: Mistral AI, Vercel AI Gateway.