GLM 5.4 API pricing
$0.42 in, $1.32 out per million tokens, 70% under Z.ai's list price.
glm-5.4managed routeOpenAI SDK
Price · per million tokens, USD
Get a key| Tokens | Z.ai list price | UplinkSwitch | Saving |
|---|---|---|---|
| Input | $1.40 | $0.42 | -70% |
| Cached input | $0.26 | $0.078 | -70% |
| Output | $4.40 | $1.32 | -70% |
List price: Z.ai's published rate, read October 2026. Prices read from the live catalog on 2026-12-03; the page follows the catalog.
Real-model check: Steady since Dec 3
GLM 5.4 vs GLM 5.3 price · per million tokens, USD
GLM 5.3| Tokens | GLM 5.3 | GLM 5.4 | List change |
|---|---|---|---|
| Input | $0.3276list $1.092 | $0.42list $1.40 | +28% |
| Cached input | $0.068list $0.2028 | $0.078list $0.26 | +28% |
| Output | $1.0296list $3.432 | $1.32list $4.40 | +28% |
GLM 5.4 specs
- Context window
- 1,000,000 tokens
GLM 5.4 API key · base URL and setup
- Create a key in the console at uplinkswitch.ai/console. Credit is prepaid from $10 with no subscription, and the key works at once.
- Point your SDK or tool at https://api.uplinkswitch.com/v1, for example with OPENAI_BASE_URL, and send the key as the bearer token.
- Send glm-5.4 as the model. The same key calls every other model in the catalog.
Python · OpenAI SDK
from openai import OpenAI
client = OpenAI(
base_url="https://api.uplinkswitch.com/v1",
api_key="sk-uplink-live-...",
)
completion = client.chat.completions.create(
model="glm-5.4",
messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)TypeScript · OpenAI SDK
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.uplinkswitch.com/v1',
apiKey: 'sk-uplink-live-...',
});
const completion = await client.chat.completions.create({
model: 'glm-5.4',
messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);curl
curl https://api.uplinkswitch.com/v1/chat/completions \
-H "authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-d '{"model":"glm-5.4","messages":[{"role":"user","content":"Hello"}]}'What would it cost? · paste a prompt, priced before you send it
Input is counted at about 4 characters per token.
More from Z.ai
GLM 5.4 questions
GLM 5.4 is a model from Z.ai, with a 1,000,000-token context window. Through UplinkSwitch it answers the OpenAI SDK on one key as glm-5.4.
$0.42 per million input tokens and $1.32 per million output tokens, with cached input at $0.078. Z.ai's list price is $1.40 and $4.40, so this is 70% under Z.ai's list price.
It is pay as you go: prepaid credit from $10, with no subscription or monthly fee, billed per token. A 1,000-token prompt with a 500-token reply costs about $0.0011.
GLM 5.4 has a 1,000,000-token context window.
glm-5.4. Send it as the model through the OpenAI SDK with base URL https://api.uplinkswitch.com/v1.
Create one in the console at uplinkswitch.ai/console: prepaid credit from $10, no subscription, and the key is live at once. The same key calls GLM 5.4 and every other model in the catalog; send it as the bearer token with base URL https://api.uplinkswitch.com/v1.
Every day each model gets the same test prompt, and the results are public on /proof. GLM 5.4's latest result: Steady since Dec 3.
Per million tokens here, GLM 5.4 is $0.42 input and $1.32 output; GLM 5.3 is $0.3276 and $1.0296. Z.ai's list price went from $1.092 and $3.432 on GLM 5.3 to $1.40 and $4.40 on GLM 5.4. One key calls both, so switching is a change of model id.