Skip to content

Z.ai: GLM 5.1 provider comparison

z-ai/glm-5.1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

Endpoints:
18
Context:
202.8K
Input:
text
Output:
text
Compare this model in a set →

At a glance

Comparison winners

Based on 1,000 input and 500 output tokens using the latest published median speed data.

Best cost/speed trade-off

DeepInfradeepinfra/fp4

$1.8667 / 1M tokens

10.71 s estimated response

Cheapest

StreamLakestreamlake/fp8

$1.656 / 1M tokens

$0.002484 for the sample request

Fastest

Friendlifriendli

5.46 s estimated response

$2.4 / 1M tokens

Visual comparison

Price and performance charts

Compare published endpoint pricing and estimated response time visually.

Effective price by endpoint

USD per 1 million tokens for input and output. Lower is better.

StreamLake has the lowest estimated cost for 1,000 input and 500 output tokens at $0.002484.

Estimated cost vs. response time

Based on 1,000 input and 500 output tokens. Cost is shown in USD per 1 million tokens. Lower and further left is better; the single best cost/speed trade-off appears at full opacity.

18 providers have complete pricing and speed data. DeepInfra is closest to the ideal combination of lowest cost and fastest response.

Server-rendered comparison

Provider endpoints

Prompt and completion prices are effective USD per token as published by OpenRouter. Missing speed data never removes an endpoint.

Endpoint comparison for Z.ai: GLM 5.1
Provider / routeCurrent pricing ↗Speed measurementsEndpoint details
Provider / route
StreamLakestreamlake/fp8
Cheapest
Current pricing
Input price
$0.966 / 1M tokens
Output price
$3.04 / 1M tokens
Sample cost
$0.002484
Discount
31.0%
Speed measurements
500-token response
20.96 s
Response starts
1.73 s
Output speed
26.0 tok/s
Endpoint details
Uptime (30 min)
99.93%
Context
200K
Model format
fp8
Max output
128K
13 parameters

frequency_penalty, include_reasoning, logprobs, max_tokens, reasoning, response_format, stop, structured_outputs, temperature, tool_choice, tools, top_logprobs, top_p

Provider / route
DigitalOceandigitalocean
Current pricing
Input price
$0.975 / 1M tokens
Output price
$4.3 / 1M tokens
Sample cost
$0.003125
Speed measurements
500-token response
26.22 s
Response starts
1.22 s
Output speed
20.0 tok/s
Endpoint details
Uptime (30 min)
88.89%
Context
163.8K
Model format
unknown
Max output
N/a
11 parameters

include_reasoning, logprobs, max_tokens, reasoning, response_format, structured_outputs, temperature, tool_choice, tools, top_logprobs, top_p

Provider / route
GMICloudgmicloud/fp8
Current pricing
Input price
$0.98 / 1M tokens
Output price
$3.08 / 1M tokens
Sample cost
$0.00252
Speed measurements
500-token response
13.91 s
Response starts
3.04 s
Output speed
46.0 tok/s
Endpoint details
Uptime (30 min)
100.00%
Context
202.8K
Model format
fp8
Max output
N/a
8 parameters

include_reasoning, logprobs, max_tokens, reasoning, seed, temperature, top_logprobs, top_p

Provider / route
Chuteschutes/fp8
Current pricing
Input price
$0.98 / 1M tokens
Output price
$3.08 / 1M tokens
Sample cost
$0.00252
Speed measurements
500-token response
19.81 s
Response starts
3.15 s
Output speed
30.0 tok/s
Endpoint details
Uptime (30 min)
89.71%
Context
202.8K
Model format
fp8
Max output
65.5K
15 parameters

frequency_penalty, include_reasoning, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
Baidu Qianfanbaidu/fp8
Current pricing
Input price
$0.98 / 1M tokens
Output price
$3.08 / 1M tokens
Sample cost
$0.00252
Speed measurements
500-token response
15.44 s
Response starts
1.55 s
Output speed
36.0 tok/s
Endpoint details
Uptime (30 min)
100.00%
Context
202.8K
Model format
fp8
Max output
131.1K
13 parameters

