Skip to main content

Create a gateway key

POST 

/api/gateway/keys

Create a key for the Bairav AI Gateway. Admin role required.

The response contains the key in token and ready-to-use openai_base_url. This is the only time the secret is shown. Store it now.

Keep using your own provider key in the Authorization header of your model calls; the gateway forwards it and never stores it. See the Gateway quickstart.

Request​

Responses​

The new key. The secret is shown once.