Claude
Claude Text

devdoclang/claude-sonnet-5

Model ID: devdoclang/claude-sonnet-5
Family
Claude
Context
1,000,000
Input / 1M tokens
0.0853 USD
Cache hit rate
13.1%
Requests
2.6K
Success
98.5%
Tokens
225.53M
Uptime 100.00%
24h agoNow
7 days agoNow

Pricing

Input / 1M tokens
0.0853 USD
Output / 1M tokens
0.115 USD
Prompt Cache 13.1%
Cache read / 1M tokens
0.0669 USD
Cache write / 1M tokens
0.0853 USD

Repeated prompts are cached — reads are far cheaper than input, applied automatically via the API.

Cost estimator
Estimated total 0 USD
Average / request 0 USD

Estimate based on list prices. Caching usually makes it cheaper.

Supported endpoints
https://api.xah.io/v1/chat/completions
https://api.xah.io/v1/messages
https://api.xah.io/v1/responses
https://api.xah.io/v1beta/models/devdoclang/claude-sonnet-5:generateContent
https://api.xah.io/api/chat
Method POST · application/json
Auth Bearer token (API key)
Rate limit 80 req/min
Tested load 🟢 High peak 40/s · sustained 3.1/s
Latency p95 4,824 ms
API kinds Text

Notes

Due to limited supply, I've temporarily increased model prices. Thanks for your understanding. Feel free to check out my more affordable GPT models.

Share

curl 'https://api.xah.io/v1/chat/completions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "devdoclang/claude-sonnet-5",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
}'
// Node.js / Browser
const res = await fetch('https://api.xah.io/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "model": "devdoclang/claude-sonnet-5",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
})
});
const data = await res.json();
console.log(data);
import requests

url = 'https://api.xah.io/v1/chat/completions'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
}
payload = {
    "model": "devdoclang/claude-sonnet-5",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
}

res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
    "model": "devdoclang/claude-sonnet-5",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
}

Try it

Send a prompt with your API key — uses real credits, streams back instantly.

Reviews & comments
5.0 / 1 reviews
Loading reviews...
Contact Support
We are always ready to help you