Language model by Anthropic

Claude Sonnet 5 API

model: claude-sonnet-5

Call Claude Sonnet 5 with your KeelRouter API key, the same key you use for every other model. From $0.68 / $3.40 per 1M tokens, paid per call from a prepaid balance. Failed calls are free.

Pricing

OptionPrice
Input$0.68 per 1M tokens
Output$3.40 per 1M tokens

Call it

OpenAI-compatible endpoint /v1/chat/completions. Anthropic SDKs work on /v1/messages.

curl https://api.keelrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $KEELROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-5",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the sea."
    }
  ]
}'

Parameters

NameTypeNotes
modelstringRequired. claude-sonnet-5
messagesarrayRequired. OpenAI chat format
max_tokensintegerOutput cap; also sets the hold
streambooleanServer-sent events; usage is billed at the end
temperaturenumberPassed through
toolsarrayPassed through when the model supports them

FAQ

How much does the Claude Sonnet 5 API cost on KeelRouter?
From $0.68 / $3.40 per 1M tokens. You pay per call from a prepaid USD balance; failed calls are not charged.
How do I call Claude Sonnet 5?
Send an OpenAI-compatible request to /v1/chat/completions with model "claude-sonnet-5" and your KeelRouter API key.
Is this the official Claude Sonnet 5 API?
No. KeelRouter is an independent API gateway. Requests run on Claude Sonnet 5 through our upstream providers, and the language model keeps its own safety filters.
How long are results kept?
We keep request records (tokens and cost), not your prompts or answers.

More from Anthropic

KeelRouter is an independent service and is not affiliated with Anthropic. Claude Sonnet 5 is a trademark of its owner, used here only to name the model a request runs on.