Claude Sonnet 3

Model details

Claude Sonnet 3

Model
claude-3-sonnet-20240229
Provider
anthropic
API
anthropic-messages
Base URL
https://api.anthropic.com
Input
text, image
Reasoning
No
Context window
200,000
Max tokens
4,096
Cost / million input
$3
Cost / million output
$15
Cost / million cache read
$0.3
Cost / million cache write
$0.3
Model config JSON
{
  "providers": {
    "anthropic": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "claude-3-sonnet-20240229",
          "name": "Claude Sonnet 3",
          "reasoning": false,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 200000,
          "maxTokens": 4096,
          "cost": {
            "input": 3,
            "output": 15,
            "cacheRead": 0.3,
            "cacheWrite": 0.3
          }
        }
      ],
      "api": "anthropic-messages",
      "baseUrl": "https://api.anthropic.com"
    }
  }
}