Skip to content
Dashboard

Codestral Embed

Codestral Embed is Mistral's first embedding model specialized for code, outperforming general-purpose and competing code embedding models on real-world retrieval benchmarks.

index.ts
import { embed } from 'ai';
const result = await embed({
model: 'mistral/codestral-embed',
value: 'Sunny day at the beach',
})

More models by Mistral

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Release Date
256K
0.3s
123tps
$1.50/M
$7.50/M
mistral logo
04/29/2026
256K
0.9s
75tps
$0.10/M
$0.30/M
mistral logo
12/09/2025
256K
0.5s
65tps
$0.50/M
$1.50/M
mistral logo
12/02/2025
128K
0.3s
209tps
$0.10/M
$0.10/M
mistral logo
10/16/2024
32K
0.4s
$0.10/M
$0.30/M
mistral logo
09/17/2024
$0.10/M
mistral logo
12/11/2023