Codestral
Mistral's dedicated code model. Optimized for code generation, completion, and review across 80+ languages.
256K
tokens
8K
tokens
$0.3
per 1M tokens
$0.9
per 1M tokens
195
tokens/sec
Jan 2025
2025-01-14
$0.60
per 1M tokens
126.7
quality per $
Capabilities
Benchmarks
Price vs Quality
Context Window in Context
- Amazon Nova Pro300K
- Qwen3.8 27B262K
- ▸ Codestral256K
- Nemotron 3 Nano Omni256K
- Qwen 3.6 Plus256K
- Kimi K2.6256K
- Hunyuan Hy3256K
- Ling-3.0-Flash256K
Not on our gateway yet
Swfte Connect does not hold a key for Codestral, so there is nothing to run here. Add your own provider key and call it with the same API as every other model in this directory.
curl https://api.swfte.com/agents/v2/gateway/chat/completions \
-H "Authorization: Bearer $SWFTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistral:codestral-2501",
"messages": [{"role": "user", "content": "Hello"}]
}'About Codestral
Codestral is a coding AI model by Mistral AI, released on January 14, 2025. It supports a context window of 256K tokens and can generate up to 8K output tokens.
At $0.3 per million input tokens and $0.9 per million output tokens, its blended cost of $0.60/1M tokens makes it one of the most affordable models available. Its value score of 126.7 reflects the balance of quality and cost.
Using Codestral with Swfte
Access Codestral through Swfte Connect, our unified LLM gateway. Connect gives you a single API for 50+ models, with automatic routing, cost optimization, and fallback handling. You can also try Codestral in our AI Playground before integrating.