Back to Models
anthropic logoAnthropic
anthropic/claude-sonnet-4
Not Available

Claude Sonnet 4

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)

5/22/2025
1,000,000 tokens

Specifications

Modalities

Input
image
text
file
Output
text

Supported Parameters

include_reasoning
max_tokens
reasoning
stop
temperature
tool_choice
tools
top_k
top_p

Max Output Tokens

64,000

Data policy

Prompt retention
Unknown — we could not confirm
Training
Unknown — not declared

"Unknown" does not mean "safe". It means we could not confirm it.

Whether a provider trains on prompts is a declared value from our terms with them. Retention is determined from the upstream listing for every host this model can reach. Neither is guessed.

Frequently asked questions

Is Claude Sonnet 4 available on FastMetal?
Not at the moment. Claude Opus 5.5, from the same lab, is available on the FastMetal API today.
What is the context window of Claude Sonnet 4?
1,000,000 tokens, shared between the prompt and the response.