Zhipu AI
Free
GLM-4.7 Flash
Zhipu AI GLM-4.7 Flash, a low-latency high-throughput model for real-time chat and lightweight tasks, free to use
Context Length200K tokens
Model TypeLarge Language Model (LLM)
Special CapabilitiesFast response, tool calling
Pricing & Specs
💰 Pricing
FreeUnlimited usage at $0
Input$0 / M tokens
Output$0 / M tokens
⚙️ Specs
Context Length200K tokens
Model TypeLarge Language Model (LLM)
Special CapabilitiesFast response, tool calling
Cost AdvantageCompletely Free
API Examples
Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.xairouter.com/v1",
api_key="your-api-key"
)
response = client.chat.completions.create(
model="glm-4.7-flash",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)cURL
curl https://api.xairouter.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "glm-4.7-flash",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'