Documentation
Everything you need to route, secure, and bill AI traffic through bnrouter.
Getting started
Create an account, top up, issue a key, and make your first request in minutes.
Read guideAuthentication
How API keys work, where to find them, and how to send them with every request.
Read guideAPI reference
The OpenAI-compatible endpoint, request shape, models, and error handling.
Read guideBilling & quotas
Pay-as-you-go balances, subscription quotas, redeem codes, and usage dashboards.
Read guideCLI & tooling
Configure Claude Code, Codex CLI, and CC-Switch to use your bnrouter gateway.
Read guideImage & video API
Generate images and video through the same unified endpoint using the OpenAI-compatible images format.
Read guide