1M-token context
The official specification lists a one-million-token context window.
Use GLM-5.4 in your app or AI agent with image input and pay-as-you-go pricing.
The official specification lists a one-million-token context window.
Send images with text in a Chat Completions request.
Choose low or high reasoning effort, or turn thinking off.
Call tools and get structured output that follows your JSON Schema.
| Capability | Result |
|---|---|
| Image input (base64) | 3 of 3 colour images identified correctly |
| Tool calling | returned the expected function call |
| JSON Schema output | schema-valid JSON returned |
| Reasoning effort (low / high) | both accepted; thinking tokens are billed as output |
| Long input | 647,652 input tokens accepted in one request |
Costs are estimated from the volume and cache hit rate you enter. Input includes cache hits.
Choose your balance credit. The discount comes off what you pay.
| Balance credit | You pay | You save | GLM-5.4 input / output | |
|---|---|---|---|---|
| $5Recommended for new usersFirst top-upYou pay: $3 · You save: $2 | $3 | $2 | $0.63 / $1.98 | Top up |
| $50You pay: $48 · You save: $2 | $48 | $2 | $1.008 / $3.168 | Top up |
| $100You pay: $95 · You save: $5 | $95 | $5 | $0.9975 / $3.135 | Top up |
| $200You pay: $185 · You save: $15 | $185 | $15 | $0.9713 / $3.0525 | Top up |
| $500Lowest tier rateYou pay: $450 · You save: $50 | $450 | $50 | $0.945 / $2.97 | Top up |
GLM-5.4 accepts image input; GLM-5.3 is text-only.
per million tokens
| GLM model | Input | Output | Cache read | Context | Input modalities | API formats |
|---|---|---|---|---|---|---|
GLM-5.4glm-5.4 | $1.05−25% | $3.30−25% | $0.195−25% | 1M | Text · Image | Chat Completions |
GLM-5.3glm-5.3 | $1.05−25%vs official | $3.30−25%vs official | $0.195−32%vs official | 1M | Text | Chat CompletionsAnthropic Messages |
GLM-5.3 Flashglm-5.3-flash | $0.1125−25%vs official | $0.375−25%vs official | $0.0225−32%vs official | 1M | Text · Image · Video · File | Chat CompletionsAnthropic Messages |
GLM-5.2glm-5.2 | $1.05−25%vs official | $3.30−25%vs official | $0.195−32%vs official | 1M | Text | Anthropic MessagesChat Completions |
Struck-through prices next to “vs official” use the sources below.
The same API key and balance also work with Claude Fable 5.2 API, GPT-6.2 Astra API and Gemini.
Copy the setup for your AI agent, or start with an SDK example.
curl https://bettertoken.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_BETTERTOKEN_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.4",
"messages": [{"role": "user", "content": "Hello!"}]
}'Per million tokens, BetterToken charges $1.05 for input, $3.30 for output and $0.195 for cache reads. Your first $5 of balance costs $3.
Sign up or sign in to BetterToken, create an API key in Workspace and top up your balance. Set the model to glm-5.4 in your request.
GLM-5.4 accepts image input; GLM-5.3 is text-only. Both have a 1M-token context window. If you need to send images, choose GLM-5.4.
The official specification lists a 1 million-token context window. In our test on 23 Nov 2026, BetterToken accepted a single request with 647,652 input tokens.
A BetterToken account and API key give you pay-as-you-go access. No Z.ai account or Coding Plan subscription is required.
Call OpenAI Chat Completions with the base URL https://bettertoken.ai/v1. Use curl or the OpenAI SDK for Python or Node.js.
Yes. Include an image as a base64 data URL in a Chat Completions request.
Thinking tokens are billed as output. Use reasoning_effort (low or high) to adjust it, or thinking: {type: "disabled"} to turn it off and reduce output tokens.
Chat Completions supports tool calling, JSON mode, JSON Schema structured output and streaming. Allow enough max_tokens for structured output.
The listed cache-read rate is $0.195 per million tokens. The standard input rate is $1.05 per million.
You can use GLM, Claude, GPT and Gemini with the same BetterToken API key and balance. Select the model in your request.
Top up in US dollars with Stripe or USDT on TRC-20 and pay as you go, with no monthly fee for GLM-5.4 API access. On your first top-up, get $5 credit for $3.
YOUR NEXT PROJECT STARTS HERE
Your first $5 of API credit costs $3.