Base URL

RouterBase endpoints in this collection

Use `https://routerbase.com/v1` as the base URL and send requests with a bearer token from your RouterBase account.

GET

/models

List models available through your RouterBase account.

curl https://routerbase.com/v1/models \
  -H "Authorization: Bearer $ROUTERBASE_API_KEY"
POST

/chat/completions

Create a chat completion with an OpenAI-compatible request body.

curl https://routerbase.com/v1/chat/completions \
  -H "Authorization: Bearer $ROUTERBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-2.5-flash",
    "messages": [
      { "role": "user", "content": "Explain RouterBase in one sentence." }
    ]
  }'

Source files

The canonical OpenAPI file lives in the repository at openapi/routerbase.openapi.json. See the RouterBase docs for current product documentation.