Mistral Medium 3.1

Model details

Mistral Medium 3.1

Model
mistral/mistral-medium
Provider
vercel-ai-gateway
API
anthropic-messages
Base URL
https://ai-gateway.vercel.sh
Input
text, image
Reasoning
No
Context window
128,000
Max tokens
64,000
Cost / million input
$0.4
Cost / million output
$2
Cost / million cache read
$0
Cost / million cache write
$0
Model config JSON
{
  "providers": {
    "vercel-ai-gateway": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "mistral/mistral-medium",
          "name": "Mistral Medium 3.1",
          "reasoning": false,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 128000,
          "maxTokens": 64000,
          "cost": {
            "input": 0.39999999999999997,
            "output": 2,
            "cacheRead": 0,
            "cacheWrite": 0
          }
        }
      ],
      "api": "anthropic-messages",
      "baseUrl": "https://ai-gateway.vercel.sh"
    }
  }
}