Claude Opus 4.1

Model details

Claude Opus 4.1

Model
claude-opus-4-1
Provider
opencode
API
anthropic-messages
Base URL
https://opencode.ai/zen
Input
text, image
Reasoning
Yes
Context window
200,000
Max tokens
32,000
Cost / million input
$15
Cost / million output
$75
Cost / million cache read
$1.5
Cost / million cache write
$18.75
Model config JSON
{
  "providers": {
    "opencode": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "claude-opus-4-1",
          "name": "Claude Opus 4.1",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 200000,
          "maxTokens": 32000,
          "cost": {
            "input": 15,
            "output": 75,
            "cacheRead": 1.5,
            "cacheWrite": 18.75
          }
        }
      ],
      "api": "anthropic-messages",
      "baseUrl": "https://opencode.ai/zen"
    }
  }
}