This guide will help you quickly get started with the Z.ai Open Platform. From registering an account to making your first API call, it only takes a few minutes to complete.

Getting Started

1

Register Account

Access Z.AI Open Platform, Login and get the API Key.
2

Make API Calls

After preparing your API Key and selecting a model, you can start making API calls. Here are examples using curl, Python SDK, and Java SDK:
curl -X POST "https://api.z.ai/api/paas/v4/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
    "model": "glm-4.5",
    "messages": [
        {
            "role": "system",
            "content": "You are a helpful AI assistant."
        },
        {
            "role": "user",
            "content": "Hello, please introduce yourself."
        }
    ],
    "temperature": 0.7,
    "top_p": 0.8
}'

Get More