Quickstart
The API is OpenAI-compatible. Change the base URL and keep your client.
from openai import OpenAI
client = OpenAI(api_key="zlk_live_...", base_url="https://llm.zanii.agency/v1")
answer = client.chat.completions.create(
model="glm-4.7-flash",
messages=[{"role": "user", "content": "Summarise this invoice dispute in two sentences."}],
)
print(answer.choices[0].message.content)curl https://llm.zanii.agency/v1/chat/completions \
-H "Authorization: Bearer zlk_live_..." \
-H "Content-Type: application/json" \
-d '{"model": "glm-4.7-flash", "messages": [{"role": "user", "content": "hello"}]}'Getting a key
Sign in at https://llm.zanii.agency/app with Zanii ID and issue a key. The key is shown once; only
its hash is stored, so it cannot be shown again. Issuing or revoking a key needs a strong sign-in
(two-step verification or a passkey) less than ten minutes old.
Credit
Keys spend prepaid credit, in AED. A call the balance cannot cover is refused with 402 before the
model is asked, so an empty balance never costs you a slow request. A refusal carries the header
X-Zanii-Topup-Url.