Skip to main content
Every deployment, router and agent is reached through the Bud Gateway at one base URL, using the OpenAI API format. The base URL for your installation appears in every Use this model snippet.

Create a project API key

Who: someone who can manage credentials for the project Where: API Keys → Projects → Create New Key
  1. Fill in the four fields. Create stays disabled until all are set.
  2. Click Create. To see the key later, click its row and use the eye icon; the copy icon copies it.
  3. The ⋮ menu on a key opens Edit Key (“Update credentials here”), where you change the expiry and the budget, or deletes the key (Delete Credential).
  4. To rotate a key, create a new one, switch your application to it, then delete the old one.
Client users create their own keys in the customer portal (The customer portal). Treat a key like a password: keep it in a secret store, never in client-side code or a repository.

Make a request

Send the key as a bearer token. The model is the deployment name, the router name or, for an adapter, the adapter deployment name. Requests up to 100 MB are accepted.

Chat completions

Streaming

Set "stream": true. The reply is a server-sent event stream: one data: line per chunk, ending with data: [DONE]. Add "stream_options": {"include_usage": true} to receive a final chunk with the token usage.

The OpenAI SDK

Embeddings

Anthropic format. /v1/messages accepts Anthropic Messages requests. Send the key as Authorization: Bearer; an x-api-key header is not accepted.

Endpoints

A deployment answers only the endpoints its model supports. Calling another one returns 400 (Provider … does not support capability …). Use this model shows only the endpoints that apply.