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
1.0s
59tps
$0.50/M$1.50/M
mistral logo
12/02/2025
256K
0.2s
81tps
$0.20/M$0.20/M
mistral logo
12/01/2025
128K
0.2s
$0.10/M$0.10/M
mistral logo
10/01/2024
32K
0.4s
167tps
$0.10/M$0.30/M
mistral logo
09/01/2024
$0.10/M
mistral logo
12/11/2023
256K
0.3s
95tps
$1.50/M$7.50/M
mistral logo