GLM-5.4 API Access: Should You Wait for OpenRouter?

· AIHubMix · 3 min read · Opinion

GLM-5.4 API Access: Should You Wait for OpenRouter?

We tested GLM-5.4 on our own gateway, AIHubMix, and the API call succeeded with model set to coding-glm-5.4. At 09:47 UTC on November 23, 2026, OpenRouter’s public catalog listed GLM-5.3 but had no entry for 5.4. If your app already uses OpenRouter, you can send just the jobs that need 5.4 to AIHubMix.

Send the 5.4 request to AIHubMix

To try a prompt in the browser, open the playground with GLM-5.4 selected. For an app that already uses OpenAI’s Chat Completions format, the AIHubMix model guide gives you a request you can copy. Set AIHUBMIX_API_KEY to your AIHubMix key, then send a text prompt:

curl -sS --fail-with-body https://aihubmix.com/v1/chat/completions \
  -H "Authorization: Bearer $AIHUBMIX_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "coding-glm-5.4",
    "messages": [{"role": "user", "content": "Reply with OK."}]
  }'

The model page calls it Coding GLM 5.4. In an API request, keep the lowercase spelling and both hyphens: coding-glm-5.4.

How cache hits change the bill

Suppose a coding job sends 100,000 input tokens across its requests and generates 10,000 output tokens. If 20,000 of the input tokens hit the cache, AIHubMix’s November 23 rates give this estimate in US dollars:

Token type Tokens Rate per 1M Cost
Uncached input 80,000 $0.06 $0.00480
Cached input 20,000 $0.015 $0.00030
Output 10,000 $0.22 $0.00220

That comes to $0.00730. With no cache hits, the input costs $0.00600; the same output brings the total to $0.00820. Budget for the second figure if you don’t know how much input will hit the cache.

Neither OpenRouter’s catalog nor BigModel’s direct API price sheet quoted a GLM-5.4 rate at the time. Zhipu’s Coding Plan quota is separate from gateway billing.

Check OpenRouter for the exact model

The launch-day check covered model IDs, canonical slugs and display names. Looking up providers for z-ai/glm-5.4 returned HTTP 404; the same lookup for z-ai/glm-5.3 returned a provider list. To repeat the catalog search, including names such as “GLM 5.4”, run this in Bash:

set -o pipefail
curl -fsSL --max-time 30 https://openrouter.ai/api/v1/models |
  jq -cse '
    if length == 1 and (.[0].data | type) == "array" and (.[0].data | length) > 0 then
      [.[0].data[] | select(any(.id, .canonical_slug, .name;
        ( . // "" ) | test("glm[^a-zA-Z0-9]*5[^a-zA-Z0-9]*4(?![0-9])"; "i"))) | .id]
    else error("expected one model catalog with a data array") end'

A successful run prints [] if none of those fields matches. A download or JSON error means the check failed. If a candidate appears, check whether it’s the base 5.4 or a distinct variant, then look up the exact ID at /api/v1/models/{author}/{slug}/endpoints to see which providers serve it.

When to keep OpenRouter

For jobs that can stay on a listed model such as GLM-5.3, OpenRouter’s provider settings let you restrict requests to approved hosts with only, or choose which host gets the first try with order. Provider fallback can try another eligible host for the same model. Model fallback lets you name a different model that may answer. For a job that requires 5.4, leave other versions off that list.

If OpenRouter lists a 5.4 provider later, compare prices using the same split of cached input, uncached input and output. Then try the same request on both gateways before moving traffic.

FAQ

Can I reuse my OpenRouter key for the AIHubMix request?
Use an AIHubMix key with the AIHubMix URL. Your OpenRouter client keeps its own key and base URL.

Can the AIHubMix endpoint stream the response?
Its guide documents "stream": true for server-sent events. Omit stream for a single JSON response.

Does repeating a prompt guarantee the cached rate?
The guide quotes a price for cache hits. It doesn’t promise that every repeated input will hit the cache.

Does the catalog command use API credits?
No. It fetches a public list without sending a prompt or an API key.

Does the launch-day result rule out a private OpenRouter route?
No. The catalog and provider lookup show what OpenRouter lists publicly.

Which gateway was faster on GLM-5.4?
We didn’t time GLM-5.4 completions on both gateways. A catalog lookup can’t tell you how long a model takes to answer.

Sources

Keep reading

More from the blog