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
66tps
$1.50/M$7.50/M
+1
mistral logo
04/29/2026
256K
0.4s
61tps
$0.50/M$1.50/M
mistral logo
12/02/2025
128K
0.3s
151tps
$0.10/M$0.10/M
mistral logo
10/16/2024
128K
0.3s
84tps
$0.15/M$0.15/M
mistral logo
10/16/2024
32K
0.4s
183tps
$0.10/M$0.30/M
mistral logo
09/17/2024
$0.10/M
mistral logo
12/11/2023