New Sign up free, 10 calls on us. Up to $1, no card needed.

Z.ai

Every Z.ai model on Synthorai: one endpoint, live prices.

4 models · chat / code / reasoning / tools · from $1/M input

Why Z.ai via Synthorai

  • Pay-as-you-go, no subscription. One key, every model; no Z.ai account required.
  • Zero prompt retention. Zero prompt retention at the gateway by default; Z.ai's API data policies apply upstream. Details →
  • Prompt caching. Automatic prompt caching: repeated prompt prefixes bill at the cache-hit rate shown in the pricing table, no code changes required. Cache reads from $0.2/M.

Where Z.ai sits · input price across 60 chat models

  • Alibaba $0.05 - $2.5
  • ByteDance $0.1 - $0.5
  • Google $0.1 - $2
  • DeepSeek $0.138 - $1.32
  • Tencent $0.14
  • OpenAI $0.2 - $30
  • MiniMax $0.22 - $0.3
  • Moonshot $0.574 - $3
  • Anthropic $1 - $10
  • Z.ai $1 - $1.4

Each bar spans a vendor’s cheapest to most expensive chat model, so you can see where this one sits against the rest of the catalogue.

Z.ai models & pricing

Model Input /MOutput /MCache read /MContext
GLM-5 $1 $3.2 $0.2 200K
GLM-5-Turbo $1.2 $4 $0.24 205K
GLM-5.1 $1.4 $4.4 $0.26 200K
GLM-5.2 $1.4 $4.4 $0.26 1M

Provider list prices: no platform markup. Prices refresh live on each model's page. These are official list prices. Logged-in customers may see effective prices including workspace discounts on /console/pricing.

Use Z.ai models in 30 seconds

from openai import OpenAI

client = OpenAI(
    base_url="https://synthorai.io/v1",
    api_key="sk-syn-...",
)

resp = client.chat.completions.create(
    model="glm-5.2",
    messages=[{"role": "user", "content": "Summarize this diff"}],
    reasoning_effort="medium",
)
print(resp.choices[0].message.content)

About Z.ai

Z.ai (formerly Zhipu) builds the GLM family: frontier open-weight models with strong coding and agentic performance at aggressive price points; GLM-5.2 is one of the strongest value picks on the gateway. Synthorai serves GLM through the same OpenAI-compatible endpoint as every other model, with live pricing and prompt-cache reads where supported.

FAQ

How do I get a Z.ai API key without a subscription?

You don't need a Z.ai account: sign up on Synthorai, create one API key, and every Z.ai model on this page works through the OpenAI-compatible endpoint: pay-as-you-go, no subscription (models marked "invited beta" additionally need an approved application).

What does the Z.ai API cost?

Token-billed models start at $1/M input tokens; every model's live per-unit price is in the table above. These are provider list prices with no platform markup.

Can I use my own Z.ai key (BYOK)?

BYOK isn't available for Z.ai yet; requests run on Synthorai's managed channels at the listed rates.

What is Z.ai's data-retention policy via API?

Zero prompt retention at the gateway by default; Z.ai's API data policies apply upstream.

Other providers

Get your API key Browse all models