- Text
- Billed per token
Pricing
Input price
$0.38
Original price $5.0092% offper 1M tokens
Output price
$1.35
Original price $25.0094% offper 1M tokens
Cache read price
$0.13
Original price $0.5073% offper 1M tokens
Cache write price
$0.38
Original price $6.2593% offper 1M tokens
- Compatible APIs
- Anthropic Messages
- OpenAI Chat
- Provider
- Anthropic
- Currency
- USD
Quick start
Call it with the exact model ID below. Replace NIGHTROUTER_API_KEY with your API key.
curl https://api.nightrouter.ai/v1/messages \ -H "x-api-key: $NIGHTROUTER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{"model":"claude-opus-4-8","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'
curl https://api.nightrouter.ai/v1/chat/completions \ -H "Authorization: Bearer $NIGHTROUTER_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"claude-opus-4-8","messages":[{"role":"user","content":"Hello"}]}'