mistralai logo
mistralai

Mistral: Codestral Embed 2505

Source description (English)

Mistral Codestral Embed is specially designed for code, perfect for embedding code databases, repositories, and powering coding assistants with state-of-the-art retrieval.

Overview

Model specifications

Context
8,192 tokens
Maximum output
6,553 tokens
Architecture
text->embeddings
Tokenizer
Mistral
Knowledge cutoff
Not provided
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$0.15
per 1M tokens
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

API documentation

curl --fail-with-body https://openrouter.ai/api/v1/embeddings \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"mistralai/codestral-embed-2505","input":"Your text here"}'
Capabilities

InputOutput

Input
text
Output
embeddings
API

Supported API parameters

Available providers

3 providers

Checked: September 16, 2026

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

Mistral

Not provided
Context
8K
Maximum output
7K
Input
$0.15
Output
Free
Cache read
Not provided
Cache write
Not provided

Mistral

Not provided
Context
8K
Maximum output
7K
Input
$0.15
Output
Free
Cache read
Not provided
Cache write
Not provided

Mistral

Not provided
Context
8K
Maximum output
7K
Input
$0.165
Output
Free
Cache read
Not provided
Cache write
Not provided
mistralai

4 models

All models