Anthropic: Claude 3.7 Sonnet

Model details

Anthropic: Claude 3.7 Sonnet

Model
anthropic/claude-3.7-sonnet
Provider
openrouter
API
openai-completions
Base URL
https://openrouter.ai/api/v1
Input
text, image
Reasoning
Yes
Context window
200,000
Max tokens
128,000
Cost / million input
$3
Cost / million output
$15
Cost / million cache read
$0.3
Cost / million cache write
$3.75
Model config JSON
{
  "providers": {
    "openrouter": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "anthropic/claude-3.7-sonnet",
          "name": "Anthropic: Claude 3.7 Sonnet",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 200000,
          "maxTokens": 128000,
          "cost": {
            "input": 3,
            "output": 15,
            "cacheRead": 0.3,
            "cacheWrite": 3.75
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://openrouter.ai/api/v1"
    }
  }
}