Codestral

Codestral is a text model from Vercel AI Gateway with a context window of 256K tokens and max output of 4K tokens. Pricing starts at 0.30 per million input tokens and 0.90 per million output tokens (cheapest at Mistral Codestral).

Capabilities

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

Specifications

Model Keyvercel_ai_gateway/mistral/codestral
ProviderVercel AI Gateway
Provider IDvercel_ai_gateway
ModeText
Canonical Namecodestral
Context Window256K tokens
Max Output4K tokens

Pricing

TypePer 1K TokensPer 1M Tokens
Input Tokens0.0003000.300
Output Tokens0.0009000.900

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