Skip to main content

GLM 4.6

Live
Z.ai198K context · Text, ToolsBenchmark price · $0.43 input / $1.75 output per 1M tokens
Use this model
Best discount now99.0%offYou pay 1.0% of reference.
Median discount94.0%offAcross 363 live offers.
Realized · 7 days97.1%avgRequest-weighted average.
Requests · 24h4,584363 offers from 56 sellers.
Current offers
363 of 478 offers
Availability
Providers
ProviderDiscountPriceLatencyUptimeCacheSold
Z.ai
99%
$0.00417 in
$0.0170 out
-
-
-
$15
Z.ai
99%
$0.00417 in
$0.0170 out
-
-
-
$6
Amazon Bedrock
99%
$0.00417 in
$0.0170 out
-
-
-
$1
Z.ai
99%
$0.00417 in
$0.0170 out
-
-
-
$5
Z.ai
99%
$0.00417 in
$0.0170 out
-
-
-
-
Amazon Bedrock
99%
$0.00417 in
$0.0170 out
-
-
-
$0.633
Z.ai
99%
$0.00417 in
$0.0170 out
-
-
-
$2
Z.ai
99%
$0.00417 in
$0.0170 out
-
-
-
$7
Z.ai
99%
$0.00417 in
$0.0170 out
-
-
-
$0.328
Z.ai
99%
$0.00417 in
$0.0170 out
-
-
-
$0.280
Total
Cumulative offers
Sold
$37

Discount trend

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

Recent fills

23:54108 tokensZ.ai direct99.2%
23:509 tokensZ.ai direct100.0%
23:4917 tokensVenice AI27.3%
23:41105 tokensZ.ai direct99.2%
23:409 tokensZ.ai direct100.0%
23:392,370 tokensZ.ai direct99.0%
23:34107 tokensZ.ai direct99.2%
23:309 tokensZ.ai direct100.0%
23:21105 tokensZ.ai direct99.2%
23:209 tokensZ.ai direct100.0%
23:19491 tokensZ.ai direct99.0%
23:1817 tokensVenice AI36.4%
23:14107 tokensZ.ai direct99.2%
23:1033 tokensZ.ai direct100.0%
23:0429 tokensZ.ai direct100.0%
23:01104 tokensAWS Bedrock99.2%
23:0017 tokensAWS Bedrock100.0%
22:5829 tokensZ.ai direct100.0%
22:5452,496 tokensZ.ai direct99.0%
22:5452,496 tokensZ.ai direct99.0%
Times in UTCSettled on Base in USDC.

Performance by provider route · 24h

Measured on Surplus traffic
Venice AI direct100% of traffic
99.5% success
p50 1.67 s · p95 10.11 s · 329 tok/s
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
Context window 198K tokens · Max output 16K 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-4.6",
    messages=[{"role": "user",
               "content": "Hello!"}]
)

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

Related models