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)| 入力 / 1M tokens | $1.40 |
| 出力 / 1M tokens | $4.40 |
| キャッシュ読み取り / 1M | $0.260 |
| 通貨 | USD |