GLM 5.1 is a efficient model from Friendli with a 203K context window, supporting function calling. Available through ANT's unified API.
Limited routing data available for GLM 5.1. 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="friendli/zai-org/GLM-5.1",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)