Knowledge Base Sections ▾

API and pricing

GLM-5.3 Flash API: Pricing and a Free Start

In short: GLM-5.3 Flash is Z.ai's open model that reasons before answering, and its API is sold at wildly different prices. Z.ai itself charges $0.15 per million input tokens and $0.50 per million output tokens. The cheapest provider on OpenRouter charges $0.0285 and $0.0923. Through JoinGonka Gateway — $0.0062 and $0.019: same model, served by the decentralized Gonka network.

New JoinGonka accounts get 3M free tokens. The API is compatible with OpenAI and Anthropic: in existing code you just swap the address, the key and the model name. Below — prices with sources, one-command setup, reasoning settings and a comparison with DeepSeek V4 Flash.

GLM-5.3 Flash API price calculator

What your month on GLM-5.3 Flash costs: on the official API, on the cheapest OpenRouter provider, and on JoinGonka. Everywhere — pay only for tokens, no subscription.

Example workload:

Chatbot or service: short history, responses of noticeable length, no cache considered.

M
M
Where to payPer month
Z.ai API (GLM-5.3-Flash)$0.15 input, $0.03 from cache · $0.50 output per 1M$5.50
OpenRouter, cheapest provider (Relace)GLM-5.3 Flash·$0.0285 input · $0.0923 output per 1M$1.03
JoinGonka GatewayGLM-5.3 Flash·$0.0062 input · $0.019 output per 1MContext 390 000 tokens, output up to 8 192.Cache input — at the regular input price.$0.22
Difference from the cheapest option of the same model:$0.82per month(×4.7cheaper than Relace on OpenRouter)
Fine-tune the calculation

The resent part of a request — dialogue history, system prompt — costs less on official APIs and many providers. On JoinGonka all input is at one price, and the calculation accounts for that.

Free start: new JoinGonka accounts get 3M tokens, and the key is issued right after sign-up.

Get free tokens →

Prices outside JoinGonka verified on November 2, 2026 (Z.ai prices · providers on OpenRouter). The JoinGonka price is pulled from the gateway API and updates automatically. Cache write fees charged by others are not included.

How much does GLM-5.3 Flash API cost: Z.ai, OpenRouter and JoinGonka

Prices per 1M tokens as of November 2, 2026:

Where to buyInputCached inputOutput
Z.ai — official API$0.15$0.03$0.50
OpenRouter — cheapest provider (Relace)$0.0285no discount$0.0923
JoinGonka Gateway$0.0062at the input price$0.019

On OpenRouter, GLM-5.3 Flash has more than thirty providers, and their prices differ many times over: many stick to Z.ai's price of $0.15 and $0.50, while the cheapest one, Relace, charges $0.0285 and $0.0923. Compare with it: the difference against the cheapest provider of the same model is about ×5, and against Z.ai's API about ×24 on input and ×27 on output.

At Z.ai and many providers, the resent part of a request — conversation history, system prompt — is read from cache cheaper than regular input. JoinGonka has no separate cache price; all input costs the same. But cached input at Z.ai still costs $0.03 per million — many times more than our regular input.

The JoinGonka price on this page is live: it comes from the gateway API and changes with the GNK rate. What makes it low is how the Gonka network works: the price is set there by the settlement for the compute work of hosts, not by the model developer's price list.

How to connect the GLM-5.3 Flash API

1. Key. Sign up at JoinGonka Gateway and create a jg-… key in your dashboard. New accounts receive 3M free tokens.

2. Request. The OpenAI-compatible API address is https://gate.joingonka.ai/v1, the model ID is zai-org/GLM-5.3-Flash:

curl https://gate.joingonka.ai/v1/chat/completions \
  -H "Authorization: Bearer jg-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "zai-org/GLM-5.3-Flash",
    "max_tokens": 2000,
    "messages": [{"role": "user", "content": "Find the bug: def avg(xs): return sum(xs) / len(xs) - 1"}]
  }'

The same in Python with the openai library:

from openai import OpenAI

client = OpenAI(api_key="jg-your-key", base_url="https://gate.joingonka.ai/v1")
response = client.chat.completions.create(
    model="zai-org/GLM-5.3-Flash",
    max_tokens=2000,
    messages=[{"role": "user", "content": "Explain in two sentences what a race condition is"}],
)
print(response.choices[0].message.content)

3. Coding tools. The installer will write the gateway and model into the config of Claude Code, Codex CLI, OpenCode and other tools with a single command — it will ask you for the tool and the key itself:

npx @joingonka/setup --model glm

For Anthropic Messages API clients the address is https://gate.joingonka.ai, without /v1. Step-by-step guides for each tool are in the Tools section.

