Your first API call
The ULK Cloud API uses the same format as the OpenAI API. Change three settings in the OpenAI SDK, or in any tool that works with the OpenAI API, and your requests go to ULK Cloud.
| Setting | Value |
|---|---|
| base_url | https://api.ulkcloud.com/v1 |
| api_key | Create one in the console |
| model | glm-5.3See all models |
New accounts get $0.50 of free credit. No card required.
Call the Chat Completions API
Once you have an API key, send a request with one of the examples below. They return the whole response at once. Set stream to true to receive it as a stream.
curl https://api.ulkcloud.com/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_ULK_CLOUD_API_KEY" \ -d '{ "model": "glm-5.3", "messages": [{"role": "user", "content": "Hello"}] }'from openai import OpenAI client = OpenAI( api_key="YOUR_ULK_CLOUD_API_KEY", base_url="https://api.ulkcloud.com/v1",) response = client.chat.completions.create( model="glm-5.3", messages=[{"role": "user", "content": "Hello"}],)print(response.choices[0].message.content)import OpenAI from "openai"; const client = new OpenAI({ apiKey: "YOUR_ULK_CLOUD_API_KEY", baseURL: "https://api.ulkcloud.com/v1",}); const response = await client.chat.completions.create({ model: "glm-5.3", messages: [{ role: "user", content: "Hello" }],});console.log(response.choices[0].message.content);Models and prices
Prices are in US dollars per 1 million tokens.
| Model ID | Kind | Input | Output |
|---|---|---|---|
| glm-5.3-abliterated | Abliterated | $3.00 | $6.00 |
| glm-5.3-uncensored | Uncensored | $0.35 | $1.10 |
| deepseek-v4.1-flash-abliterated | Abliterated | $1.10 | $2.20 |
| glm-5.3 | Standard | $0.40 | $1.30 |
| glm-5.3-flash | Standard | $0.12 | $0.20 |
| deepseek-v4.1-flash | Standard | $0.07 | $0.22 |