Z Ai โมเดล
GLM 5.2 CN
GLM 5.2 CN เปรียบเทียบราคา API ผู้ให้บริการ ความยาว context ความสามารถ use case latency และทางเลือกที่ใกล้เคียง General chat via Z Ai, API workloads. $0.171 / 1M tokens / $0.596 / 1M tokens. — tokens.
Streaming
GLM 5.2 CN ใน NextModel คืออะไร?
GLM 5.2 CN เปรียบเทียบราคา API ผู้ให้บริการ ความยาว context ความสามารถ use case latency และทางเลือกที่ใกล้เคียง General chat via Z Ai, API workloads. $0.171 / 1M tokens / $0.596 / 1M tokens. — tokens.
use case ที่เหมาะ
- General chat via Z Ai
- API workloads
ตัวอย่างโค้ดที่เข้ากันได้กับ OpenAI
คงรูปแบบ OpenAI SDK เดิม ชี้ base_url ไปที่ NextModel และใช้ ID จากแคตตาล็อก z-ai--glm-5.2-cn.
Python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.nextmodel.app/v1"
)
resp = client.chat.completions.create(
model="z-ai/glm-5.2-cn",
messages=[{"role": "user", "content": "Hello from NextModel"}]
)
print(resp.choices[0].message.content)ทางเลือกที่คล้ายกัน
Z AiCatalog
GLM 5 CN
80Available through the NextModel gateway via Z Ai.
Best forGeneral chat via Z Ai, API workloads
RoutingConfigured
Streaming
Platform curatedNextModel gateway catalog (Go origin)
Z AiCatalog
Available through the NextModel gateway via Z Ai.
Best forGeneral chat via Z Ai, API workloads
RoutingConfigured
Streaming
Platform curatedNextModel gateway catalog (Go origin)
MoonshotaiCatalog
Available through the NextModel gateway via Moonshotai.
Best forGeneral chat via Moonshotai, API workloads
RoutingConfigured
Streaming
Platform curatedNextModel gateway catalog (Go origin)
FAQ