The Base URLs below are live gateway endpoints for this docs site, filled in automatically when the page loads.
OpenAI-compatible surface
| Use | Value |
|---|---|
API root (includes /v1) | `` |
Gateway origin (no /v1) | `` |
Point clients at the /v1 base:
Example: POST …/chat/completions (avoid /v1/v1 duplication).
OpenAI SDK
baseURL: ""
Official SDK
baseURL: process.env.ROUTERBRAIN_BASE_URL ?? ""
Anthropic-compatible surface
| Use | Value |
|---|---|
| Messages / Models | /anthropic/v1 |
baseURL: "/anthropic/v1"
Smoke checks
GET /models(no key) → 200 withdata.- Authenticated First request.
Use GET /models (no key) as a lightweight reachability check.