Mistral Codestral

Model details

Mistral Codestral

Model
mistral/codestral
Provider
vercel-ai-gateway
API
anthropic-messages
Base URL
https://ai-gateway.vercel.sh
Input
text
Reasoning
No
Context window
128,000
Max tokens
4,000
Cost / million input
$0.3
Cost / million output
$0.9
Cost / million cache read
$0
Cost / million cache write
$0
Model config JSON
{
  "providers": {
    "vercel-ai-gateway": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "mistral/codestral",
          "name": "Mistral Codestral",
          "reasoning": false,
          "input": [
            "text"
          ],
          "contextWindow": 128000,
          "maxTokens": 4000,
          "cost": {
            "input": 0.3,
            "output": 0.8999999999999999,
            "cacheRead": 0,
            "cacheWrite": 0
          }
        }
      ],
      "api": "anthropic-messages",
      "baseUrl": "https://ai-gateway.vercel.sh"
    }
  }
}