All labs

GLM API

GLM models from Z.ai, through one OpenAI-compatible API.

Z.ai (Zhipu) builds the GLM models: strong, affordable models for coding and agents. Use GLM through UltraGPT’s OpenAI- and Anthropic-compatible API.

Models

4

From / 1M input

$0.144

GLM 5.3

Largest context

1.0M

GLM 5.3

Z.ai models and prices

Chat and embedding prices are USD per 1M tokens: input / output.

ModelTypePrice
GLM 5.3glm-5.3Chat$0.144 / $4.8
GLM 5.3 Primeglm-5.3-primeChat$1.68 / $5.28
GLM 5.3 Flashglm-5.3-flashChat$0.15 / $0.5
GLM 5.2glm-5.2Chat$0.144 / $7

Call GLM 5.3 in a few lines

Swap the model id for any model in the table above; nothing else changes.

curl https://api.ultragpt.pro/v1/chat/completions \
  -H "Authorization: Bearer $ULTRAGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Comparisons

FAQ

How do I get a GLM API key?

Sign in to UltraGPT Developers, top up your balance and create an API key. The same key works for every Z.ai model and every other model on UltraGPT - no separate Z.ai account needed.

How much does the GLM API cost on UltraGPT?

Chat models of Z.ai start at $0.144 per 1M input tokens (GLM 5.3). You pay per token from a prepaid balance, with no subscription; each model's page lists its exact input, cached-input and output prices.

Does it work with the official SDK?

UltraGPT is OpenAI-compatible: use the official OpenAI SDK (Python, Node.js) or any OpenAI-compatible tool with the base URL https://api.ultragpt.pro/v1 and the model id from the table.

Which Z.ai model has the largest context window?

GLM 5.3 (glm-5.3), with 1,048,576 tokens.

Quickstart → Use it in Cursor, Claude Code, Cline… → All models →