204.8K 上下文旗舰,支持工具调用。
| Item | Price | Notes |
|---|---|---|
| Input (uncached) | $0.57 / 1M tokens | Billed by input tokens |
| Cache write | — | Shown for models with context caching |
| Cache read | $0.00 / 1M tokens | Billed at this rate on cache hits |
| Output | $2.58 / 1M tokens | Billed by generated tokens |
from openai import OpenAI
client = OpenAI(
api_key="sk-runai-xxxxxxxx",
base_url="https://ai.runmailx.com/v1",
)
resp = client.chat.completions.create(
model="zai-org/glm-5",
messages=[{"role": "user", "content": "Hello, introduce yourself"}],
)
print(resp.model) # zai-org/glm-5