Model families

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
ModelTierContextPrice in / out (1M)
Glm 4Paid$0.06 / $0.27View
Glm 4.5Paid$0.70 / $2.40View
Glm 4.5 AirPaid$0.09 / $0.24View
Glm 4.6Paid$0.45 / $1.65View
Glm 4.7Paid$0.70 / $2.40View
Glm 4.7 FlashFree131K$0.20 / $0.20View
Glm 5Paid200K$0.80 / $2.90View
Glm 5.1Paid$0.80 / $2.40View
Glm 5.2Paid$1.05 / $3.30View

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.
Create a free accountBrowse all models