Skip to content
Dashboard

Codestral Embed

Codestral Embed is Mistral AI'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 AI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
Providers
ZDR
No Training
Release Date
256K
0.4s
49tps
$0.50/M$1.50/M
mistral logo
12/02/2025
256K
0.3s
98tps
$0.20/M$0.20/M
+1
mistral logo
12/02/2025
128K
0.3s
150tps
$0.10/M$0.10/M
mistral logo
10/16/2024
128K
0.3s
108tps
$0.15/M$0.15/M
mistral logo
10/16/2024
32K
0.3s
185tps
$0.10/M$0.30/M
mistral logo
09/17/2024
$0.10/M
mistral logo
12/11/2023