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 Key | vercel_ai_gateway/mistral/codestral |
| Provider | Vercel Ai Gateway |
| LiteLLM Provider | vercel_ai_gateway |
| Mode | Text |
| Canonical Name | codestral |
| Context Window | 256K tokens |
| Max Output | 4K tokens |
Capabilities
✗ Vision✓ Function Calling✗ Reasoning✗ JSON Schema✗ System Messages✗ Web Search✗ Prompt Caching✗ Audio Input✗ Audio Output
Pricing
| Type | Per 1K Tokens | Per 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 AI | mistral/codestral-latest | $1.00 | $3.00 |
| Vercel Ai Gateway | vercel_ai_gateway/mistral/codestral | $0.300 | $0.900 |
| Google Vertex AI | vertex_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 1 | xAI | Text | $0.200 | $1.50 | 256K | 256K | no | yes |
| Jamba 1 5 Mini V1 | AWS Bedrock | Text | $0.200 | $0.400 | 256K | 256K | no | no |
| Jamba 1.5 | AI21 Labs | Text | $0.200 | $0.400 | 256K | 256K | no | no |
| Jamba 1.5 Mini | AI21 Labs | Text | $0.200 | $0.400 | 256K | 256K | no | no |
| Jamba 1.5 Mini | Google Vertex AI | Text | $0.200 | $0.400 | 256K | 256K | no | no |
| Labs Devstral Small 2512 | Mistral AI | Text | $0.100 | $0.300 | 256K | 256K | no | yes |
| Mamba Codestral 7B V0.1 | Ovhcloud | Text | $0.190 | $0.190 | 256K | 256K | no | no |
| Ministral 3 14B Instruct 2512 | Fireworks AI | Text | $0.200 | $0.200 | 256K | 256K | no | no |
| Ministral 3 3B Instruct 2512 | Fireworks AI | Text | $0.100 | $0.100 | 256K | 256K | no | no |
| Ministral 3 8B Instruct 2512 | Fireworks AI | Text | $0.200 | $0.200 | 256K | 256K | no | no |