Getting started
API keys
Set up a server-side key, restrict its access and diagnose authorization failures.
Create a key
Open API keys in a funded account. Create a key for this application and save its secret in the server environment.
Verify the connection
Use a Bearer header. Listing one model checks the credential without generating text. Messages clients can also send the key in x-api-key.
cURL
curl "https://kavren.dev/v1/models?limit=1" \
-H "Authorization: Bearer $KAVREN_API_KEY"Limits and rotation
Set allowed models, spending limits and IP restrictions under the key’s settings. With an IP rule, allow the public egress address of the server making the call. To rotate, create a new key, deploy it, verify the connection, then revoke the old key.
401 points to the credential. For 403, check the key’s permissions and the caller’s IP.