Dein erster API-Aufruf
Die ULK Cloud API nutzt dasselbe Format wie die OpenAI API. Ändere drei Einstellungen im OpenAI SDK oder in einem anderen Tool, das mit der OpenAI API arbeitet, und deine Anfragen gehen an ULK Cloud.
| Einstellung | Wert |
|---|---|
| base_url | https://api.ulkcloud.com/v1 |
| api_key | In der Konsole erstellen |
| model | glm-5.3Alle Modelle ansehen |
Neue Konten erhalten $0.50 Gratisguthaben. Keine Karte nötig.
Die Chat Completions API aufrufen
Sobald du einen API-Key hast, schick eine Anfrage mit einem der Beispiele unten. Sie liefern die ganze Antwort auf einmal. Setz stream auf true, um sie als Stream zu erhalten.
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);Modelle und Preise
Preise in US-Dollar pro 1 Million Tokens.
| Modell-ID | Art | 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 |