Skip to content
CheapLLM

Zhipu AI (Z.ai) API via CheapLLM

Access 3 Zhipu AI (Z.ai) models (GLM 5.3 Prime, GLM 5.3, GLM 5.3 Flash) behind one unified API endpoint with transparent per-million-token pricing, full context windows, and instant OpenAI/Anthropic SDK compatibility.

Get API key

All Zhipu AI (Z.ai) models & pricing comparison

Prices verified 2026-11-28
ModelContextOfficial (in / out)CheapLLM (in / out)Savings
GLM 5.3 Prime1M$2.80 / $8.80$1.96 / $6.16−30%
GLM 5.31.05M$0.07 / $1.40$0.049 / $0.98−30%
GLM 5.3 Flash1.05M$0.04 / $0.078$0.028 / $0.055−30%

Quickstart with Zhipu AI (Z.ai)

Python (OpenAI SDK)
from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.cheapllm.app/v1",
    api_key=os.environ["CHEAPLLM_API_KEY"],
)

response = client.chat.completions.create(
    model="z-ai/glm-5.3-prime",
    messages=[{"role": "user", "content": "Hello!"}],
)