Skip to content

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.3s
77tps
$0.40/M$2.00/M
mistral logo
12/09/2025
128K
0.2s
$0.10/M$0.10/M
mistral logo
10/01/2024
32K
0.3s
$0.10/M$0.30/M
mistral logo
09/01/2024
131K
0.2s
120tps
$0.15/M$0.15/M
deepinfra logo
mistral logo
novita logo
07/01/2024
$0.10/M
mistral logo
12/11/2023
256K
0.3s
61tps
$1.50/M$7.50/M
mistral logo