Z.ai (Zhipu) · API pricing
GLM API pricing
3 GLM models on one OpenAI-compatible API, billed per token from a prepaid balance — no subscription. From €0.0689 per 100k input tokens and €0.2268 per 100k output tokens, margin and VAT included. GLM-5.2 and GLM-5.3 run on EU-sovereign infrastructure; GLM-5.3 Flash is fast access, through US providers.
- Models live
- 3
- Input from
- €0.0689
- per 100k tokens
- Output from
- €0.2268
- per 100k tokens
- Largest context
- 1M
- GLM-5.3 Flash
GLM API pricing per model
per 100k tokens · margin and VAT included · from our live catalog when this page is built
| Model | Input | Output | Cached in | Context | Max output | Jurisdiction |
|---|---|---|---|---|---|---|
GLM-5.3 Flashglm-5.3-flashtoolsvision | €0.0689 | €0.2268 | — | 1M | — | Fast access (US) |
GLM-5.2glm-5.2tools | €0.3024 | €0.9240 | — | 256K | 16K | EU sovereign |
GLM-5.3glm-5.3tools | €0.3024 | €0.9240 | €0.0420 | 512K | 80K | EU sovereign |
Input, output and cached input are the prices debited from your prepaid balance per 100,000 tokens, margin and VAT included. Context is the window as served on Frontière AI; max output is the provider's cap on max_tokens (— when it sets none we know of). Tool calling is measured with a real call per model.
Where each GLM model runs, and what GLM's own API does with your data →GLM API cost calculator
Pick a model and a workload, or type your own token counts: the estimate uses the prices in the table above, margin and VAT included.
Example workload
Roughly 1,000 tokens ≈ 750 English words.
No discounted cache rate on this model: every input token is billed at the input rate.
Per request
€0.0078
Per day
€7.77
Per month
€233.10
30 days
A €10 top-up covers about 1,287 requests · GLM-5.2
Where the money goes
- Input€136.08 · 58%
- Output€97.02 · 42%
Estimate, margin and VAT included, from the prices on this page. You are billed on the tokens the provider reports for each call, debited from a prepaid balance — no subscription.
Same workload on every model
| Model | Per request | Per month | |
|---|---|---|---|
| GLM-5.3 FlashFast access (US) | €0.0018 | €54.81 | |
| GLM-5.2EU sovereign | €0.0078 | €233.10 | Selected |
| GLM-5.3EU sovereign | €0.0078 | €233.10 |
Call GLM models
The API is OpenAI-compatible: keep your SDK, change base_url and the key, and pass the model id. One key covers the whole catalog.
curl https://getfrontiereai.eu/api/v1/chat/completions \
-H "Authorization: Bearer $FRONTIERE_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.2",
"messages": [{"role": "user", "content": "Bonjour"}]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://getfrontiereai.eu/api/v1",
api_key=os.environ["FRONTIERE_KEY"],
)
reply = client.chat.completions.create(
model="glm-5.2",
messages=[{"role": "user", "content": "Bonjour"}],
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://getfrontiereai.eu/api/v1",
apiKey: process.env.FRONTIERE_KEY,
});
const reply = await client.chat.completions.create({
model: "glm-5.2",
messages: [{ role: "user", content: "Bonjour" }],
});
console.log(reply.choices[0].message.content);Frequently asked
How much does the GLM API cost?
On Frontière AI, GLM models cost from €0.0689 to €0.3024 per 100,000 input tokens and from €0.2268 to €0.924 per 100,000 output tokens, depending on the model — margin and VAT included, that is the amount debited from your prepaid balance. The table lists each model's price; the calculator turns it into a monthly cost for your workload.
Which GLM model is the cheapest?
GLM-5.3 Flash, the cheapest on both input (€0.0689) and output (€0.2268) per 100k tokens.
Which GLM model has the largest context window?
GLM-5.3 Flash, with 1M tokens of context as served on Frontière AI.
Is the GLM API hosted in Europe on Frontière AI?
Partly. Scaleway (France) for GLM-5.2 and AKI.IO (Germany) for GLM-5.3: these are labeled EU sovereign. GLM-5.3 Flash is served by US providers and labeled fast access — the API flags it before you call.
Is there a subscription or a minimum spend?
No subscription. You top up a prepaid balance from €10 and each call is debited at the per-token price. Calls are refused once the balance reaches zero; a call already running can take it slightly below — deducted from your next top-up.
Do I need to change my code to call GLM models?
No, if your code already uses an OpenAI SDK: point base_url at https://getfrontiereai.eu/api/v1, use a Frontière AI key and pass the model id, for example “glm-5.2”. Streaming and tool calling are relayed as-is.
How are cached input tokens billed?
GLM-5.3 has a discounted rate for prompt tokens the provider serves from its cache (€0.042 per 100k tokens on GLM-5.3). The provider reports these tokens on each call and we bill them at that rate; on a model without a cache rate, every input token is billed at the input rate.
Other providers
Per-token prices for every publisher in our catalog
All model prices on one page →Start calling GLM in minutes
Create an account, top up €10, change two lines of code.