GLM 5.3 Prime API pricing
GLM 5.3 Prime is a language model from Z.ai with a 1M-token context window. On FastInfra it costs $3.02 per million input tokens and $9.50 per million output tokens, billed per token from prepaid credit with no subscription. It supports tool calling, structured JSON output and adjustable reasoning. It was released in September 2026. Call it as "z-ai/glm-5.3-prime" from any OpenAI SDK by changing the base URL and API key.
Prices synced November 3, 2026 · Model ID z-ai/glm-5.3-prime
GLM 5.3 Prime specs and pricing
GLM 5.3 Prime API pricing per token
You pay for prompt tokens at the input rate and generated tokens at the output rate. No subscription, seat fee or minimum — credit never expires.
| Rate | Input / 1M tokens | Output / 1M tokens | Input / 1K tokens |
|---|---|---|---|
| Standard (real-time) | $3.02 | $9.50 | $0.003024 |
What GLM 5.3 Prime costs in practice
Worked examples at the standard rate above. Real token counts depend on your prompts.
| Workload | Tokens | Cost |
|---|---|---|
| 1,000 chatbot replies | 1,500 input + 400 output tokens each | $8.34 |
| Summarise a 100-page report | ≈60,000 input + 1,500 output tokens | $0.20 |
| RAG answers over your docs, 10,000 queries | 4,000 input + 300 output tokens each | $149 |
| Coding-agent session | ≈250,000 input + 25,000 output tokens | $0.99 |
| 1M input + 1M output tokens | the per-million list rates combined | $12.53 |
GLM 5.3 Prime cost calculator
Enter your traffic to estimate daily and monthly spend at the live FastInfra rate.
How to call the GLM 5.3 Prime API
Works with the official OpenAI SDKs — change the base URL and API key only. One key covers every model on FastInfra.
| Field | Value |
|---|---|
| Model ID | z-ai/glm-5.3-prime |
| Capability | Chat |
| Base URL | https://api.fastinfra.ai/v1 |
| Primary endpoint | POST https://api.fastinfra.ai/v1/chat/completions |
| Auth | Authorization: Bearer YOUR_API_KEY |
| OpenAI Chat SDK | Yes — set base_url to the Base URL |
| Validate model id | GET https://api.fastinfra.ai/v1/models/z-ai/glm-5.3-prime |
| Docs | Integration reference |
Point the OpenAI SDK at the Base URL above with your FastInfra API key.
Python
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.fastinfra.ai/v1")
stream = client.chat.completions.create(
model="z-ai/glm-5.3-prime",
messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")
Node.js
import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.FASTINFRA_API_KEY, baseURL: "https://api.fastinfra.ai/v1" });
const response = await client.chat.completions.create({
model: "z-ai/glm-5.3-prime",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);
curl
curl https://api.fastinfra.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-5.3-prime",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Served over 1 independent route. Requests go to the lowest-cost healthy route and fail over automatically if one is unavailable. Live latency and uptime are on the status page.
GLM 5.3 Prime vs alternatives
Live FastInfra prices per 1M tokens. Every model uses the same API key, so switching is a one-line change.
| Model | Input | Output | Context | |
|---|---|---|---|---|
| GLM 5.3 Prime (this page) | $3.02 | $9.50 | 1M | |
| Claude Opus 5 | $5.40 | $27.00 | 1M | Compare |
| Claude Sonnet 5 | $2.16 | $10.80 | 1M | Compare |
| Claude Haiku 5.5 | $0.11 | $0.54 | 1M | Compare |
| Claude Fable 5.1 | $10.80 | $54.00 | 1M | Compare |
| GPT-5.5 | $5.40 | $32.40 | 1.05M | Compare |
| GLM 5.3 Flash | $0.03 | $0.10 | 1M | Compare |
| GLM 4.7 Flash | $0.07 | $0.43 | 200K | Compare |
GLM 5.3 Prime API — frequently asked questions
How much does the GLM 5.3 Prime API cost?
On FastInfra, GLM 5.3 Prime (z-ai/glm-5.3-prime) costs $3.024/1M input, $9.504/1M output tokens. Billing is per token used from prepaid credit, with no subscription or minimum spend.
What is the GLM 5.3 Prime context window?
GLM 5.3 Prime accepts up to 1,000,000 tokens of context (about 1M) and can generate up to 131,072 output tokens per response. Prompt and response tokens share that window.
Is GLM 5.3 Prime compatible with the OpenAI SDK?
Yes. Point the OpenAI Python or Node SDK at https://api.fastinfra.ai/v1, use a FastInfra API key and set model to "z-ai/glm-5.3-prime". Chat completions, streaming, tool calling and JSON structured output use the same request shape.
Does GLM 5.3 Prime support tool calling and vision?
GLM 5.3 Prime supports tool (function) calling, JSON structured output and configurable reasoning. It accepts text input only.
What is a cheaper alternative to GLM 5.3 Prime?
Claude Haiku 5.5 costs $0.108/1M input and $0.54/1M output tokens on FastInfra. Both use the same API key, so switching is a one-line change to the model string.
Start using GLM 5.3 Prime today
Create a free account, add credit from $5 and make your first GLM 5.3 Prime request in under five minutes. Compare every model on the pricing page.