← Back to explorer

Anthropic: Claude Sonnet 4

Server-rendered model summary page for indexing/share previews. Use the interactive explorer for full filtering and comparison.

Match confidence: UnmatchedSource type: openrouter_only
Context window
1M
Arena overall rank
Input price
$0.000 / 1M
Output price
$0.000 / 1M

Identifiers & provenance

Primary ID
anthropic/claude-sonnet-4
OpenRouter ID
anthropic/claude-sonnet-4
Canonical slug
anthropic/claude-4-sonnet-20250522

Source semantics

  • Arena rank is a human-preference leaderboard signal, not a universal truth metric.
  • OpenRouter usage/popularity reflects adoption/traffic, not benchmark quality.
  • Pricing fields may differ by provider and can include extra modes beyond prompt/completion.

Read more on Methodology & data sources.

Description

Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%), Sonnet 4 balances capability and computational efficiency, making it suitable for a broad range of applications from routine coding tasks to complex software development projects. Key enhancements include improved autonomous codebase navigation, reduced error rates in agent-driven workflows, and increased reliability in following intricate instructions. Sonnet 4 is optimized for practical everyday use, providing advanced reasoning capabilities while maintaining efficiency and responsiveness in diverse internal and external scenarios. Read more at the [blog post here](https://www.anthropic.com/news/claude-4)

Raw fields snapshot

{
  "id": "anthropic/claude-sonnet-4",
  "name": "Anthropic: Claude Sonnet 4",
  "description": "Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%), Sonnet 4 balances capability and computational efficiency, making it suitable for a broad range of applications from routine coding tasks to complex software development projects. Key enhancements include improved autonomous codebase navigation, reduced error rates in agent-driven workflows, and increased reliability in following intricate instructions. Sonnet 4 is optimized for practical everyday use, providing advanced reasoning capabilities while maintaining efficiency and responsiveness in diverse internal and external scenarios.\n\nRead more at the [blog post here](https://www.anthropic.com/news/claude-4)",
  "created": 1747930371,
  "canonical_slug": "anthropic/claude-4-sonnet-20250522",
  "hugging_face_id": "",
  "source_type": "openrouter_only",
  "context_length": 1000000,
  "max_completion_tokens": 64000,
  "is_moderated": false,
  "architecture": {
    "modality": "text+image+file->text",
    "input_modalities": [
      "image",
      "text",
      "file"
    ],
    "output_modalities": [
      "text"
    ],
    "tokenizer": "Claude",
    "instruct_type": null
  },
  "input_modalities": [
    "image",
    "text",
    "file"
  ],
  "output_modalities": [
    "text"
  ],
  "modality": "text+image+file->text",
  "tokenizer": "Claude",
  "instruct_type": null,
  "supported_parameters": [
    "include_reasoning",
    "max_tokens",
    "reasoning",
    "stop",
    "temperature",
    "tool_choice",
    "tools",
    "top_k",
    "top_p"
  ],
  "default_parameters": {
    "temperature": null,
    "top_p": null,
    "frequency_penalty": null
  },
  "per_request_limits": null,
  "top_provider": {
    "context_length": 1000000,
    "max_completion_tokens": 64000,
    "is_moderated": false
  },
  "pricing": {
    "prompt": "0.000003",
    "completion": "0.000015",
    "web_search": "0.01",
    "input_cache_read": "0.0000003",
    "input_cache_write": "0.00000375"
  },
  "PPM": {
    "prompt": 3,
    "completion": 15,
    "web_search": 10000,
    "input_cache_read": 0.3,
    "input_cache_write": 3.75
  },
  "openrouter_raw": {
    "id": "anthropic/claude-sonnet-4",
    "canonical_slug": "anthropic/claude-4-sonnet-20250522",
    "hugging_face_id": "",
    "name": "Anthropic: Claude Sonnet 4",
    "created": 1747930371,
    "description": "Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%), Sonnet 4 balances capability and computational efficiency, making it suitable for a broad range of applications from routine coding tasks to complex software development projects. Key enhancements include improved autonomous codebase navigation, reduced error rates in agent-driven workflows, and increased reliability in following intricate instructions. Sonnet 4 is optimized for practical everyday use, providing advanced reasoning capabilities while maintaining efficiency and responsiveness in diverse internal and external scenarios.\n\nRead more at the [blog post here](https://www.anthropic.com/news/claude-4)",
    "context_length": 1000000,
    "architecture": {
      "modality": "text+image+file->text",
      "input_modalities": [
        "image",
        "text",
        "file"
      ],
      "output_modalities": [
        "text"
      ],
      "tokenizer": "Claude",
      "instruct_type": null
    },
    "pricing": {
      "prompt": "0.000003",
      "completion": "0.000015",
      "web_search": "0.01",
      "input_cache_read": "0.0000003",
      "input_cache_write": "0.00000375"
    },
    "top_provider": {
      "context_length": 1000000,
      "max_completion_tokens": 64000,
      "is_moderated": false
    },
    "per_request_limits": null,
    "supported_parameters": [
      "include_reasoning",
      "max_tokens",
      "reasoning",
      "stop",
      "temperature",
      "tool_choice",
      "tools",
      "top_k",
      "top_p"
    ],
    "default_parameters": {
      "temperature": null,
      "top_p": null,
      "frequency_penalty": null
    },
    "expiration_date": null
  }
}
Anthropic: Claude Sonnet 4 · NNZen