Anthropic/claude-sonnet-5/Released Jun 2026

Claude Sonnet 5

Adaptive thinking coding and agents

Commercial use
Text

About Claude Sonnet 5

Claude Sonnet 5 is Anthropic's Sonnet-tier Multimodal LLM, 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.

MetricValue
Context Length1,000,000 tokens
Max Output128,000 tokens
MultilingualYes

Ready to build with Claude Sonnet 5?

Try Claude Sonnet 5 in the Workbench to prompt it, compare outputs, and iterate on prompts without writing any code. When you're ready to ship, call the same model from our API and build your own apps on top of it.

curl -sSf -X POST https://hub.oxen.ai/api/ai/chat/completions \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $OXEN_API_KEY" \
    -d '{
  "model": "claude-sonnet-5",
  "messages": [
    {
      "role": "user",
      "content": "Try sending a message."
    }
  ]
}'

API endpoint

See the API reference for request and response formats.

POSThttps://hub.oxen.ai/api/ai/chat/completions