Esc to close · ⌘K / Ctrl-K opens search anywhere
Frontier APIone-line swap
Change the base URL and the key. Nothing else.
Before — OpenAI / Azure OpenAI
from openai import OpenAI
client = OpenAI(
base_url="https://api.openai.com/v1",
api_key="sk-...",
)After — BharatRouter
from openai import OpenAI
client = OpenAI(
base_url="https://api.bharatrouter.com/v1",
api_key="br-...",
)| OpenAI / Azure OpenAI | BharatRouter |
|---|---|
sk-… key | br-… key (mint on the dashboard) |
| Azure deployment name | Catalog model id (e.g. gpt-5-mini) |
per-request user field | Unchanged — passes straight through |
data_policy: "india_only" to keep regulated traffic in India.optimize price/latency/uptime routing across providers, not one vendor.OpenAI-Organization) aren't needed and are ignored.Stuck on a migration? Email [email protected], see the FAQ, or keep your accounts and rates with BYOK.