GLM 5.4 API — 料金・仕様・SDK導入ガイド

Technical Summary & Live Pricing

API Store Hub経由でGLM 5.4 API(glm-5.4)を6,000 ST/1Mトークンから利用可能 · 1M context。/v1/chat/completions(OpenAI Chat Completions & Responses API)対応、STプリペイド課金、cURL・Python・TypeScriptコード付き。

Model Name
GLM 5.4
Primary Model ID
glm-5.4
Model Family
Zhipu GLM
Starting Price
6,000 ST/1Mトークン (1 VND = 1 ST)
Context Window
1M tokens
Max Output
128K tokens
Protocol & Endpoint
/v1/chat/completions — OpenAI Chat Completions & Responses API
Compatible Apps & SDKs
Cursor, Codex CLI, Cline, Roo Code, Continue, Open WebUI, Dify, n8n, OpenAI SDK

Active Lanes & Variants

GLM 5.4
Model IDLaneBilling UnitPrice (ST / VND)Min/RequestContext WindowMax OutputFeatures
glm-5.4Standard Token1M tokens6,000 ST/1M tok100 ST1M128KReasoning, Vision, Tool use, Streaming, OpenAI API, Theo token, Thinking, Coding, 1M context
req/glm-5.4Fixed Request (req/)Per request900 ST/req-1M128KReasoning, Vision, Tool use, Streaming, OpenAI API, Thinking, Coding, 1M context

Practical Cost Estimator (ST / VND)

Token VolumeEstimated Cost (ST)VND Equivalent
10,000 tokens (10K)60 ST60 VNĐ
100,000 tokens (100K)600 ST600 VNĐ
1,000,000 tokens (1M)6,000 ST6,000 VNĐ
10,000,000 tokens (10M)60,000 ST60,000 VNĐ
VolumeEstimated Cost (ST)VND Equivalent
10 requests9,000 ST9,000 VNĐ
100 requests90,000 ST90,000 VNĐ
1,000 requests900,000 ST900,000 VNĐ
10,000 requests9,000,000 ST9,000,000 VNĐ

Integration Snippets: cURL, Python, TypeScript & Anthropic / Claude Code

cURL

curl https://apistorehub.com/v1/chat/completions \
  -H "Authorization: Bearer sk-ash-your_key" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.4","messages":[{"role":"user","content":"Hello"}]}'

Python SDK

import os
from openai import OpenAI

client = OpenAI(base_url="https://apistorehub.com/v1", api_key=os.environ["API_KEY"])
resp = client.chat.completions.create(
    model="glm-5.4",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

TypeScript SDK

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://apistorehub.com/v1", apiKey: process.env.API_KEY });
const res = await client.chat.completions.create({
  model: "glm-5.4",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(res.choices[0].message.content);

Anthropic / Claude Code & CLI

export OPENAI_BASE_URL="https://apistorehub.com/v1"
export OPENAI_API_KEY="sk-ash-your_key"
export ANTHROPIC_BASE_URL="https://apistorehub.com"
export ANTHROPIC_AUTH_TOKEN="sk-ash-your_key"
export MODEL_ID="glm-5.4"

Model FAQ

How much does GLM 5.4 API cost on API Store Hub?
GLM 5.4 is live across 2 lane variant(s) starting from 6,000 ST/1Mトークン (1 VND = 1 ST), settled accurately to actual usage.
What context window and protocol does GLM 5.4 support?
GLM 5.4 (Zhipu GLM) provides 1M context over /v1/chat/completions (OpenAI Chat Completions & Responses API) and works with Cursor, Codex CLI, Cline, Roo Code, Continue, Open WebUI, Dify, n8n, OpenAI SDK.
How do I integrate GLM 5.4 with Python, TypeScript, or Claude Code?
Set base_url to https://apistorehub.com/v1 (OpenAI SDK) or https://apistorehub.com (Anthropic SDK / Claude Code), pass model="glm-5.4", and authenticate with a sk-ash- key.
Does GLM 5.4 share one ST credit balance with other AI models?
Yes. Every model on API Store Hub shares one prepaid ST credit balance and a single API key.