░ 01 — Overview
Context
262K
Input / 1M
$0.71 / 1M tokens
Output / 1M
$3.00 / 1M tokens
Modalities
text, image
░ 02 — Quickstart
Drop the model ID into either endpoint — BitRouter speaks the OpenAI and Anthropic wire formats natively.
OpenAI-compatible
https://api.bitrouter.ai/v1/chat/completionscurl https://api.bitrouter.ai/v1/chat/completions \
-H "Authorization: Bearer $BITROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/kimi-k2.7-code",
"messages": [{"role": "user", "content": "Hello"}]
}'Anthropic-compatible
https://api.bitrouter.ai/v1/messagescurl https://api.bitrouter.ai/v1/messages \
-H "x-api-key: $BITROUTER_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/kimi-k2.7-code",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello"}]
}'