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 Key | vercel_ai_gateway/mistral/codestral |
| Provider | |
| Provider ID | vercel_ai_gateway |
| Mode | Text |
| Canonical Name | codestral |
| Context Window | 256K tokens |
| Max Output | 4K tokens |
Pricing
| Type | Per 1K Tokens | Per 1M Tokens |
|---|---|---|
| Input Tokens | 0.000300 | 0.300 |
| Output Tokens | 0.000900 | 0.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/codestral@latest | 0.200 | 0.600 | |
| vercel_ai_gateway/mistral/codestral | 0.300 | 0.900 | |
| text-completion-codestral/codestral-latest | N/A | N/A | |
| mistral/codestral-latest | 1.00 | 3.00 | |
| codestral/codestral-latest | N/A | N/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-latest | Text | 1.00 | 3.00 | 32K | 8K | no | no | |
| codestral/codestral-latest | Text | N/A | N/A | 32K | 8K | no | no | |
| text-completion-codestral/codestral-latest | Text | N/A | N/A | 32K | 8K | no | no | |
| vercel_ai_gateway/mistral/codestral | Text | 0.300 | 0.900 | 256K | 4K | no | yes | |
| vertex_ai/codestral@latest | Text | 0.200 | 0.600 | 128K | 128K | no | yes |