frequency_penalty, include_reasoning, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, stop, structured_outputs, temperature, tool_choice, tools, top_p

Provider / route
Waferwafer/fp4
Current pricing
Input price
$1 / 1M tokens
Output price
$3.2 / 1M tokens
Sample cost
$0.0026
Speed measurements
500-token response
14.78 s
Response starts
4.97 s
Output speed
51.0 tok/s
Endpoint details
Uptime (30 min)
100.00%
Context
202.8K
Model format
fp4
Max output
65.5K
19 parameters

frequency_penalty, include_reasoning, logit_bias, logprobs, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p

Provider / route
DeepInfradeepinfra/fp4
Best cost/speed trade-off
Current pricing
Input price
$1.05 / 1M tokens
Output price
$3.5 / 1M tokens
Sample cost
$0.0028
Speed measurements
500-token response
10.71 s
Response starts
0.91 s
Output speed
51.0 tok/s
Endpoint details
Uptime (30 min)
100.00%
Context
202.8K
Model format
fp4
Max output
32.8K
17 parameters

frequency_penalty, include_reasoning, logit_bias, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
SiliconFlowsiliconflow/fp8
Current pricing
Input price
$1.19 / 1M tokens
Output price
$3.74 / 1M tokens
Sample cost
$0.00306
Speed measurements
500-token response
15.66 s
Response starts
2.15 s
Output speed
37.0 tok/s
Endpoint details
Uptime (30 min)
99.96%
Context
204.8K
Model format
fp8
Max output
131.1K
9 parameters

frequency_penalty, include_reasoning, max_tokens, reasoning, temperature, tool_choice, tools, top_k, top_p

Provider / route
Phalaphala
Current pricing
Input price
$1.21 / 1M tokens
Output price
$4.2 / 1M tokens
Sample cost
$0.00331
Speed measurements
500-token response
17.99 s
Response starts
2.84 s
Output speed
33.0 tok/s
Endpoint details
Uptime (30 min)
91.08%
Context
202.8K
Model format
unknown
Max output
128K
18 parameters

frequency_penalty, include_reasoning, logprobs, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p

Provider / route
AtlasCloudatlas-cloud/fp8
Current pricing
Input price
$1.26 / 1M tokens
Output price
$3.96 / 1M tokens
Sample cost
$0.00324
Speed measurements
500-token response
27.91 s
Response starts
1.59 s
Output speed
19.0 tok/s
Endpoint details
Uptime (30 min)
99.77%
Context
202.8K
Model format
fp8
Max output
202.8K
17 parameters

frequency_penalty, include_reasoning, logit_bias, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
Basetenbaseten/fp4
Current pricing
Input price
$1.3 / 1M tokens
Output price
$4.3 / 1M tokens
Sample cost
$0.00345
Speed measurements
500-token response
6.40 s
Response starts
0.72 s
Output speed
88.0 tok/s
Endpoint details
Uptime (30 min)
99.61%
Context
202.8K
Model format
fp4
Max output
202.8K
13 parameters

frequency_penalty, include_reasoning, max_tokens, presence_penalty, reasoning, response_format, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
NovitaAInovita/fp8
Current pricing
Input price
$1.38 / 1M tokens
Output price
$4.4 / 1M tokens
Sample cost
$0.00358
Speed measurements
500-token response
17.75 s
Response starts
2.60 s
Output speed
33.0 tok/s
Endpoint details
Uptime (30 min)
100.00%
Context
204.8K
Model format
fp8
Max output
131.1K
13 parameters

frequency_penalty, include_reasoning, max_tokens, presence_penalty, reasoning, repetition_penalty, seed, stop, temperature, tool_choice, tools, top_k, top_p

