Z.ai models

Every Z.ai model behind one OpenAI-compatible endpoint. You pay Z.ai's published token rate — OrcaRouter adds $0. Below: live input, output and cached-input pricing per million tokens, context and output limits, measured latency, and the code to call any of them without changing your SDK.

Models
10
Cheapest input
$0.150 /M
Median p50
2207 ms
Max context
1M
24h uptime
100.00%

Z.ai API pricing

Z.ai model pricing
ModelInput per million tokensOutput per million tokensCached in per million tokensContextMax outQualityTry
GLM 5.3$1.26$3.96$0.2341M128K9Try
GLM 5.1$1.40$4.40$0.260200K128K9Try
GLM 5.2$1.40$4.40$0.2601M128K9Try
GLM 5.3 Flash$0.150$0.500$0.0301M128K8Try
GLM 5$1.00$3.20$0.260200K128K8Try
GLM 4.5$0.600$2.20$0.110128K96K7Try
GLM 4.6$0.600$2.20$0.110200K128K7Try
GLM 4.7$0.600$2.20$0.110200K128K7Try
GLM 4.5 Air$0.200$1.10$0.030128K96K6Try
GLM 5.3 Flash (Free)$0.00 per request1M128K—Try

What it will cost you

Cost calculator

Tokens / month2MM
Input share80%%
Estimated / month $3.60 · With prompt caching $2.78

1.6M input × $1.26/M + 400K output × $3.96/M

Prompt caching assumes half of the input tokens are read from cache at $0.23/M.

Estimate based on list price

Per-request examples
ScenarioInput / output tokensPer requestPer 1,000 requests
Chat reply200 / 300$0.0014$1.44
Summarize a long doc30K / 1K$0.042$41.76
Code review8K / 2K$0.018$18.00

Estimating cost for GLM 5.3: $3.60 per month

Estimates use the provider's published rates. OrcaRouter adds $0 markup, so this is what you would pay calling them directly.

Call Z.ai chat models

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

Already using the Z.ai SDK? Point base_url at OrcaRouter and keep everything else.

Frequently asked

How much does the Z.ai API cost through OrcaRouter?

Exactly the same as calling Z.ai directly. GLM 5.3 is $1.26 per million input tokens and $3.96 per million output tokens; the cheapest Z.ai model here is GLM 5.3 Flash at $0.15 per million input. OrcaRouter adds $0 markup — you are billed the provider's published rate.

Can I bring my own Z.ai key?

Yes. Add your own Z.ai key in the console and OrcaRouter routes through it, so usage bills to your account with the provider while you keep the unified endpoint, logging, spend controls and automatic failover.

Do I need to change my SDK?

No. Point base_url at https://api.orcarouter.ai/v1, keep the OpenAI-compatible client you already use, and reference the model as z-ai/<model>. Nothing else in your code changes.

Which Z.ai model has the largest context window?

GLM 5.3, at 1000K tokens. The full context and max-output limits for every Z.ai model are in the pricing table above.

How does Z.ai compare with other providers?

Every model page carries side-by-side comparisons against the closest models from other providers on price, context, latency and benchmarks. Because OrcaRouter adds no markup, the prices you are comparing are the providers' own.

Which Z.ai models support vision, tools or reasoning?

Across the Z.ai catalogue: Vision (2), Tools (10), Reasoning (10), JSON mode (10). Use the capability chips above the pricing table to narrow the list to the models that support what you need.

Other providers

GLM 5.3 · $1.26 /M inTry itGet an API key