GET
/models
List models available through your RouterBase account.
curl https://routerbase.com/v1/models \
-H "Authorization: Bearer $ROUTERBASE_API_KEY"
Base URL
Use `https://routerbase.com/v1` as the base URL and send requests with a bearer token from your RouterBase account.
List models available through your RouterBase account.
curl https://routerbase.com/v1/models \
-H "Authorization: Bearer $ROUTERBASE_API_KEY"
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." }
]
}'
The canonical OpenAPI file lives in the repository at openapi/routerbase.openapi.json. See the RouterBase docs for current product documentation.