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.Endpoints
Inference
| Method | Path | Description |
|---|---|---|
| POST | /v1/chat/completions | Text and vision completions — the recommended default for apps, agents, and pipelines |
| POST | /v1/images/generations | Generate images from a text prompt |
| POST | /v1/images/edits | Edit an existing image with a text prompt and optional mask |
Account & Keys
| Method | Path | Description |
|---|---|---|
| GET | /v1/account/balance | Retrieve your current credit balance |
| GET | /v1/account/activity | Paginated log of usage events |
| GET | /v1/account/analytics | Aggregated usage analytics |
| GET | /v1/account/keys | List all API keys on your account |
| POST | /v1/account/keys | Create a new API key |
| GET | /v1/account/keys/:id | Retrieve a single API key |
| PATCH | /v1/account/keys/:id | Update an API key |
| DELETE | /v1/account/keys/:id | Delete an API key |
Authentication
All endpoints (except a public status check) require a bearer token:OpenAI Compatibility
Drop in your existing OpenAI SDK code by changing two values:- Python
- Node.js