Seedance 2.5 — 15% below official pricing, 58% cheaper than fal. Wan 3.0 — 42% below official list price. Magi-2 is live. Seedream 5.5 — 50% off.

Guides, updates and engineering notes from ArgoLink on building with one API for every AI model. Blog

Zhipu GLMglm-5.4

Z.ai's latest flagship, the first GLM built on the Loop Transformer architecture

$0.84/ 1M input tokens-40%$1.4official price

  • 1M context
  • Up to 128K output
  • Effort low to max
  • Always thinks
Modality
Text
Endpoint
/v1/chat/completions
Model ID
glm-5.4
Provider
Zhipu GLM

GLM-5.4 API overview

Documented endpoint

Requests go to /v1/chat/completions in Z.ai's own format; /v1/responses and /v1/messages are converted to it.

Model provider

GLM-5.4 is published by Zhipu GLM and is called through the API model ID glm-5.4.

Output and limits

1,000,000-token context; up to 128,000 output tokens; text in, text out.

GLM-5.4 API pricing

GLM-5.4 is billed 40% below the official list price on every metered dimension below.

ItemArgoLink rateOfficial priceYou save
Input tokens$0.84 / 1M tokens$1.4-40%
Cached input tokens$0.156 / 1M tokens$0.26-40%
Cache write tokens$0 / 1M tokens$0-40%
Output tokens$2.64 / 1M tokens$4.4-40%

Reasoning tokens are billed as output tokens.

Create an API key

GLM-5.4 API reference

Quick start

Create an API key in the console, then use the Base URL, endpoint, and request body shown on this page.

Base URL

  • https://argolink.io/v1For OpenAI SDKs and OpenAI-compatible clients.
  • https://argolink.ioFor Anthropic SDKs, Claude Code and other Anthropic Messages clients. Leave out /v1: the client adds /v1/messages itself.

Endpoints

  • POSTRecommended/v1/chat/completionsZ.ai's own format.
  • POSTResponses/v1/responsesConverted to Chat Completions.
  • POSTAnthropic Messages/v1/messagesConverted to Chat Completions.

Authentication

Send your API key as a Bearer token in the Authorization header.

POST /v1/chat/completions
curl -sS https://argolink.io/v1/chat/completions \
  -H "Authorization: Bearer $ARGOLINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.4",
    "messages": [{"role": "user", "content": "Explain what this model is good at in one sentence."}],
    "stream": false
  }'

Protocols

Chat Completions

Recommended: the model's own format

Z.ai's own format: every field reaches the model exactly as sent.

POST /v1/chat/completions
curl https://argolink.io/v1/chat/completions \
  -H "Authorization: Bearer $ARGOLINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.4",
    "messages": [{"role": "user", "content": "Compare optimistic and pessimistic locking in three bullet points."}],
    "reasoning_effort": "high"
  }'
FieldValue
messagessystem, user, assistant and tool turns of text; this model reads no images
thinkingalways on; leave it out
reasoning_effortlow · high · max; defaults to max; medium runs as high, xhigh runs as max
max_completion_tokensup to 128,000
streamtrue streams server-sent events
service_tiernot supported; leave it out

Responses and Anthropic Messages

Converted to Chat Completions

Codex, Claude Code and other clients that send these formats reach the model through Chat Completions, which the gateway converts them to.

ResponsesPOST /v1/responses
curl https://argolink.io/v1/responses \
  -H "Authorization: Bearer $ARGOLINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.4",
    "input": "Compare optimistic and pessimistic locking in three bullet points."
  }'
Anthropic MessagesPOST /v1/messages
curl https://argolink.io/v1/messages \
  -H "x-api-key: $ARGOLINK_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.4",
    "max_tokens": 4000,
    "messages": [{"role": "user", "content": "Compare optimistic and pessimistic locking in three bullet points."}]
  }'
FieldValue
inputtext; input_file parts are dropped
messagestext and tool blocks
reasoning.effortthe same values as reasoning_effort
output_config.effortthe same values; sent as medium when left out

Web search and other server-side tools are dropped in both conversions.

GLM-5.4 full request parameters

ParameterTypeRequirementWhat it does
modelstringrequiredThe catalog identifier for this page: glm-5.4.
messagesarrayrequiredSystem, user, assistant and tool turns of text. This model reads no images.
thinkingobjectoptionalThinking: always on; leave it out.
reasoning_effortstringoptionalReasoning depth: low · high · max; defaults to max; medium runs as high, xhigh runs as max.
max_completion_tokensintegeroptionalCaps the answer: up to 128,000. max_tokens works too.
tools · tool_choicearray · string or objectoptionalFunction tools and how the model picks one.
streambooleanoptionaltrue streams chunks whose choices[].delta carry the text.
service_tierstringnot supportedThere is no faster tier for this model; leave it out.

Create an API key

GLM-5.4 API compared with similar models

ModelModel IDProviderRateBest for
GLM-5.4glm-5.4Zhipu GLM$0.84 / 1M input tokensZ.ai's latest flagship, the first GLM built on the Loop Transformer architecture
GPT-6 Astragpt-6-astraOpenAI$2.3 / 1M input tokensOpenAI's most capable model, built for the hardest end-to-end work
Claude Opus 5claude-opus-5Anthropic$1.75 / 1M input tokensFor complex agentic coding and enterprise work
Claude Fable 5.1claude-fable-5-1Anthropic$3.5 / 1M input tokensAnthropic's model for demanding reasoning and long-horizon agentic work

More models from this provider

Other models in this modality

GLM-5.4 API FAQ

How do I call GLM-5.4?

Create an API key in the console and POST https://argolink.io/v1/chat/completions with model set to glm-5.4 and your key in the Authorization header as a Bearer token. /v1/responses and /v1/messages work too; the gateway converts them to Chat Completions.

How much does GLM-5.4 cost?

$0.84 per million input tokens and $2.64 per million output tokens, 40% below the official rates. Cached input costs $0.156 per million. Reasoning tokens are billed as output tokens.

What are GLM-5.4's context and output limits?

1,000,000-token context; up to 128,000 output tokens; text in, text out.

How do I control GLM-5.4's reasoning?

It always thinks. Set reasoning_effort to low, high or max; left out, it runs at max; medium runs as high, xhigh runs as max.

Can GLM-5.4 read images?

No. It reads text only.

Create an API key

Welcome Builders

Who runs ArgoLink, refunds and how your data is handled

Request Refund

Submit a request and review its status in Top-up Orders.