Codestral

Vercel Ai GatewayText

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 Google Vertex AI).

Specifications

Model Keyvercel_ai_gateway/mistral/codestral
ProviderVercel Ai Gateway
LiteLLM Providervercel_ai_gateway
ModeText
Canonical Namecodestral
Context Window256K tokens
Max Output4K tokens

Capabilities

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

Pricing

TypePer 1K TokensPer 1M Tokens
Input Tokens$0.000300$0.300
Output Tokens$0.000900$0.900

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
Mistral AImistral/codestral-latest$1.00$3.00
Vercel Ai Gatewayvercel_ai_gateway/mistral/codestral$0.300$0.900
Google Vertex AIvertex_ai/codestral@latest$0.200$0.600

Similar Models

Models with similar capabilities and context window size.

Model
Provider
Mode
Input Price
Output Price
Context
Max Output
Vision
Functions
Grok Code Fast 1xAIText$0.200$1.50256K256Knoyes
Jamba 1 5 Mini V1AWS BedrockText$0.200$0.400256K256Knono
Jamba 1.5AI21 LabsText$0.200$0.400256K256Knono
Jamba 1.5 MiniAI21 LabsText$0.200$0.400256K256Knono
Jamba 1.5 MiniGoogle Vertex AIText$0.200$0.400256K256Knono
Labs Devstral Small 2512Mistral AIText$0.100$0.300256K256Knoyes
Mamba Codestral 7B V0.1OvhcloudText$0.190$0.190256K256Knono
Ministral 3 14B Instruct 2512Fireworks AIText$0.200$0.200256K256Knono
Ministral 3 3B Instruct 2512Fireworks AIText$0.100$0.100256K256Knono
Ministral 3 8B Instruct 2512Fireworks AIText$0.200$0.200256K256Knono