Getting started
Authentication
Every API request is authorized by the access key in the Authorization header. The key is issued in the console and works for every model on the gateway.
Authorization header
Pass the key in Bearer format on every request to /v1/*:
HTTP
Authorization: Bearer sk-your-kiree-keyHow to get a key
- Sign up and sign in to the kiree.net console. A welcome balance is credited for testing the main models.
- On the tokens page, create an API key of the
sk-…format. - Set the Base URL
https://kiree.net/v1and pass the key in the request header.
Verify the key
The simplest way to check the pair is to request the model list:
GET/v1/models
cURL
curl https://kiree.net/v1/models \
-H "Authorization: Bearer sk-your-kiree-key"A response with the model list means the key and gateway are working. If you get 401 or 403, check the errors section.
Security. Do not place the key in public frontend code, public repositories or client builds. Keep it in environment variables or a server config. If it leaks, revoke the key in the console and issue a new one.