← Back to models
AnthropicModel family✓ Official route

Claude Sonnet 5

API model IDAutomatic routing
Claude Sonnet 5 suits everyday development and professional text work, including code changes, document organization and business automation. Check the route for available tools and context limits.Read moreRead less

Claude Sonnet 5 suits everyday development and professional text work, including code changes, document organization and business automation. Check the route for available tools and context limits.

Providers

Different providers serve this model. Compare pricing and performance, select a provider, or use automatic routing.

ProviderVariant / API model IDInput / MOutput / MCache read / MRequest latencyOutput rateRequest successConnect
claude-sonnet-5✓ Official routeclaude-sonnet-5-ad¥9.8¥49¥0.9817.36 s7.2 tokens/s100.00%Use route ↗
claude-sonnet-5 · 号池52.1–55% offclaude-sonnet-5-r4cf8f1-yh¥6.2¥31¥0.61———Use route ↗

Providers for the same API model ID currently share model pricing; variants have independent rates. A selected provider retries only within its own keys, never across variants or providers. Official badges apply to their individual routes.

Model data

Aggregated across providers for the selected variant · UTC

2026-10-07 00:00 — 2026-11-05 07:02 UTC

Requests

3
Requests11/02 UTC · 3
10/0711/05 UTC

Requests in the selected window, excluding refund records.

Request latency

17.36 s
Request latency11/02 UTC · 17.36 s
10/0711/05 UTC

Mean end-to-end duration of successful requests, not time to first token.

Request success rate

75.00%
EarlierLatest

Successful requests divided by total requests, not an SLA.

Output rate

7.2 tokens/s
Output rate11/02 UTC · 7.2 tokens/s
10/0711/05 UTC

Non-estimated output tokens per end-to-end second, shown only from valid logs.

Statistics use UTC. Metrics without valid records display —. Request volume uses the configured public display scale.

Use the API

A family ID chooses the lowest-priced available route; a unique ID selects its own route.

Get an API key ↗

Configure your existing client

Choose a protocol and enter its API URL, your key and this model ID. No client code changes are needed.

OpenAI · Chat Completions
https://api.ai526.com/v1
Anthropic · Messages
https://api.ai526.com
Model ID
claude-sonnet-5
Full setup guide and URL rules ↗

Base URL: https://api.ai526.com/v1 · /v1/chat/completions

curl
curl https://api.ai526.com/v1/chat/completions \
  -H 'Authorization: Bearer YOUR_AI526_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model":"claude-sonnet-5","messages":[{"role":"user","content":"Write a short description of the future."}]}'

# API URL: use the URL above.
# YOUR_AI526_API_KEY: replace with your own platform key.
# model: use the copied unique ID, or a family ID for the lowest-priced route.
# prompt / messages: replace with your task.
python
import requests

response = requests.post(
    "https://api.ai526.com/v1/chat/completions",
    headers={
    "Authorization": "Bearer YOUR_AI526_API_KEY",
    "Content-Type": "application/json"
},
    json={
    "model": "claude-sonnet-5",
    "messages": [
        {
            "role": "user",
            "content": "Write a short description of the future."
        }
    ]
},
)
response.raise_for_status()
print(response.json())

# API URL: use the URL above.
# YOUR_AI526_API_KEY: replace with your own platform key.
# model: use the copied unique ID, or a family ID for the lowest-priced route.
# prompt / messages: replace with your task.
javascript
const response = await fetch("https://api.ai526.com/v1/chat/completions", {
  method: "POST",
  headers: {
  "Authorization": "Bearer YOUR_AI526_API_KEY",
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "model": "claude-sonnet-5",
  "messages": [
    {
      "role": "user",
      "content": "Write a short description of the future."
    }
  ]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());

// API URL: use the URL above.
// YOUR_AI526_API_KEY: replace with your own platform key.
// model: use the copied unique ID, or a family ID for the lowest-priced route.
// prompt / messages: replace with your task.

Base URL: https://api.ai526.com · /v1/messages

curl
curl https://api.ai526.com/v1/messages \
  -H 'x-api-key: YOUR_AI526_API_KEY' \
  -H 'anthropic-version: 2023-06-01' \
  -H 'Content-Type: application/json' \
  -d '{"model":"claude-sonnet-5","max_tokens":256,"messages":[{"role":"user","content":"Write a short description of the future."}]}'

# API URL: use the URL above.
# YOUR_AI526_API_KEY: replace with your own platform key.
# model: use the copied unique ID, or a family ID for the lowest-priced route.
# prompt / messages: replace with your task.
python
import requests

response = requests.post(
    "https://api.ai526.com/v1/messages",
    headers={
    "x-api-key": "YOUR_AI526_API_KEY",
    "anthropic-version": "2023-06-01",
    "Content-Type": "application/json"
},
    json={
    "model": "claude-sonnet-5",
    "max_tokens": 256,
    "messages": [
        {
            "role": "user",
            "content": "Write a short description of the future."
        }
    ]
},
)
response.raise_for_status()
print(response.json())

# API URL: use the URL above.
# YOUR_AI526_API_KEY: replace with your own platform key.
# model: use the copied unique ID, or a family ID for the lowest-priced route.
# prompt / messages: replace with your task.
javascript
const response = await fetch("https://api.ai526.com/v1/messages", {
  method: "POST",
  headers: {
  "x-api-key": "YOUR_AI526_API_KEY",
  "anthropic-version": "2023-06-01",
  "Content-Type": "application/json"
},
  body: JSON.stringify({
  "model": "claude-sonnet-5",
  "max_tokens": 256,
  "messages": [
    {
      "role": "user",
      "content": "Write a short description of the future."
    }
  ]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());

// API URL: use the URL above.
// YOUR_AI526_API_KEY: replace with your own platform key.
// model: use the copied unique ID, or a family ID for the lowest-priced route.
// prompt / messages: replace with your task.

Replace the placeholder key before calling. Media options depend on model support.

Try your own task

Prepare a request, then send it from the dashboard. This page makes no model calls.

Sending the request is billed at this model’s rate.

Request preview

JSON
{
  "model": "claude-sonnet-5",
  "messages": [
    {
      "role": "user",
      "content": "Write a short description of the future."
    }
  ]
}

This is a request preview. Results appear in the dashboard after a request completes.

Frequently asked questions

How should I choose a provider?

Start with automatic routing. To select a public provider, choose its code and copy the updated example. Retries remain within that provider.

How are performance metrics updated?

Metrics update from request records. Latency covers completed successful requests; metrics without valid records display —.

Can I use this model in another client?

The client must support the model’s protocol and a custom API URL. See tool integration guides ↗