Z Ai โมเดล

GLM 5 CN

GLM 5 CN เปรียบเทียบราคา API ผู้ให้บริการ ความยาว context ความสามารถ use case latency และทางเลือกที่ใกล้เคียง General chat via Z Ai, API workloads. $0.084 / 1M tokens / $0.373 / 1M tokens. — tokens.

Z AiPlatform curatedCatalog
Streaming
ราคา input$0.084 / 1M tokens
ราคา output$0.373 / 1M tokens
ความยาว context— tokens
เอาต์พุตสูงสุด8.2k tokens
Input lengthInput / 1MOutput / 1MCache hit / 1M
— - 32k$0.084$0.373$0.017
32k - 200k$0.124$0.457$0.026

GLM 5 CN ใน NextModel คืออะไร?

GLM 5 CN เปรียบเทียบราคา API ผู้ให้บริการ ความยาว context ความสามารถ use case latency และทางเลือกที่ใกล้เคียง General chat via Z Ai, API workloads. $0.084 / 1M tokens / $0.373 / 1M tokens. — tokens.

use case ที่เหมาะ

  • General chat via Z Ai
  • API workloads

ตัวอย่างโค้ดที่เข้ากันได้กับ OpenAI

คงรูปแบบ OpenAI SDK เดิม ชี้ base_url ไปที่ NextModel และใช้ ID จากแคตตาล็อก z-ai--glm-5-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-cn",
    messages=[{"role": "user", "content": "Hello from NextModel"}]
)

print(resp.choices[0].message.content)

ทางเลือกที่คล้ายกัน

Z AiCatalog

Available through the NextModel gateway via Z Ai.

Starting at $0.12 / 1M tokensInputStarting at $0.479 / 1M tokensOutputContext
Best forGeneral chat via Z Ai, API workloads
RoutingConfigured
Streaming
Platform curatedNextModel gateway catalog (Go origin)
View details
Z AiCatalog

Available through the NextModel gateway via Z Ai.

$0.171 / 1M tokensInput$0.596 / 1M tokensOutputContext
Best forGeneral chat via Z Ai, API workloads
RoutingConfigured
Streaming
Platform curatedNextModel gateway catalog (Go origin)
View details
MoonshotaiCatalog

Available through the NextModel gateway via Moonshotai.

$0.084 / 1M tokensInput$0.437 / 1M tokensOutputContext
Best forGeneral chat via Moonshotai, API workloads
RoutingConfigured
Streaming
Platform curatedNextModel gateway catalog (Go origin)
View details

FAQ

GLM 5 CN FAQ