Z.ai's strongest coding-and-agent model in the GLM-5 line; supports streaming tool calls and deep th…
from openai import OpenAI
client = OpenAI(
base_url="https://api.orcarouter.ai/v1",
api_key="$ORCAROUTER_API_KEY",
)
response = client.chat.completions.create(
model="z-ai/glm-5.1",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)| Entrada / 1M tokens | $1.40 |
| Salida / 1M tokens | $4.40 |
| Lectura caché / 1M | $0.260 |
| Moneda | USD |