BunyanBunyanDocs
Models & DataDeploying AI Models

Create an API Key

Create an API key in Bunyan to call your available LLM configurations from your application.

Create a Key

  1. Sign in to Bunyan and open API Keys.
  2. Choose the option to create a key.
  3. Enter a name and select the project the key belongs to.
  4. Choose an expiration period. If you set a budget, also select its reset frequency.
  5. Create the key and copy its value immediately.

Store the key in your server environment or a secret manager. The full value is shown when the key is created; later listings show a masked value.

Use Your Key

For LLM requests, use this production base URL:

https://inference-v2.bunyan.ai/v1/

Send your Bunyan API key in this header:

Authorization: Bearer YOUR_API_KEY

See LLM Endpoints for a complete request using global/glm-5.3-flash.

For Document Intelligence, send a key with the required operation scopes in the X-API-Key header. See Document Intelligence authentication and scopes.

Rotate or Revoke a Key

Manage existing keys from the API Keys page:

  • Rotate creates a replacement key and revokes the previous one. Copy the replacement and update the secret used by your application.
  • Delete revokes the key. Requests using it will no longer authenticate.

An existing key's expiration cannot be changed, and revoked keys cannot be reactivated. Create a replacement when needed.

Keep keys out of browser code, source control, and shared examples. If a key is exposed, revoke it and replace it in your application.

On this page