API documentation

Authentication

API key headers, model access, and account verification.

Use a bearer token for all OpenAI-compatible routes. Keep API keys server-side and rotate any key that may have leaked.

Bearer header

txt
Authorization: Bearer sk-your-api-key

Anthropic-compatible header

txt
x-api-key: sk-your-api-keyanthropic-version: 2023-06-01

Model access

  • A key can only use models available to the account.
  • If a model is unavailable, the API returns an access or temporary availability error.
  • Some free models can require Telegram verification.
  • Use separate keys for production, development, and experiments.