Claude Sonnet 4

Text & chatRetiredUnavailable
by AnthropicModel ID: claude-sonnet-4

Anthropic's most capable model. Excellent for complex analysis, coding, math, and creative writing.

Status
Unavailable
Context
200,000 tokens
Max. output
8,192 tokens
Input → output
Text → Text
Developer
Anthropic
Updated
September 23, 2026

Claude Sonnet 4 is currently unavailable

You can still read the details on this page. Pick one of the available alternatives below to run a comparable model right away.

Go to alternatives

The provider has retired this model.

Newer version available: Claude Sonnet 4.6

01

Comparable models

All in this category
02

Playground

Try Claude Sonnet 4

Chat

Currently unavailable

Currently unavailable.

The playground is disabled. You can find comparable models in the same category: Browse alternatives

Try Claude Sonnet 4

Send a message. The answer arrives in full once the model is done (no streaming).

System prompt
Max. answer length (tokens)

This run

No price – currently unavailable.

New here?

10 free credits ($0.10) when you sign up with Google

Usable 24 hours after sign-up, up to 5 runs per day and at most 2 credits per run. Other sign-in methods start without credits.

03

About Claude Sonnet 4

TL;DRAs of September 23, 2026

Claude Sonnet 4 is a model by Anthropic in the Text & chat category. Claude Sonnet 4 is currently not available on Railwail. The context window holds 200,000 tokens, and one response can be up to 8,192 tokens long. Newer version: Claude Sonnet 4.6.

Background

About Anthropic

Founded 2021 · San Francisco, USA

Anthropic was founded in 2021 by Dario and Daniela Amodei alongside ex-OpenAI researchers including Tom Brown and Jared Kaplan. The company is a Public Benefit Corporation focused on AI safety, interpretability and steerability. Foundational papers from the team include 'Scaling Laws for Neural Language Models' (Kaplan et al., 2020), 'Training a Helpful and Harmless Assistant' (2022) and 'Constitutional AI' (2022). The Claude product family was launched in March 2023 starting with Claude 1, followed by Claude 2, the Claude 3 family in March 2024, Claude 3.5 Sonnet in mid-2024, Claude 3.7 Sonnet with extended thinking in early 2025 and the Claude 4 family (Opus 4 and Sonnet 4) in May 2025. Anthropic is backed by Google, Amazon, Spark Capital, Lightspeed and others, with cumulative funding above $15 billion and a 2025 valuation above $60 billion. Anthropic publishes a Responsible Scaling Policy that defines ASL safety levels and is widely cited in AI governance debates.

Visit Anthropic

Architecture

Decoder-only Transformer (balanced production model)

Claude Sonnet 4 is the mid-tier flagship in the Claude 4 family, positioned as the default daily-driver model balancing latency, cost and capability. Architecturally it is a decoder-only Transformer pretrained on a curated multilingual corpus of web data, source code, books and licensed datasets, with a March 2025 data cutoff. Post-training applies a combination of supervised fine-tuning, Reinforcement Learning from Human Feedback (RLHF), Constitutional AI for harmlessness, and Reinforcement Learning from AI Feedback to scale alignment work. Sonnet 4 supports extended thinking with adjustable thinking budgets, allowing developers to trade additional latency for stronger reasoning on demand. Tool use, parallel tool calls, structured JSON output and Anthropic's computer use API are supported natively. Multimodal training jointly grounds images and text so charts, screenshots and PDF pages can be reasoned about within the 200K context. Sonnet 4 is co-trained alongside Opus 4 using shared infrastructure, then distilled and specialised toward throughput rather than maximum capability. Anthropic evaluated the model under Responsible Scaling Policy ASL-3 safeguards with internal red-teaming and external partners such as METR and Apollo Research before public release.

Parameters
Undisclosed (estimated mid-hundred billion parameters dense)
Context
200,000 tokens

Capabilities

  • Strong coding model with high SWE-bench Verified scores at production cost
  • Optional extended thinking mode with configurable token budget
  • 200K context window with reliable long-document recall
  • Multimodal input including images, charts and PDFs
  • Tool use, parallel tool calls and computer use API
  • Stable agent loops over hours of autonomous work
  • Strict JSON, XML and schema-constrained output
  • Excellent at instruction following and persona retention
  • Multilingual reasoning across major European and Asian languages
  • Low refusal rate on benign technical content thanks to Constitutional AI tuning
  • Best for: production assistants, coding copilots, agent backbones, document analysis at scale.

