KhaBot

Getting started

1. Create an account

Register — every new account starts on the Free plan. Verify you can see your dashboard.

2. Create an API key

Open Dashboard → API Keys and click New key. Optionally set an expiry date and a dollar budget. The full key is shown once — copy it.

3. Make your first request

Use the OpenAI-compatible endpoint:

curl https://khabot.com/api/v1/chat/completions \
  -H "Authorization: Bearer kb-live-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.2",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

The response is standard OpenAI shape. Set "stream": true for token-by-token SSE.

Model keys are KhaBot's canonical keys (e.g. z-ai/glm-5.2). See Models & pricing for the full list and prices.