← Về danh mục
Lấy API key
GLM-5.2
glm-5.2INPUT / 1M$0.182
OUTPUT / 1M$0.572
ĐỌC CACHE / 1M—model này không hỗ trợ caching
CONTEXT1Mtoken mỗi request
Gọi model này
from openai import OpenAI
client = OpenAI(
api_key="sk-ak-...",
base_url="https://apikey.sh/v1",
)
resp = client.chat.completions.create(
model="glm-5.2",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)Thông số
Nhà cung cấpZhipu
NhómCân bằng
Context1M tokens
Output tối đa131.1K
Endpoint/v1/chat/completions
toolsreasoningstreaming