Training & license

Pretrained on a multi-trillion-token mixture of curated web text, books, code repositories, licensed data and synthetic data, with quality and deduplication filters. Data cutoff is March 2025. Post-training uses human preference data, Constitutional AI critiques and RLAIF on top of supervised fine-tuning.

License: Proprietary commercial license via Anthropic API, Amazon Bedrock and Google Vertex AI.

Safety testing: Anthropic Frontier Red Team plus external evaluators (METR, Apollo Research) tested for autonomy, CBRN uplift and cyber misuse under ASL-3 safeguards.

Known limitations

  • No native audio or video input
  • Knowledge cutoff March 2025
  • Will refuse some dual-use security questions
  • No customer fine-tuning available
  • Not as strong as Opus 4 on hardest math/coding benchmarks
04

Pricing

Currently unavailable. There is no price for this model at the moment, so it cannot be run.

05

API

Call Claude Sonnet 4 with your Railwail API key. Use this model ID in the request:

Currently unavailable

The model has no verified price or is deactivated; API calls are refused.

06

Specifications

Model ID
claude-sonnet-4
Developer
Anthropic
Category
Text & chat
Input
Text
Output
Text
Context window
200,000 tokens
Max. output
8,192 tokens
Lifecycle
Retired
Model size
Undisclosed (estimated mid-hundred billion parameters dense)
License
Proprietary commercial license via Anthropic API, Amazon Bedrock and Google Vertex AI.
Catalog entry updated
September 23, 2026

Tags

  • popular
  • coding
  • analysis
07

Example prompts

Examples from the Railwail catalog. They were not generated live on this page.
  • Code Review

    Review this function and suggest improvements: function add(a,b){return a+b}
    Show example answer

    The function works but could benefit from several improvements. Add TypeScript types for safety: `function add(a: number, b: number): number`. Consider input validation to handle edge cases like NaN or Infinity. You might also add JSDoc comments for documentation. For a utility function, consider making it part of a math utilities module rather than a standalone global function.

  • Creative Story

    Write the opening paragraph of a sci-fi story set on a generation ship that has been traveling for 300 years
    Show example answer

    Captain Yara Chen pressed her palm against the observation deck glass, feeling the faint vibration of engines that had been running since before her great-great-grandmother was born. Outside, the stars looked the same as they always had—unchanged pinpricks against the void—but the ship's AI had confirmed it this morning: Kepler-442b was now close enough to resolve as a pale blue dot on the long-range sensors. Three hundred years of recycled air, artificial seasons, and carefully rationed hope were finally converging on something real.

08

Use cases

What it is used for

  • Production chatbots and assistants
  • Coding copilots and IDE integrations
  • Agent backbones for SaaS workflows
  • Document Q&A over 200K context
  • Customer support automation
  • Content creation and editing
09

Frequently asked questions

What is Claude Sonnet 4?

Claude Sonnet 4 is a model by Anthropic in the Text & chat category. It is listed on Railwail but cannot be run at the moment.

How much does Claude Sonnet 4 cost on Railwail?

Claude Sonnet 4 cannot be run on Railwail at the moment, so there is no current price. Available alternatives with prices are listed further down this page.

What is the context window of Claude Sonnet 4?

The context window of Claude Sonnet 4 holds 200,000 tokens. One response can be up to 8,192 tokens long.

How fast is Claude Sonnet 4?

There are not enough measured runs of Claude Sonnet 4 on Railwail yet to state a run time. It depends on the input, the settings and the load at the provider.

Is Claude Sonnet 4 better than Claude Sonnet 4.6?

That depends on the task. Claude Sonnet 4 (Anthropic) and Claude Sonnet 4.6 (Anthropic) are both models in the Text & chat category. The comparison page shows their prices and specifications side by side.

Compare Claude Sonnet 4 and Claude Sonnet 4.6

Can I use Claude Sonnet 4 right now?

Currently unavailable. The page stays online; available alternatives from the same category are listed further down.

All models through one API

One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = $0.01.