Getting started
From signup to your first streaming response in under five minutes.
Connect to bnrouter
- Base URL · OpenAI SDK
https://console.bnrouter.com/v1- Chat endpoint
POST https://console.bnrouter.com/v1/chat/completions
Use this Base URL in OpenAI-compatible SDKs. It already includes /v1. Authenticate with your bnrouter API key; the website address is not the API address.
1. Create an account
Open the console and sign up with your email. There is no setup fee and no credit card is required to register.
After signing in, top up a small balance or apply a redeem code so your first request can be billed.
2. Issue an API key
In the console, go to API Keys and create a key. Assign it to a group and set a usage quota — this key is the only credential your application needs.
Copy the key now; it is shown only once.
3. Make your first request
The endpoint speaks the OpenAI protocol, so any OpenAI-compatible client works. Point your base URL at the endpoint shown in your dashboard and use your key.
The example below sends a chat completion with curl.
curl https://console.bnrouter.com/v1/chat/completions \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-id",
"messages": [{"role": "user", "content": "Hello!"}]
}'