Create an API Key
Create an API key in Bunyan to call your available LLM configurations from your application.
Create a Key
- Sign in to Bunyan and open API Keys.
- Choose the option to create a key.
- Enter a name and select the project the key belongs to.
- Choose an expiration period. If you set a budget, also select its reset frequency.
- 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_KEYSee 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.