Zhipu GLM

Glm 4.6 API

CN Zhipu GLM
ลองใช้ใน Playground → รับคีย์ API

Glm 4.6 เป็นโมเดลเอนกประสงค์จาก Zhipu GLM ให้บริการผ่าน MeshTok unified API

การให้เหตุผลเครื่องมือJSON

ราคา (รายการอย่างเป็นทางการ ต่อ 1M โทเค็น)

อินพุต
$0.29/M
เอาต์พุต
$1.14/M

ข้อมูลจำเพาะ

หน้าต่างบริบท200K โทเค็น รูปแบบอินพุตข้อความ สตรีมมิ่งใช่ APIเข้ากันได้กับ OpenAI

วิธีใช้ Glm 4.6

เปลี่ยนแทน OpenAI ได้ทันที แค่เปลี่ยน base_url และ model เท่านั้น

# Python - pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://meshtok.com/v1",
    api_key="sk-your-MeshTok-key",
)

resp = client.chat.completions.create(
    model="bigmodel/glm-4.6",
    messages=[{"role":"user","content":"Hello!"}],
)
print(resp.choices[0].message.content)
# cURL
curl https://meshtok.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-MeshTok-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"bigmodel/glm-4.6","messages":[{"role":"user","content":"Hello!"}]}'

โมเดลที่เกี่ยวข้อง

โมเดลอื่นๆ ที่คุณอาจสนใจ