Skip to main content

Try Claude Sonnet 5 in the Workbench

Run this model interactively, tune parameters, and compare outputs.
Model ID: claude-sonnet-5 Claude Sonnet 5 is Anthropic’s next-generation Sonnet model, balancing speed and intelligence for coding, agent workflows, and knowledge work. It is a drop-in upgrade for Claude Sonnet 4.6 with stronger coding and agentic performance at the same per-token pricing. Adaptive thinking is on by default, and the model ships with a native 1M-token context window and up to 128k output tokens. Manual extended thinking and non-default sampling parameters (temperature, top_p, top_k) are not supported. Claude Sonnet 5 uses a new tokenizer that produces roughly 30% more tokens for the same text, so recount prompts and revisit max_tokens limits when migrating. *Quantization is specific to the inference provider and the model may be offered with different quantization levels by other providers.

Example request

Use the Workbench as a request builder: configure parameters for this model in the UI, then open the API tab to copy the exact cURL or Python call.

Fetch model details

The models endpoint returns the full model object, including its json_request_schema.

Request parameters

This model follows the standard OpenAI chat completions request body. See the chat completions reference for the full parameter list.