The Base URLs below are live gateway endpoints for this docs site, filled in automatically when the page loads.

OpenAI-compatible surface

UseValue
API root (includes /v1)https://routerbrain.ai/v1
Gateway origin (no /v1)https://routerbrain.ai

Point clients at the /v1 base:

https://routerbrain.ai/v1

Example: POST …/chat/completions (avoid /v1/v1 duplication).

OpenAI SDK

baseURL: "https://routerbrain.ai/v1"

Official SDK

baseURL: process.env.ROUTERBRAIN_BASE_URL ?? "https://routerbrain.ai/v1"

Anthropic-compatible surface

UseValue
Messages / Modelshttps://routerbrain.ai/anthropic/v1
baseURL: "https://routerbrain.ai/anthropic/v1"

Smoke checks

  1. GET https://routerbrain.ai/v1/models (no key) → 200 with data.
  2. Authenticated First request.

Use GET /models (no key) as a lightweight reachability check.

Related