API Reference
opengateway API reference. Base URL, authentication, current endpoints, Management API entry points, and OpenAI SDK guidance.
Base URL#
https://api.opengateway.aiAuthentication#
Pass your API key as a Bearer token in the Authorization header.
Authorization: Bearer og_live_...See API Keys for how to get one.
Endpoints#
| Method | Path | Purpose |
|---|---|---|
POST | /v1/chat/completions | Chat Completions |
POST | /v1/responses | Responses API for OpenAI models |
GET | /v1/models | Model catalog |
Management API#
A separate surface at https://opengateway.ai/api/v1/* is available
for resource management (keys, teams, dashboard data). It is primarily for
programmatic provisioning. Most teams use the dashboard instead.
Endpoints worth knowing about:
| Method | Path | Purpose |
|---|---|---|
POST, GET, DELETE | /api/v1/apikeys | Create, list, or revoke API keys. |
GET | /api/v1/views/dashboard | Dashboard data such as cost and latency. |
GET | /api/v1/views/logs | Log query API. |
OpenAPI spec#
The data-plane OpenAPI document is exposed by the backend at /openapi.
SDKs#
For most cases, the SDK you already use works without any new dependency:
- OpenAI SDK, in any language. Just set the
base_url. See the Quickstart.