ModelInfo
English
All models

Claude Sonnet 4

Anthropicclaude-sonnet-42025-05-22Report incorrect data

Specs

Context
200K
Max output
64K
Input price
$3/ 1M tokens
Output price
$15/ 1M tokens
Released
2025-05-22

Context

Context window
200K
Max input
—
Max output
64K

Pricing · USD / 1M tokens

Input
$3
Output
$15
Cache read
$0.3
Cache write
$3.75

Modalities

Input
TextImage
Output
Text

API

API types
messagesbatch

Reasoning

Reasoning
Yes
Levels
—

Info

Status
Retired
Released
2025-05-22
Knowledge cutoff
2025-03

Features

Confirmed
toolscachingbatch
Source · official docsVerified 2026-10-11

How to call

1 provider

anthropicmodel = claude-sonnet-4-20250514reasoning = thinking

JSON

Standard format
claude-sonnet-4.json
{
  "id": "claude-sonnet-4",
  "object": "model",
  "created": 1747872000,
  "owned_by": "anthropic",
  "name": "Claude Sonnet 4",
  "api": {
    "types": [
      "messages",
      "batch"
    ]
  },
  "limits": {
    "context": 200000,
    "input": null,
    "output": 64000
  },
  "modalities": {
    "input": [
      "text",
      "image"
    ],
    "output": [
      "text"
    ]
  },
  "reasoning": {
    "supported": true,
    "efforts": []
  },
  "pricing": {
    "currency": "USD",
    "unit": "1M_tokens",
    "input": 3,
    "output": 15,
    "cache_read": 0.3,
    "cache_write": 3.75
  },
  "features": [
    "tools",
    "caching",
    "batch"
  ],
  "info": {
    "status": "retired",
    "release_date": "2025-05-22",
    "knowledge_cutoff": "2025-03",
    "description": null,
    "docs": "https://platform.claude.com/docs/en/about-claude/model-deprecations",
    "verified_at": "2026-10-11"
  }
}

Official sources

4