TopxAI · Model prices · Anthropic
Claude Sonnet 5 API pricing
Model id claude-sonnet-5. $1 input / $5 output per 1M tokens on the lowest-priced route; every route is listed below. Prices are fixed in USD, charged from prepaid credit, and every request writes one usage-log row with the route and the charge.
Prices by route
| Route | Input (USD / 1M tokens) | Output (USD / 1M tokens) | Cache read (USD / 1M tokens) | Cache write (USD / 1M tokens) | Cache write (1h) (USD / 1M tokens) |
| Provider list price (checked 2026-09-18) | $2 | $10 | $0.2 | $2.5 | $4 |
| Official line | $1.8 | $9 | $0.18 | $2.25 | $3.6 |
| Shared pool | $1 | $5 | $0.1 | $1.25 | $2 |
Input, output and cache lanes bill per million tokens. A whole-request long-context row applies once the input context of a request reaches the threshold shown. An Auto-route key sends each request to the lowest-priced route that serves the model.
Endpoints
POST /v1/messages: Anthropic Messages (x-api-key)
POST /v1/chat/completions: OpenAI Chat Completions (Bearer)
Call claude-sonnet-5
Base URL https://ai.topxea.com/v1 for OpenAI-style SDKs, https://ai.topxea.com for the Anthropic SDK; the API key goes where the provider's key would go.
curl https://ai.topxea.com/v1/messages \
-H "x-api-key: $TOPXAI_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": "Say hello in one sentence."}]}'
Related
Get an API key · Docs · Blog · About TopxAI