Model families
Create a free accountBrowse all models
GLM API
The GLM family from Z.ai — including the Air and full variants — through one OpenAI-compatible endpoint. Strong open models for agents and coding at pay-as-you-go prices.
9 models1 free at $0OpenAI- & Anthropic-compatiblePay-as-you-go
| Model | Tier | Context | Price in / out (1M) | |
|---|---|---|---|---|
| Glm 4 | Paid | — | $0.06 / $0.27 | View |
| Glm 4.5 | Paid | — | $0.70 / $2.40 | View |
| Glm 4.5 Air | Paid | — | $0.09 / $0.24 | View |
| Glm 4.6 | Paid | — | $0.45 / $1.65 | View |
| Glm 4.7 | Paid | — | $0.70 / $2.40 | View |
| Glm 4.7 Flash | Free | 131K | $0.20 / $0.20 | View |
| Glm 5 | Paid | 200K | $0.80 / $2.90 | View |
| Glm 5.1 | Paid | — | $0.80 / $2.40 | View |
| Glm 5.2 | Paid | — | $1.05 / $3.30 | View |
Call GLM in three lines
Same code as the OpenAI SDK — change the base URL and key, pick a model id:
from openai import OpenAI
client = OpenAI(
base_url="https://api.airforce/v1",
api_key="YOUR_KEY",
)
resp = client.chat.completions.create(
model="glm-4",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)Frequently asked questions
- How do I use GLM models through Api.Airforce?
- Point any OpenAI-compatible client at https://api.airforce/v1 and set the model id (for example "glm-4"). Your existing OpenAI SDK works unchanged — you only swap the base URL and API key. The same key also speaks the Anthropic Messages API.
- Are any GLM models free?
- Yes — 1 of the 9 GLM models is on the free tier and callable at $0 (for example Glm 4.7 Flash). A free account needs no credit card; the remaining models are pay-as-you-go.
- How much do GLM models cost on Api.Airforce?
- Billing is pay-as-you-go per token, at rates that sit well below the official APIs. The exact per-model input and output prices are listed in the table above and update automatically as upstream prices change.
- Which GLM models are available?
- Currently 9 GLM models, including Glm 4, Glm 4.5, Glm 4.5 Air. The catalog is refreshed as new models launch, so the list above is always current.