Zhipu AI: glm-4-airx
glm-4-airx is a text and chat model from Zhipu AI, available through one freeaiapi.ai API key and billed from your prepaid balance.
Use GLM models for coding and agents through one OpenAI-compatible endpoint.
Live prices next to the official list price
glm-4-airx is a text and chat model from Zhipu AI, available through one freeaiapi.ai API key and billed from your prepaid balance.
glm-4-flash is a text and chat model from Zhipu AI, available through one freeaiapi.ai API key and billed from your prepaid balance.
glm-4-long is a text and chat model from Zhipu AI, available through one freeaiapi.ai API key and billed from your prepaid balance.
glm-4.5 is a text and chat model from Zhipu AI, available through one freeaiapi.ai API key and billed from your prepaid balance.
glm-4.5-air is a text and chat model from Zhipu AI, available through one freeaiapi.ai API key and billed from your prepaid balance.
glm-5 is a text and chat model from Zhipu AI, available through one freeaiapi.ai API key and billed from your prepaid balance.
glm-5.1 is a text and chat model from Zhipu AI, available through one freeaiapi.ai API key and billed from your prepaid balance.
glm-5.2 is a text and chat model from Zhipu AI, available through one freeaiapi.ai API key and billed from your prepaid balance.
GLM-5.3 is Zhipu's flagship model, with clear gains in complex software engineering and agent tasks delivered through post-training on the GLM-5.2 base.
GLM-5.3 Flash is an open-weight model that combines sparse and linear attention to cut the cost of long-context work while keeping strong coding performance.
Change the base URL and key — nothing else
curl https://api.freeaiapi.ai/v1/chat/completions \
-H "Authorization: Bearer $FREEAIAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4-airx",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(
base_url="https://api.freeaiapi.ai/v1",
api_key="YOUR_FREEAIAPI_KEY",
)
response = client.chat.completions.create(
model="glm-4-airx",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.freeaiapi.ai/v1",
apiKey: process.env.FREEAIAPI_KEY,
});
const response = await client.chat.completions.create({
model: "glm-4-airx",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);No. freeaiapi.ai is an independent API gateway. You get one OpenAI-compatible key that routes to Zhipu AI and other models, billed from a prepaid balance.
No. Sign up, connect Telegram and join our channel to unlock $1 trial credit. Create an API key and make your first request. Add funds when you want to keep going.
Yes. Point any OpenAI SDK or OpenAI-compatible tool at https://api.freeaiapi.ai/v1 and use your freeaiapi.ai key. No code changes beyond the base URL and key.
No card required. One key for every model, up to 30% below official pricing.
Not affiliated with Zhipu AI. GLM is a trademark of Zhipu AI.