glm-4.6v
Z.AI
视觉增强版本,兼顾图像理解与文本推理,适合多模态输入场景。
$0.255/ M
$0.765/ M
$0.0467/ 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.
Input price
Market: $0.574
/ M
Output price
Market: $2.294
/ M
Cache read
Market: $0.1149
/ M
Cache write
/ M
Input
Text
Output
Text
{
"model": "zai/glm-4.6",
"messages": [
{
"role": "user",
"content": "Hello! Please introduce yourself first, including your main capabilities and best use cases, and give a short usage example."
}
],
"stream": false
}{}API
Drop-in code to call this model with EasyAPI's OpenAI-compatible API.
Create an API key from your dashboard and set it as an environment variable:
Replace sk-xxxxxxxx with your API token from the console (Bearer token).
Create API tokenexport EASYAPI_API_KEY=sk-xxxxxxxxUse zai/glm-4.6 with the EasyAPI API:
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!"
}
]
}'Add "stream": true to your request body to receive responses as server-sent events:
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}'Sends a chat completion request. Supports streaming and non-streaming modes.
https://token.easyapi.com/v1/chat/completionsBearer $EASYAPI_API_KEYapplication/jsonzai/glm-4.6Send a chat completion request, with streaming or non-streaming responses. Docs
https://token.easyapi.com/v1/modelsBearer $EASYAPI_API_KEYList the models available to the current account. Docs
| Name | Type | Default | Description |
|---|---|---|---|
model | string | — | Model ID, e.g. openai/gpt-4o or anthropic/claude-3-5-sonnet |
messages | array | — | List of conversation messages, each with role and content |
stream | boolean | false | When true, the response is streamed via SSE |
temperature | float | 1 | Sampling temperature; higher values are more random |
max_tokens | integer | — | Maximum number of tokens generated in a single reply |
top_p | float | 1 | Nucleus sampling; limits the cumulative probability of candidate tokens |
frequency_penalty | float | 0 | Frequency penalty; reduces repeated wording |
presence_penalty | float | 0 | Presence penalty; encourages new topics |
Official OpenAI and other SDKs work by swapping the base URL. See integration guide
Z.AI
视觉增强版本,兼顾图像理解与文本推理,适合多模态输入场景。
$0.255/ M
$0.765/ M
$0.0467/ M
$0/ M
Z.AI
综合能力均衡,中文理解与推理表现较好,通用任务适配面广。
$0.5015/ M
$1.9975/ M
$0.4675/ M
$0/ M
Z.AI
超快中文处理,极其便宜。
$0.085/ M
$0.3655/ M
$0.0085/ M
$0/ M
Z.AI
有竞争力的通用中文模型。
$0.748/ M
$2.7455/ M
$0.1462/ M
$0/ M