Nbility logoNbility Docs

Search documentation

Search guides and API reference content

How to authenticate API requests

API Key

Every request must include your API key in the Authorization header using the Bearer scheme:

Authorization: Bearer YOUR_API_KEY

Example

curl https://api.nbility.dev/v1/chat/completions \
  -H "Authorization: Bearer sk-xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hi"}]}'

Getting Your API Key

  1. Log in to the user dashboard
  2. Navigate to Console → Token
  3. Click Create new key and copy the generated key

Warning Keep your API key confidential. Do not commit it to version control or expose it in client-side code.

Format Variants

Some endpoints accept alternative authentication headers for third-party format compatibility:

FormatHeader
OpenAI (default)Authorization: Bearer KEY
Anthropicx-api-key: KEY + anthropic-version: 2023-06-01
Geminix-goog-api-key: KEY or ?key=KEY query param

The platform automatically detects the format based on the request headers.