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. Your use is subject to Mistral's Terms & Privacy Policies.

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

More models by Mistral

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Release Date
256K
0.3s
$1.50/M
$7.50/M
mistral logo
04/29/2026
256K
1.3s
43tps
$0.40/M
$2/M
mistral logo
12/09/2025
256K
0.3s
60tps
$0.10/M
$0.30/M
mistral logo
12/09/2025
256K
0.4s
52tps
$0.50/M
$1.50/M
mistral logo
12/02/2025
128K
0.3s
169tps
$0.10/M
$0.10/M
mistral logo
10/16/2024
$0.10/M
mistral logo
12/11/2023