Claude Sonnet 5
anthropic/claude-sonnet-5Claude Sonnet 5 by Anthropic is available on Rynler through an OpenAI-compatible API. Use the model ID below with your existing client and a Rynler API key.
| Provider | Anthropic |
|---|---|
| Model ID | anthropic/claude-sonnet-5 |
| Modality | Text |
| Context window | 1M tokens (1,000,000) |
| Maximum output | 128K tokens |
| Per-request platform cap | 1,000,000 tokens |
Live per-token prices load from the catalogue API and refresh hourly. See current pricing.
Start with a request.
Use this model ID with the chat completions endpoint. Estimated input plus requested maximum output must fit within the model's 1,000,000-token context window. Requested maximum output is limited separately to 128,000 tokens.
import os
import uuid
from openai import OpenAI
client = OpenAI(
base_url="https://api.rynler.com/v1",
api_key=os.environ["RYNLER_API_KEY"]
)
response = client.chat.completions.create(
model="anthropic/claude-sonnet-5",
messages=[{"role": "user", "content": "Hello, world."}],
max_tokens=1024,
extra_headers={"Idempotency-Key": str(uuid.uuid4())}
)
print(response.choices[0].message.content)Compare and estimate
- Claude Sonnet 5 vs Claude Sonnet 4.6 Cost: How to Compare Without Guessing
Claude Sonnet 5 vs Claude Sonnet 4.6 cost compared by method: workload shape, output multipliers, context weight and live rates. No stale figures.
- Claude Sonnet 5 vs GPT-5.4 Cost: How to Compare Without Guessing
Claude Sonnet 5 vs GPT-5.4 cost compared by method: workload shape, output multipliers, context weight and live rates. No stale figures.
- Kimi K3 vs Claude Sonnet 5 Cost: How to Compare Without Guessing
Kimi K3 vs Claude Sonnet 5 cost compared by method: workload shape, output multipliers, context weight and live rates. No stale figures.
- Claude API cost calculator
Estimate Anthropic API costs from input and output token counts. Formula, output multiplier and monthly projection.
- How to estimate LLM API costs
Measure one run, keep input and output tokens apart, then project a monthly bill.