Skip to main content

GLM 5

Live
Z.ai198K context · Text, ReasoningBenchmark price · $1 input / $3.2 output per 1M tokens
Use this model
Best discount now99.5%offYou pay 0.5% of reference.
Median discount99.5%offAcross 652 live offers.
Realized · 7 days71.8%avgRequest-weighted average.
Requests · 24h7,255652 offers from 74 sellers.
Current offers
652 of 845 offers
Availability
Providers
ProviderDiscountPriceLatencyUptimeCacheSold
Alibaba DashScope — China
99%
$0.00505 in
$0.0162 out
1.7s
96.7%
65.8%
$2
Z.ai
99%
$0.00545 in
$0.0174 out
-
-
-
$11
Alibaba DashScope — China
99%
$0.00545 in
$0.0174 out
1.7s
96.7%
65.8%
-
Amazon Bedrock
99%
$0.00545 in
$0.0174 out
1.7s
91.9%
8.6%
$12
Z.ai
99%
$0.00545 in
$0.0174 out
-
-
-
$5
Z.ai
99%
$0.00545 in
$0.0174 out
-
-
-
-
Z.ai
99%
$0.00545 in
$0.0174 out
-
-
-
-
Alibaba DashScope — China
99%
$0.00545 in
$0.0174 out
1.7s
96.7%
65.8%
-
Z.ai
99%
$0.00545 in
$0.0174 out
-
-
-
-
Z.ai
99%
$0.00545 in
$0.0174 out
-
-
-
-
Total
Cumulative offers
Sold
$85

Discount trend

Realized · 7 days
99.7%+0.0 pts vs last week
Best, twice dailyMedian 99.5%

Recent fills

16:2417,867 tokensVenice AI70.1%
16:2413,730 tokensZ.ai direct99.5%
16:249,471 tokensVenice AI70.1%
16:2456,384 tokensZ.ai direct99.5%
16:2347,309 tokensVenice AI70.1%
16:2316,387 tokensZ.ai direct99.5%
16:239,787 tokensZ.ai direct99.5%
16:239,649 tokensVenice AI70.1%
16:221,646 tokensVenice AI70.1%
16:228,961 tokensVenice AI70.1%
16:2216,525 tokensZ.ai direct99.4%
16:21191 tokensVenice AI70.2%
16:2130,962 tokensVenice AI70.1%
16:2129,277 tokensVenice AI70.1%
16:211,646 tokensVenice AI70.1%
16:2015,848 tokensZ.ai direct99.5%
16:208,553 tokensVenice AI70.1%
16:20277 tokensZ.ai direct99.4%
16:209 tokensAlibaba DashScope100.0%
16:20661 tokensVenice AI70.2%
Times in UTCSettled on Base in USDC.

Performance by provider route · 24h

Measured on Surplus traffic
Venice AI direct71% of traffic
99.7% success
p50 18.42 s · p95 82.59 s · 40 tok/s
AWS Bedrock18% of traffic
91.9% success
p50 7.49 s · p95 24.87 s · 73 tok/s
Alibaba DashScope — China11% of traffic
96.7% success
p50 2.25 s · p95 24.87 s · 16 tok/s
OpenRouter0% of traffic
0.8% success
p50 - · p95 - · -
Use this model

Change your base URL.
Keep your code.

Any OpenAI-compatible client works. Add /min30 to the path to only buy at 30% off or better.

Read the quickstart ↗
Parameters this model acceptsPOST /v1/chat/completions
  • modelstringThis model’s id
  • messagesarrayThe conversation, as role and content pairs
  • streambooleanSend the answer as server-sent events
  • max_tokensintegerMost output tokens to generate
  • temperaturenumberSampling temperature
  • top_pnumberNucleus sampling
  • top_kintegerTop-k sampling
  • min_pnumberDrops tokens below this share of the top token’s probability
  • stopstring | arrayStop sequences
  • seedintegerDeterministic sampling
  • toolsarrayFunctions the model may call, in the OpenAI format
  • tool_choicestring | objectauto, required, none, or one named function
  • response_formatobjectJSON mode or a JSON schema for structured output
  • structured_outputsbooleanAccepts a JSON schema in response_format
  • reasoningobjectReasoning options as an object, such as {"effort": "high"}
  • include_reasoningbooleanStripped before the request reaches the provider
  • frequency_penaltynumberPenalises tokens by how often they appeared
  • presence_penaltynumberPenalises tokens that appeared at all
  • repetition_penaltynumberPenalises repeated tokens
  • logit_biasobjectPer-token bias on the logits
  • logprobsbooleanReturn token log probabilities
  • top_logprobsintegerHow many top tokens to return probabilities for
Context window 198K tokens · Max output 33K tokensOthers are passed through; most providers ignore what they don’t support. Parameter compatibility ↗
from openai import OpenAI

client = OpenAI(
    api_key="inf_your_key_here",
    base_url="$SURPLUS_BASE_URL"
)

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

SURPLUS_BASE_URL
https://api.surplusintelligence.ai/v1

Related models