ModelRefs / Claude Sonnet 4 - AI model implementation reference

Claude Sonnet 4 - AI model implementation reference

Claude Sonnet 4 is Anthropic's May 22, 2025 hybrid-reasoning model for coding, visual reasoning, tool use, and agent workflows. The immutable claude-sonnet-4-20250514 snapshot is now retired on Anthropic-operated platforms, so this page is a historical implementation, evaluation, and migration reference rather than a recommendation for new deployment.

Overview

This historical profile provides provisional decision support from source-scoped evidence; it is not a final ranking or production guarantee.

Claude Sonnet 4 is Anthropic's May 22, 2025 hybrid-reasoning model for coding, visual reasoning, tool use, and practical agent workflows. This reference maps evidence to the immutable claude-sonnet-4-20250514 snapshot rather than transferring results from Claude Sonnet 4.5, Sonnet 4.6, later Sonnet releases, mutable aliases, or high-compute selection variants.

The evidence ledger includes Anthropic-published SWE-bench Verified, Terminal-Bench, GPQA Diamond, AIME 2025, tau-bench Retail, tau-bench Airline, and MMMU results, with the associated thinking, agent-harness, sampling, and step-limit qualifications retained. Anthropic publishes the source and model snapshot but not exact evaluation execution dates, so ModelRefs leaves those dates undisclosed instead of treating the May 22 publication date as a benchmark run date.

Anthropic retired claude-sonnet-4-20250514 on its operated platforms on June 15, 2026 and recommends Claude Sonnet 4.6 for migration. The page therefore serves as a historical implementation, comparison, evaluation, and migration reference; partner-cloud availability follows each partner's own lifecycle, while exact training corpus, architecture, parameter count, training compute, knowledge cutoff, and independent reproduction evidence remain unavailable.

Benchmark & Evaluation

ModelRefs currently has partial, narrow benchmark coverage for Claude Sonnet 4. Treat the available benchmark evidence as one input to the decision, not a guarantee that Claude Sonnet 4 is the strongest option for your workload, and evaluate it on representative workloads before selecting it.

  • Seven canonical provider-run records cover SWE-bench Verified, Terminal-Bench, GPQA Diamond, AIME 2025, tau-bench Retail, tau-bench Airline, and MMMU validation for the dated Claude Sonnet 4 launch snapshot.
  • These scores are source-scoped and provider-reported. Several use extended thinking, tool scaffolds, increased step limits, or Anthropic-specific agent frameworks; none supplies a physical execution date or independent reproduction.

Implementation considerations

  • Treat claude-sonnet-4-20250514 as a retired, immutable evaluation subject; inventory and migrate production calls rather than routing new traffic to it.
  • For historical reproduction, preserve the exact extended-thinking budget, tool scaffold, prompt addendum, sampling settings, and cloud channel because the launch scores are model-plus-harness results.
  • Anthropic retired claude-sonnet-4-20250514 on its operated platforms on June 15, 2026; requests to a retired model fail, and Anthropic recommends claude-sonnet-4-6 as the replacement.
  • Amazon Bedrock and Google Cloud control their own lifecycle schedules. Verify the exact partner model ID, region, retirement state, and data terms before assuming historical availability.

Architecture disclosure

  • Anthropic describes Claude Sonnet 4 as a hybrid reasoning model with standard and extended-thinking modes, but does not disclose parameter count, attention design, tokenizer internals, or a reproducible architecture specification.
  • The reviewed benchmark results depend on configuration: extended thinking up to 64K tokens for GPQA, AIME, tau-bench, and MMMU; no extended thinking for SWE-bench and Terminal-Bench.

Prompts and code examples

Historical version-pinned Messages API request

import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic();
// Historical reproduction only: Anthropic retired this snapshot on 2026-06-15.
const message = await client.messages.create({
  model: "claude-sonnet-4-20250514",
  max_tokens: 4096,
  messages: [{
    role: "user",
    content: "Review this migration plan and identify the three highest-risk assumptions.",
  }],
});

console.log(message.content);

Provider implementation source

Training disclosure

  • Anthropic states that Claude 4 models were pretrained on large, diverse datasets and post-trained with human feedback, Constitutional AI, and selected character-trait training.
  • Anthropic does not disclose the complete Claude Sonnet 4 training corpus, per-source mixture, parameter count, optimizer schedule, training compute, or exact knowledge cutoff.
  • Anthropic's privacy documentation describes general data-use policy; it is not a snapshot-specific training-data ledger and must not be presented as one.

History and source-reviewed changelog

  1. 2025-05-22 — Claude Sonnet 4 launched

    Anthropic released Claude Sonnet 4 with standard and extended-thinking modes, API and partner-cloud access, and provider-run coding, reasoning, tool-use, and multimodal evaluations.

    Milestone source
  2. 2026-04-14 — Claude Sonnet 4 deprecation announced

    Anthropic announced the retirement schedule for claude-sonnet-4-20250514 and directed developers to migrate to Claude Sonnet 4.6.

    Milestone source
  3. 2026-06-15 — Claude Sonnet 4 retired on Anthropic-operated platforms

    Anthropic marks the dated Claude Sonnet 4 API model as retired; historical evidence remains valid only for the pinned snapshot and does not establish current availability.

    Milestone source

Risks and limitations

  • Outputs can be incorrect or unsuitable for the intended task; use task-specific evaluation, grounding, and human review where consequences are material.
  • API availability, model aliases, rate limits, data controls, regions, and prices are mutable and differ by product channel.

Source coverage

ModelRefs verified the Claude Sonnet 4 launch, exact API snapshot identity, system card, historical pricing, Messages API shape, extended-thinking controls, retirement record, and seven source-scoped provider evaluations. Anthropic does not publish the physical evaluation execution dates, so ModelRefs preserves them as undisclosed rather than substituting the May 22, 2025 publication date.

Sources

Continue your research

Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Claude Sonnet 4 - AI model implementation reference.