Mistral: Codestral 2508

Model details

Mistral: Codestral 2508

Model
mistralai/codestral-2508
Provider
openrouter
API
openai-completions
Base URL
https://openrouter.ai/api/v1
Input
text
Reasoning
No
Context window
256,000
Max tokens
4,096
Cost / million input
$0.3
Cost / million output
$0.9
Cost / million cache read
$0.03
Cost / million cache write
$0
Model config JSON
{
  "providers": {
    "openrouter": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "mistralai/codestral-2508",
          "name": "Mistral: Codestral 2508",
          "reasoning": false,
          "input": [
            "text"
          ],
          "contextWindow": 256000,
          "maxTokens": 4096,
          "cost": {
            "input": 0.3,
            "output": 0.8999999999999999,
            "cacheRead": 0.03,
            "cacheWrite": 0
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://openrouter.ai/api/v1"
    }
  }
}