Skip to main content
The Routeway API is fully OpenAI-compatible. Any SDK or tool that works against api.openai.com works against api.routeway.ai with only a base URL and key change.
All requests must include an Authorization: Bearer <key> header. Obtain your key from the Dashboard.
Base URL: https://api.routeway.ai

Endpoints

Inference

MethodPathDescription
POST/v1/chat/completionsText and vision completions — the recommended default for apps, agents, and pipelines
POST/v1/images/generationsGenerate images from a text prompt
POST/v1/images/editsEdit an existing image with a text prompt and optional mask

Account & Keys

MethodPathDescription
GET/v1/account/balanceRetrieve your current credit balance
GET/v1/account/activityPaginated log of usage events
GET/v1/account/analyticsAggregated usage analytics
GET/v1/account/keysList all API keys on your account
POST/v1/account/keysCreate a new API key
GET/v1/account/keys/:idRetrieve a single API key
PATCH/v1/account/keys/:idUpdate an API key
DELETE/v1/account/keys/:idDelete an API key

Authentication

All endpoints (except a public status check) require a bearer token:
Authorization: Bearer YOUR_ROUTEWAY_API_KEY
Keys can be scoped and rate-limited — see Authentication for details.

OpenAI Compatibility

Drop in your existing OpenAI SDK code by changing two values:
from openai import OpenAI

client = OpenAI(
    base_url="https://api.routeway.ai/v1",  # changed
    api_key="YOUR_ROUTEWAY_API_KEY",         # changed
)
Everything else — request shapes, response objects, streaming, tool calls, structured outputs — stays identical.