Integration
Integration means using both the Proxy (inference) and the admin HTTP APIs behind Admin (provisioning and operations). Admin also has Analytics (usage and reliability) and other menus — use them as needed alongside this flow.
Common environment variables
Section titled “Common environment variables”| Variable | Role |
|---|---|
GATEWAY_URL | Proxy origin — where apps/SDKs send inference requests |
GATEWAY_MASTER_URL | Admin origin — where backends call admin APIs |
GATEWAY_MASTER_KEY | Bearer matching the master key in Admin Config — server-side only |
Inference (apps)
Section titled “Inference (apps)”- Paths and payloads follow the current gateway release (e.g. common OpenAI-compatible chat endpoints). Auth:
Authorization: Bearer sk-…. - Optional
GET /v1/meon the Proxy with the user key returns budget-related summaries for your UI (fields vary by release).
Control plane (servers)
Section titled “Control plane (servers)”Typical flow: after signup, your backend uses the master key to create or update gateway users and create API keys, then returns sk-… only to trusted environments or stores it server-side only.
API index: GitHub technical reference.