Codestral

Codestral is a text model from Mistral Codestral with a context window of 32K tokens and max output of 8K tokens.

Capabilities

Vision Function Calling Reasoning JSON Schema System Messages Web Search Prompt Caching Audio Input Audio Output

Specifications

Model Keytext-completion-codestral/codestral-latest
ProviderMistral Codestral
Provider IDtext-completion-codestral
ModeText
Canonical Namecodestral
Context Window32K tokens
Max Output8K tokens

Pricing

TypePer 1K TokensPer 1M Tokens
Input TokensN/AN/A
Output TokensN/AN/A

Benchmarks

No benchmark data is available for this model.

Price Comparison by Provider

Compare prices for Codestral across different providers. The same model may be available through multiple providers at different price points.

Provider
Model Key
Input Price, $
Output Price, $
Vertex AI (Mistral)vertex_ai/codestral@latest0.2000.600
Vercel AI Gatewayvercel_ai_gateway/mistral/codestral0.3000.900
Mistral Codestraltext-completion-codestral/codestral-latestN/AN/A
Mistral AImistral/codestral-latest1.003.00
Mistral Codestralcodestral/codestral-latestN/AN/A

All Variants

All available versions, regions, and API endpoints for Codestral.

Model Key
Provider
Mode
Input Price, $
Output Price, $
Context
Max Output
Vision
Functions
mistral/codestral-latestMistral AIText1.003.0032K8Knono
codestral/codestral-latestMistral CodestralTextN/AN/A32K8Knono
text-completion-codestral/codestral-latestMistral CodestralTextN/AN/A32K8Knono
vercel_ai_gateway/mistral/codestralVercel AI GatewayText0.3000.900256K4Knoyes
vertex_ai/codestral@latestVertex AI (Mistral)Text0.2000.600128K128Knoyes