Z.AI

Z.AI

SG
18 models available

Data handling can vary by model and deployment. The privacy badge above shows the more conservative of the provider-wide fallback and the policies for routes on this page; each model page shows the policy for that specific route.

Models served by Z.AI

18 models

ModelContextInput /MOutput /MCache read /MCache hitTTFTThroughput
131k$0.21/M$1.16/M$0.03/MN/A1.7s44 tps
131k$0.21/M$1.16/M$0.03/MN/A1.7s44 tps
64k$0.60/M$1.80/MN/AN/AN/AN/A
64k$0.60/M$1.80/MN/AN/AN/AN/A
203k$0.63/M$2.31/M$0.12/MN/A9.3s25 tps
203k$0.63/M$2.31/M$0.12/M56.8%9.3s25 tps
128k$0.60/M$0.90/MN/AN/AN/AN/A
203k$0.63/M$2.31/M$0.12/MN/A9.2s24 tps
203k$0.63/M$2.31/M$0.12/M39.9%9.2s24 tps
203k$1.05/M$3.36/M$0.21/M0%7s51 tps
203k$1.05/M$3.36/M$0.21/M0%7s51 tps
203k$1.47/M$4.62/M$0.27/M43.2%9.6s23 tps
203k$1.47/M$4.62/M$0.27/M33.5%9.6s23 tps
1.0M$1.47/M$4.62/M$0.27/M4.1%2.4s62 tps
1.0M$1.47/M$4.62/M$0.27/M4.1%2.4s62 tps
1.0M$1.47/M$4.62/M$0.27/M72.1%2.9s53 tps
1.0M$1.47/M$4.62/M$0.27/M46.1%2.9s53 tps
1.0M$0.16/M$0.53/M$0.03/M91.5%3.9s31 tps
Context
131k
Input /M
$0.21/M
Output /M
$1.16/M
Cache read /M
$0.03/M
Cache hit
N/A
TTFT
1.7s
Throughput
44 tps
Context
131k
Input /M
$0.21/M
Output /M
$1.16/M
Cache read /M
$0.03/M
Cache hit
N/A
TTFT
1.7s
Throughput
44 tps
Context
64k
Input /M
$0.60/M
Output /M
$1.80/M
Cache read /M
N/A
Cache hit
N/A
TTFT
N/A
Throughput
N/A
Context
64k
Input /M
$0.60/M
Output /M
$1.80/M
Cache read /M
N/A
Cache hit
N/A
TTFT
N/A
Throughput
N/A
Context
203k
Input /M
$0.63/M
Output /M
$2.31/M
Cache read /M
$0.12/M
Cache hit
N/A
TTFT
9.3s
Throughput
25 tps
Context
203k
Input /M
$0.63/M
Output /M
$2.31/M
Cache read /M
$0.12/M
Cache hit
56.8%
TTFT
9.3s
Throughput
25 tps
Context
128k
Input /M
$0.60/M
Output /M
$0.90/M
Cache read /M
N/A
Cache hit
N/A
TTFT
N/A
Throughput
N/A
Context
203k
Input /M
$0.63/M
Output /M
$2.31/M
Cache read /M
$0.12/M
Cache hit
N/A
TTFT
9.2s
Throughput
24 tps
Context
203k
Input /M
$0.63/M
Output /M
$2.31/M
Cache read /M
$0.12/M
Cache hit
39.9%
TTFT
9.2s
Throughput
24 tps
Context
203k
Input /M
$1.05/M
Output /M
$3.36/M
Cache read /M
$0.21/M
Cache hit
0%
TTFT
7s
Throughput
51 tps
Context
203k
Input /M
$1.05/M
Output /M
$3.36/M
Cache read /M
$0.21/M
Cache hit
0%
TTFT
7s
Throughput
51 tps
Context
203k
Input /M
$1.47/M
Output /M
$4.62/M
Cache read /M
$0.27/M
Cache hit
43.2%
TTFT
9.6s
Throughput
23 tps
Context
203k
Input /M
$1.47/M
Output /M
$4.62/M
Cache read /M
$0.27/M
Cache hit
33.5%
TTFT
9.6s
Throughput
23 tps
Context
1.0M
Input /M
$1.47/M
Output /M
$4.62/M
Cache read /M
$0.27/M
Cache hit
4.1%
TTFT
2.4s
Throughput
62 tps
Context
1.0M
Input /M
$1.47/M
Output /M
$4.62/M
Cache read /M
$0.27/M
Cache hit
4.1%
TTFT
2.4s
Throughput
62 tps
Context
1.0M
Input /M
$1.47/M
Output /M
$4.62/M
Cache read /M
$0.27/M
Cache hit
72.1%
TTFT
2.9s
Throughput
53 tps
Context
1.0M
Input /M
$1.47/M
Output /M
$4.62/M
Cache read /M
$0.27/M
Cache hit
46.1%
TTFT
2.9s
Throughput
53 tps
Context
1.0M
Input /M
$0.16/M
Output /M
$0.53/M
Cache read /M
$0.03/M
Cache hit
91.5%
TTFT
3.9s
Throughput
31 tps

Prices are per million tokens. TTFT is the observed time to first token. Selectable routes include the applicable provider-selection markup; fixed routes show the standard model price. Availability and pricing refresh continuously; each model page shows the live provider comparison.

Using Z.AI via the API

Call a model served by Z.AI using its displayed model ID, including the provider suffix when selection is supported.

cURL

curl https://nano-gpt.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NANOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/GLM-4.5-Air:zai",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

For models with provider selection, append :zai to the model ID, set "provider": "zai" in the request body, or send an X-Provider: zai header. Explicit provider selection adds a route-specific markup over that provider's base price; the prices in the table above already include it. Models without provider selection use the displayed model ID without a provider suffix or selection surcharge.

See the API documentation for provider preferences, price-aware routing, and error behavior.