Quickstart — Documentation
Send your first request in three steps: get an API key, make a request, read the response.
Quickstart
Send your first request in three steps: get an API key, make a request, read the response.
Get API key
Create an API key in the dashboard under API Keys. It is shown in full only once — copy and store it securely.
Go to API Keys →Make a request
Send a chat completions request to the gateway with your API key and a public model alias.
curl https://api.quobit.ai/v1/chat/completions \ -H "Authorization: Bearer $QUOBIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"model-alias","messages":[{"role":"user","content":"Hello"}]}'Get response
The reply is returned under choices; token counts are reported under usage.
Authentication
All requests go to https://api.quobit.ai/v1. Authenticate with the header Authorization: Bearer <your-api-key>. Keys are created in the dashboard under API Keys and are shown in full only once.
Chat Completions
Send a POST request to /v1/chat/completions with a public model alias and a list of messages.
curl https://api.quobit.ai/v1/chat/completions \
-H "Authorization: Bearer $QUOBIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"model-alias","messages":[{"role":"user","content":"Hello"}]}'Response
{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "model-alias",
"choices": [
{
"index": 0,
"message": { "role": "assistant", "content": "Hello! How can I help?" },
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 8,
"completion_tokens": 7,
"total_tokens": 15
}
}The reply is returned under choices; token counts are reported under usage.