API Reference

opengateway API reference. Base URL, authentication, current endpoints, Management API entry points, and OpenAI SDK guidance.

Base URL#

https://api.opengateway.ai

Authentication#

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#

MethodPathPurpose
POST/v1/chat/completionsChat Completions
POST/v1/responsesResponses API for OpenAI models
GET/v1/modelsModel 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:

MethodPathPurpose
POST, GET, DELETE/api/v1/apikeysCreate, list, or revoke API keys.
GET/api/v1/views/dashboardDashboard data such as cost and latency.
GET/api/v1/views/logsLog 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.