Skip to main content

Base URL & Authentication

All traffic goes through one base URL:

Full endpoint examples

Authentication

Use HTTP Bearer token authentication.
  • Keys are created in the dashboard.
  • Each key is a long opaque string shown once at creation.
  • Keys can be restricted to a subset of models.

cURL

OpenAI SDK (Python / JS)

One key for everything

A single key works simultaneously across:
  • Cursor, Claude Code, Codex CLI, OpenCode, Kilo CLI, Pi
  • Cline and other VS Code extensions
  • The official OpenAI Python and Node SDKs (and frameworks built on them)
  • curl
You can also create separate keys per environment or tool for usage tracking. Unattended agents and automation tools require the Auto Agent plan.

Model restrictions

When creating or editing a key you can limit which models it can access.
  • The GET /v1/models response will only return allowed models for that key.
  • Requests to disallowed models return 403.
  • Leave the restriction empty to allow all active models.

Next