Skip to main content

GLM 5.4

GLM-5.4 is Z.ai's flagship model and its first built on a loop transformer architecture. It adds image understanding and stronger all-round coding performance for long-horizon agent tasks.

Model card on Hugging Face
Input / output priceUp to 35% off
$1.40 / $4.40$0.91 / $2.86 per 1M
Context
1M tokens
Released
Nov 23, 2026
Agent setup

Paste into Claude Code, Cursor, or Codex

Help me set up the Respan gateway: fetch and follow https://www.respan.ai/docs/agent-setup.md. Use model "zai/glm-5.4".

Read docs

Providers

10 providers, cheapest first, OpenRouter last, priced per 1M tokens after gateway discounts.

ProviderInputOutput
Respan35% offrespan/glm-5.4
$1.40/M$0.91/M$4.40/M$2.86/M
Prime Intellectprime_intellect/z-ai/glm-5.4
$1.20/M$4.00/M
DeepRelaydeeprelay/deeprelay/glm-5.4
$1.22/M$3.83/M
Basetenbaseten/zai-org/GLM-5.4
$1.40/M$4.40/M
EmpirioLabsempiriolabs/glm-5-4
$1.40/M$4.40/M

Is a provider down? Mistral AI status, OpenRouter status

Pricing

Averaged across 10 providers, in USD per 1M tokens after gateway discounts.

Average input
$1.31 per 1M
Average output
$4.15 per 1M
Average cache read
$0.32 per 1M
Average cache write
$1.20 per 1M

Cost by volume

Total cost from 0 to 1T tokens on the cheapest and most expensive provider.

Highest$1.40/MBaseten, EmpirioLabs, FriendliAI, Mistral, Nebius, Z.ai, and OpenRouterLowest$0.91/MRespan

Throughput and latency

30-day averages from requests through the Respan gateway. Under each figure, every model on the gateway by its average, this one in blue.

Output speed

Higher is better

87tokens/sacross providers

Faster than 74% of the other 569 models on the gateway

Time to first token

Lower is better

7.0sacross providers

Faster than 14% of the other 165 models on the gateway

Response latency

Lower is better

12sacross providers

Faster than 16% of the other 754 models on the gateway

Compare GLM 5.4: GLM 5.4 vs GLM 5.3

Apps

Use GLM 5.4 in the tools you already run. Each guide points the app at the Respan gateway.

Setup guides for more apps are in the integration docs.

GLM 5.4 FAQ

Short answers, built from the data on this page.

GLM 5.4 is a model from Z.ai, released on Nov 23, 2026. GLM-5.4 is Z.ai's flagship model and its first built on a loop transformer architecture. It adds image understanding and stronger all-round coding performance for long-horizon agent tasks.

On the Respan gateway, GLM 5.4 costs from $0.91 per 1M input tokens and $2.86 per 1M output tokens on Respan, after gateway discounts. Averaged across its 10 providers, it costs $1.31 per 1M input tokens and $4.15 per 1M output tokens.

GLM 5.4 is available through 10 providers: Respan, Prime Intellect, DeepRelay, Baseten, EmpirioLabs, FriendliAI, and 4 more.

GLM 5.4 accepts up to 1M tokens of context on its largest provider route.

Point any OpenAI-compatible SDK at https://gateway.respan.ai/v1 with your Respan API key and set the model to "zai/glm-5.4". To set it up with a coding agent, copy the agent setup prompt at the top of this page.

Certified where it counts.

Built to meet the security and privacy standards that enterprise and healthcare teams require.

ISO 27001

The internationally recognized standard for information security management.

SOC 2

Secure, compliant management of your data across all of our systems.

GDPR

Operated under GDPR, the world's strictest standard for data privacy.

HIPAA

HIPAA compliant, with a BAA available for healthcare teams.

Works with your entire stack

Use Respan with your favorite frameworks and tools.

AnthropicAI21 LabsxAIVercel AI SDK
LangChainOpenRouterAssemblyAICursor
LiteLLMGroqBasetenMem0
CohereCogneeLlamaIndexFireworks
DeepSeekLinkupHaystackTogether AI
PerplexityInference.netPostHogRubyLLM
SlackMastraAzure FoundryMistral
AWS BedrockMoonshotHyperspellBAML
ModaInstructorGoogle GeminiParasail
ReductoZapierAgnoNebius
OpenAINovita AIReplicateSuperagent

Built for AI agents.
Break less.
Ship more.