Skip to main content

ZAI Docs

Get started with ZAI

Companionship, creation, or the API. Pick a product and start with its quickstart.

Send your first API request

Create an API key in the developer console and set your base_url to https://api.ourzai.com/v1. Your existing OpenAI SDK or HTTP code works as is, and usage is billed to your USD balance.

Python and Node.js examples →
curl https://api.ourzai.com/v1/chat/completions \
-H "Authorization: Bearer $ZAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "<MODEL_ID>",
"messages": [{"role": "user", "content": "Hello"}]
}'

Account and balance

Still have questions?

The Zai assistant on ourzai.com can answer questions using these docs. For anything that needs a person, email support@ourzai.com.