Claude

Claude Sonnet 5

Chat
Not available
Get started

Next-generation Sonnet with enhanced reasoning and coding capabilities. Successor to Sonnet 4.6.

Context
1Mtokens
Max output
128Ktokens
Latency
~16ms
Released
2026-06

Pricing

$ / 1M tokens
Input
$3.00/M
Output
$15.00/M
Cache Read
$0.30/M
Write (5m)
$3.75/M
Write (1h)
$6.00/M

Capabilities

7 listed
  • Chat
  • Tool Use
  • Reasoning
  • Vision
  • Coding
  • Analysis
  • Long Context

Code examples

POST /v1/chat/completions
python
from openai import OpenAI

client = OpenAI(
    api_key="your_api_key",
    base_url="https://api.modelstack.cc/v1",
)

response = client.chat.completions.create(
    model="claude-sonnet-5",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Related models

Frequently asked questions

How is Claude Sonnet 5 billed on ModelStack?expand_more
ModelStack bills based on actual request usage. Input, output, cache, and any other applicable rates follow the live pricing table on this page. Final request costs are available in the console.
What are the context window and maximum output for Claude Sonnet 5?expand_more
Claude Sonnet 5 has a 1M context window and supports up to 128K of output.
How can I call Claude Sonnet 5 through ModelStack?expand_more
Use the model ID `claude-sonnet-5` with any OpenAI-compatible SDK pointed at the ModelStack API — see the code examples above for Python, Node.js, and cURL.
Which capabilities does Claude Sonnet 5 support?expand_more
Claude Sonnet 5 supports: Chat, Tool Use, Reasoning, Vision, Coding, Analysis, Long Context.