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.

14 models1 free at $0OpenAI- & Anthropic-compatiblePay-as-you-go
ModelTierContextPrice in / out (1M)
GLM 4Paid$5.58 / $5.62View
GLM 4 AirxPaid$0.58 / $0.62View
GLM 4 FlashPaid$0.04 / $0.14View
GLM 4 LongPaid$0.04 / $0.14View
GLM 4 PlusPaid$0.71 / $0.71View
GLM 4.5Paid$0.69 / $2.77View
GLM 4.5 AirPaid131K$0.20 / $1.33View
GLM 4.5vPaid$0.59 / $1.75View
GLM 4.6Paid$0.45 / $1.65View
GLM 4.7Paid$0.81 / $3.77View
GLM 4.7 FlashFree131K$0.07 / $0.37View
GLM 5Paid200K$0.95 / $3.15View
GLM 5.1Paid$1.15 / $3.96View
GLM 5.2Paid$1.47 / $4.62View

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 14 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 14 GLM models, including GLM 4, GLM 4 Airx, GLM 4 Flash. The catalog is refreshed as new models launch, so the list above is always current.
Create a free accountBrowse all models