Free start: what you can do without paying

  • Free tokens. A new account gets 3M tokens — that's hundreds of requests to GLM-5.3 Flash: enough to test the model on your own tasks and tune your reasoning budget. No card or crypto needed for that.
  • Chat without registration. In the free chat on our site you can pick GLM-5.3 Flash and watch it reason: the chain of thought is shown in a separate collapsible block.
  • Then — pay per token. There's no subscription: you top up your balance in GNK, USDT or by card, actual tokens are deducted, and daily usage is visible in your dashboard.

Z.ai gives away its older lightweight models for free — GLM-4.7-Flash and GLM-4.5-Flash. GLM-5.3 Flash is paid there, so the way to try that exact model without paying is with JoinGonka's starter tokens.

GLM-5.3 Flash specs in the API

GLM-5.3 Flash is the lightweight model in the GLM-5.3 lineup from Z.ai, the international brand of Beijing-based Zhipu AI. Lightweight is relative: it's a 320-billion-parameter MoE model, of which roughly 18 billion are active per token. Attention is hybrid — some layers are sparse, some are linear — so long context costs it less. The weights are open under the MIT license. The working parameters in JoinGonka are set by the deployment on the network's hosts:

  • Context — 390,000 tokens. That's the verified-by-queries minimum: Z.ai and OpenRouter providers offer a window of up to 1M tokens, the network's hosts are configured for 400,000, and we publish only what's confirmed.
  • Response — up to 8,192 tokens, including reasoning.
  • Reasoning arrives in a separate reasoning_content field, tool calls come through the standard tool_calls, including the second and subsequent rounds; JSON mode (response_format) works.
  • Text only: the network doesn't accept images yet.

The models, their IDs, and limits are in the Gonka API documentation, availability and latency are on the gateway status page.

Reasoning and token budget: how to avoid an empty response

GLM-5.3 Flash reasons first, then answers, and both stages count toward a single output limit. Even for a simple question, reasoning takes 250–450 tokens; for a substantive task, thousands. So the familiar max_tokens: 256 yields finish_reason: "length" and an empty content: the model spent the limit on reasoning and never got to the answer.

SettingWhat to setWhy
max_tokensFrom 600 for a short answer, from 2000 for a taskThe limit is shared by reasoning and the answer
streamtrueReasoning and the answer arrive as they're generated, and a long answer doesn't hit the proxy timeout
reasoning_effortlow when no thinking is needed; omit it when it isThe switch is binary: low turns reasoning off, any other value leaves it full. The gateway maps none and minimal to low

Reasoning is billed as output tokens. If you don't need it at all, another model on the network is handier for short, fast answers. In agents like Cline and Cursor, check the output limit for auxiliary requests — context compression, conversation titles: with a limit of a couple hundred tokens, GLM-5.3 Flash will return an empty response.

GLM-5.3 Flash or DeepSeek V4 Flash

Both models are available in JoinGonka at the same price, so choose by task, not by budget:

GLM-5.3 FlashDeepSeek V4 Flash 0731
DeveloperZ.aiDeepSeek
Context in JoinGonka390,000380,000
Response up to8,192, including reasoning32,768
StrengthTasks that require thinking: tangled logic, bug hunting, code analysisLong answers, large documents, long agent sessions
Official APIZ.ai: $0.15 / $0.50DeepSeek already sells V4.1 Flash: $0.15 / $0.60, $0.30 / $1.20 at peak hours
OpenRouterfrom $0.0285 / $0.0923from $0.06 / $0.18
JoinGonkaone price — $0.0062 / $0.019 per 1M

In short: GLM-5.3 Flash is for when you need to think through complex logic and don't need a long answer; DeepSeek V4 Flash is for long answers, large documents, and agents that run for hours. The network's third model, MiniMax M2.7, suits fast short answers, but MiniMax itself is retiring it from its API. Switching between models is one model line in the request.

GLM-5.3 Flash API costs $0.15 per million input and $0.50 per million output tokens at Z.ai, $0.0285 and $0.0923 at the cheapest OpenRouter provider, and through JoinGonka Gateway — $0.0062 and $0.019, and it's the same model. New accounts get 3M free tokens; the API is compatible with OpenAI and Anthropic, the ID is zai-org/GLM-5.3-Flash, and you connect it to your apps with npx @joingonka/setup --model glm. The model reasons before answering: set max_tokens to at least 600, enable stream, and for simple tasks turn reasoning off with reasoning_effort: low.

Want to learn more?

Explore other sections or start earning GNK right now.

Connect GLM-5.3 Flash through JoinGonka →