Provider / route
Nebiusnebius/fp8
Current pricing
Input price
$1.4 / 1M tokens
Output price
$4.4 / 1M tokens
Sample cost
$0.0036
Speed measurements
500-token response
17.27 s
Response starts
0.60 s
Output speed
30.0 tok/s
Endpoint details
Uptime (30 min)
99.54%
Context
202.8K
Model format
fp8
Max output
N/a
16 parameters

frequency_penalty, include_reasoning, logit_bias, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
Parasailparasail/fp8
Current pricing
Input price
$1.4 / 1M tokens
Output price
$4.4 / 1M tokens
Sample cost
$0.0036
Speed measurements
500-token response
10.01 s
Response starts
1.39 s
Output speed
58.0 tok/s
Endpoint details
Uptime (30 min)
99.68%
Context
202.8K
Model format
fp8
Max output
131.1K
18 parameters

frequency_penalty, include_reasoning, logit_bias, logprobs, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p

Provider / route
Fireworksfireworks
Current pricing
Input price
$1.4 / 1M tokens
Output price
$4.4 / 1M tokens
Sample cost
$0.0036
Speed measurements
500-token response
10.37 s
Response starts
1.28 s
Output speed
55.0 tok/s
Endpoint details
Uptime (30 min)
Insufficient recent data
Context
202.8K
Model format
unknown
Max output
N/a
17 parameters

frequency_penalty, include_reasoning, logit_bias, logprobs, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs, top_p

Provider / route
Friendlifriendli
Fastest
Current pricing
Input price
$1.4 / 1M tokens
Output price
$4.4 / 1M tokens
Sample cost
$0.0036
Speed measurements
500-token response
5.46 s
Response starts
0.31 s
Output speed
97.0 tok/s
Endpoint details
Uptime (30 min)
100.00%
Context
202.8K
Model format
unknown
Max output
202.8K
16 parameters

frequency_penalty, include_reasoning, max_tokens, min_p, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Provider / route
Z.aiz-ai/fp8
Current pricing
Input price
$1.4 / 1M tokens
Output price
$4.4 / 1M tokens
Sample cost
$0.0036
Speed measurements
500-token response
18.66 s
Response starts
4.77 s
Output speed
36.0 tok/s
Endpoint details
Uptime (30 min)
99.77%
Context
202.8K
Model format
fp8
Max output
131.1K
9 parameters

include_reasoning, max_tokens, reasoning, response_format, temperature, tool_choice, tools, top_k, top_p

Provider / route
Venicevenice/fp8
Current pricing
Input price
$1.54 / 1M tokens
Output price
$4.84 / 1M tokens
Sample cost
$0.00396
Speed measurements
500-token response
9.69 s
Response starts
1.63 s
Output speed
62.0 tok/s
Endpoint details
Uptime (30 min)
99.82%
Context
200K
Model format
fp8
Max output
80K
13 parameters

frequency_penalty, include_reasoning, max_tokens, presence_penalty, reasoning, response_format, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_p

Endpoint data fetched .

GLM 5.1 deployment guide

How to choose a GLM 5.1 inference provider

GLM 5.1 is indexed here as a text model by Z.ai, with 18 provider endpoints from StreamLake, DigitalOcean, GMICloud, Chutes, Baidu Qianfan, and others. The comparison preserves each exact OpenRouter routing tag so pricing and performance observations can be connected to the route an application would actually request.

Match the endpoint to the workload

The model publishes a 202.8K-token context window. It accepts text input and returns text output. 19 distinct supported parameters appear across the listed routes. Confirm limits on the specific endpoint rather than assuming every host exposes the same configuration.

Compare the real request economics

StreamLake currently has the lowest estimated cost for the standard 1,000-input/500-output-token sample at $0.002484. Input-heavy and output-heavy applications can produce a different result, so review both per-million-token prices in the endpoint table.

Balance response start and generation speed

Friendli currently has the shortest estimated 500-token response at 5.46 seconds. DeepInfra is the single endpoint closest to the current ideal cost/speed combination. Recent observations can change, so validate finalists with your own prompts.