Skip to content

Getting started

Authentication

Authenticate requests with workspace API keys.

Every request must include an API key in the Authorization header using the Bearer scheme.

text
Authorization: Bearer YOUR_API_KEY

Key scopes

ScopeAllows
Full accessAll API endpoints
Read onlyListing models and reading usage
Playground onlyConsole playground sessions

Keeping keys safe

  • Never embed keys in client-side code or mobile apps.
  • Store keys in a secrets manager or environment variables.
  • Rotate keys regularly and revoke any key that may be exposed.
  • Use separate keys per environment.