Common capabilitiesAuthentication

Authentication

Use an API Key

Generation, upload, job and webhook endpoints authenticate with an API Key. Use either header below; both carry the same API Key:

X-API-Key: yb_xxx_yyy
Authorization: Bearer yb_xxx_yyy

In the OpenAPI description these correspond to the security schemes APIKeyHeader and APIKeyBearer. To create and store a key, see Get an API Key.

Text model endpoints

GET /v1/models and POST /v1/chat/completions accept API Keys only. We recommend Authorization: Bearer yb_xxx_yyy, which OpenAI SDKs send by default; X-API-Key also works. See the text model guide.

Endpoints without authentication

The following endpoints can be called without authentication:

  • Preset voice catalog, previews and icons
  • Capabilities
  • Image, video and voice design configuration

Endpoints that require console login credentials

API Key management and voice asset management (listing, retrieving, renaming, deleting and previewing saved voices) are account management operations. They accept only console login credentials (Authorization: Bearer <login credential>) and do not accept API Keys. These operations are usually performed directly in the console.

API Keys and console login credentials are not interchangeable.

Access scope

An API Key can access only the jobs, assets, voices and webhook endpoints of its own account. After authentication, requests are still subject to the credit balance, request rate and concurrent job limits. See Error handling for the errors returned when a limit is reached.

On this page