glm-4.6v
Z.AI
Multimodal model with strong image + text understanding.
¥1.7085/ M
¥5.1255/ M
¥0.3132/ M
¥0/ M
Text-only model in the GLM-4 family with improved coding benchmarks and tool calls during reasoning, suited for software development and agent workflows.
Giá đầu vào
Thị trường: ¥3.8458
/ M
Giá đầu ra
Thị trường: ¥15.3698
/ M
Đọc cache
Thị trường: ¥0.7705
/ M
Ghi cache
/ M
Đầu vào
Văn bản
Đầu ra
Văn bản
{
"model": "zai/glm-4.6",
"messages": [
{
"role": "user",
"content": "Xin chào! Trước tiên hãy giới thiệu về bản thân, bao gồm năng lực chính và các tình huống phù hợp, kèm một ví dụ sử dụng ngắn."
}
],
"stream": false
}{}API
Mã sẵn sàng để gọi mô hình này qua API tương thích OpenAI của EasyAPI.
Tạo API token trong console và đặt làm biến môi trường:
Thay sk-xxxxxxxx bằng mã API từ console (Bearer Token).
Tạo API tokenexport EASYAPI_API_KEY=sk-xxxxxxxxDùng zai/glm-4.6 với API EasyAPI:
curl https://token.easyapi.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{
"model": "zai/glm-4.6",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'Thêm "stream": true vào body để nhận phản hồi qua SSE:
curl -N https://token.easyapi.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{"model":"zai/glm-4.6","messages":[{"role":"user","content":"Hello!"}],"stream":true}'Gửi yêu cầu chat completion. Hỗ trợ streaming và non-streaming.
https://token.easyapi.com/v1/chat/completionsBearer $EASYAPI_API_KEYapplication/jsonzai/glm-4.6Gửi yêu cầu chat completion, hỗ trợ cả phản hồi streaming và không streaming. Tài liệu
https://token.easyapi.com/v1/modelsBearer $EASYAPI_API_KEYLấy danh sách mô hình khả dụng cho tài khoản hiện tại. Tài liệu
| Tên | Kiểu | Mặc định | Mô tả |
|---|---|---|---|
model | string | — | ID mô hình, ví dụ openai/gpt-4o hoặc anthropic/claude-3-5-sonnet |
messages | array | — | Danh sách tin nhắn hội thoại, mỗi mục gồm role và content |
stream | boolean | false | Khi đặt true, phản hồi được stream qua SSE |
temperature | float | 1 | Nhiệt độ lấy mẫu; càng cao càng ngẫu nhiên |
max_tokens | integer | — | Số token tối đa được tạo trong một phản hồi |
top_p | float | 1 | Nucleus sampling; giới hạn xác suất tích lũy của các token ứng viên |
frequency_penalty | float | 0 | Phạt tần suất; giảm lặp từ |
presence_penalty | float | 0 | Phạt hiện diện; khuyến khích chủ đề mới |
SDK chính thức OpenAI và khác hoạt động khi đổi base URL. Xem hướng dẫn tích hợp
Z.AI
Multimodal model with strong image + text understanding.
¥1.7085/ M
¥5.1255/ M
¥0.3132/ M
¥0/ M
Z.AI
Balanced model with strong Chinese understanding.
¥3.36/ M
¥13.3833/ M
¥3.1322/ M
¥0/ M
Z.AI
Ultra-fast for Chinese. Very cheap.
¥0.5695/ M
¥2.4489/ M
¥0.057/ M
¥0/ M
Z.AI
Competitive general-purpose Chinese model.
¥5.0116/ M
¥18.3949/ M
¥0.9795/ M
¥0/ M