//
Claude Sonnet 5 is built to be the most agentic Sonnet model yet. It can plan, use tools such as browsers and terminals, and operate autonomously at a level that only recently required larger and more expensive models.
This model is available from multiple providers. Select one to see its pricing and sample code.
Official channels of Anthropic
From Claude Max Membership
Transparent pay-as-you-go pricing by token usage — no subscriptions or hidden fees.
Copy an example below to start calling this model in minutes.
import anthropic
client = anthropic.Anthropic(
base_url="https://api.apipod.ai",
api_key="<YOUR_API_KEY>",
)
message = client.messages.create(
model="claude-sonnet-5",
max_tokens=1024,
messages=[
{
"role": "user",
"content": "What is the meaning of life?",
}
],
)
print(message.content[0].text)