Codestral Embed
Semantic embedding model for extracting representations of code.
Specs
- Context
- 8.2K
- Max output
- —
- Input price
- $0.15/ 1M tokens
- Output price
- —
- Released
- 2025-05-28
Context
- Context window
- 8.2K
- Max input
- —
- Max output
- —
Pricing · USD / 1M tokens
- Input
- $0.15
- Output
- —
- Cache read
- —
- Cache write
- —
Modalities
- Input
- Text
- Output
- Embedding
API
- API types
Reasoning
- Not published
Info
- Status
- Active
- Released
- 2025-05-28
- Knowledge cutoff
- —
Features
- Confirmed
How to call
1 provider
mistralmodel = codestral-embed-2505
embeddings
POSThttps://api.mistral.ai/v1/embeddings
batch
POSThttps://api.mistral.ai/v1/batch
JSON
Standard format
{
"id": "codestral-embed-2505",
"object": "model",
"created": 1748390400,
"owned_by": "mistral",
"name": "Codestral Embed",
"api": {
"types": [
"embeddings",
"batch"
]
},
"limits": {
"context": 8192,
"input": null,
"output": null
},
"modalities": {
"input": [
"text"
],
"output": [
"embedding"
]
},
"reasoning": {
"supported": null,
"efforts": []
},
"pricing": {
"currency": "USD",
"unit": "1M_tokens",
"input": 0.15,
"output": null,
"cache_read": null,
"cache_write": null
},
"features": [
"batch"
],
"info": {
"status": "active",
"release_date": "2025-05-28",
"knowledge_cutoff": null,
"description": "Semantic embedding model for extracting representations of code.",
"docs": "https://docs.mistral.ai/models/codestral-embed-25-05",
"verified_at": "2026-10-10"
}
}Official sources
4