GLM 4.7 Flash is a efficient model from Zai with a 128K context window. Available for free through ANT routing.
Limited routing data available for GLM 4.7 Flash. Intelligence insights will appear as more requests are routed through ANT.
from openai import OpenAI
client = OpenAI(
base_url="https://api.antbase.ai/v1",
api_key="YOUR_ANT_API_KEY",
)
response = client.chat.completions.create(
model="zai/glm-4.7-flash",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)