GLM-4.6
by zai · family glm
Facts
| Release date | 2025-09-30 |
|---|---|
| Retired date | — |
| Knowledge cutoff | — |
| Context (max) | 200,000 |
| Max output | — |
| Modalities | text, image → text |
| Aliases | — |
| Open weights | yes (zai-org/GLM-4.6) |
| Description | Hybrid thinking, on by default, disableable via thinking.type. |
Unknown values are shown as —.
Intelligence Index v4.1.1: 29 · Reasoning · Source: Artificial Analysis (accessed 2026-08-20)
Offerings
| Provider | Wire ID | Variant | Endpoint | Protocol | Status | Price (USD / Mtok) | Reasoning |
|---|---|---|---|---|---|---|---|
| IO Intelligence (io.net) | zai-org/GLM-4.6 | chat | openai-chat | ga | 0.54 / 2.07 | effort · default on · returns reasoning_content | |
| OpenRouter | z-ai/glm-4.6 | chat-completions | openai-chat | ga | 0.50 / 2.00 | effort · default on · returns reasoning_content · round-trips reasoning_content | |
| Z.ai | glm-4.6 | chat-completions | openai-chat | ga | 0.60 / 2.20 | toggle · default on · returns reasoning_content · round-trips reasoning_content | |
| Z.ai GLM Coding Plan | glm-4.6 | coding-chat-completions | openai-chat | ga | — | toggle · default on · returns reasoning_content · round-trips reasoning_content |
Reasoning controls
IO Intelligence (io.net)· zai-org/GLM-4.6· chat effort
reasoning.effort nonelowmediumhigh● Default not documented — verify.
effort · default on · returns reasoning_content
OpenRouter· z-ai/glm-4.6· chat-completions effort
reasoning.effort nonelowmedium●highxhighmax
effort · default on · returns reasoning_content · round-trips reasoning_content
Z.ai· glm-4.6· chat-completions toggle
thinking.type on enabled · off disabled
toggle · default on · returns reasoning_content · round-trips reasoning_content
Z.ai GLM Coding Plan· glm-4.6· coding-chat-completions toggle
thinking.type on enabled · off disabled
toggle · default on · returns reasoning_content · round-trips reasoning_content
Example requests
IO Intelligence (io.net) · openai-chat · zai-org/GLM-4.6
curl 'https://api.intelligence.io.solutions/api/v1/chat/completions' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "zai-org/GLM-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "high"
}
}'Python (requests)
import requests
resp = requests.post(
"https://api.intelligence.io.solutions/api/v1/chat/completions",
headers={
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
json={
"model": "zai-org/GLM-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "high"
}
},
)
print(resp.json())TypeScript (fetch)
const resp = await fetch("https://api.intelligence.io.solutions/api/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "zai-org/GLM-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "high"
}
}),
})
console.log(await resp.json())OpenRouter · openai-chat · z-ai/glm-4.6
curl 'https://openrouter.ai/api/v1/chat/completions' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "z-ai/glm-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "medium"
}
}'Python (requests)
import requests
resp = requests.post(
"https://openrouter.ai/api/v1/chat/completions",
headers={
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
json={
"model": "z-ai/glm-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "medium"
}
},
)
print(resp.json())TypeScript (fetch)
const resp = await fetch("https://openrouter.ai/api/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "z-ai/glm-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "medium"
}
}),
})
console.log(await resp.json())- ⚠ Responses include
reasoning_contentartifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).
Z.ai · openai-chat · glm-4.6
curl 'https://api.z.ai/api/paas/v4/chat/completions' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "glm-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"thinking": {
"type": "enabled"
}
}'Python (requests)
import requests
resp = requests.post(
"https://api.z.ai/api/paas/v4/chat/completions",
headers={
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
json={
"model": "glm-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"thinking": {
"type": "enabled"
}
},
)
print(resp.json())TypeScript (fetch)
const resp = await fetch("https://api.z.ai/api/paas/v4/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "glm-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"thinking": {
"type": "enabled"
}
}),
})
console.log(await resp.json())- ⚠ Responses include
reasoning_contentartifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).
Z.ai GLM Coding Plan · openai-chat · glm-4.6
curl 'https://api.z.ai/api/coding/paas/v4/chat/completions' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "glm-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"thinking": {
"type": "enabled"
}
}'Python (requests)
import requests
resp = requests.post(
"https://api.z.ai/api/coding/paas/v4/chat/completions",
headers={
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
json={
"model": "glm-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"thinking": {
"type": "enabled"
}
},
)
print(resp.json())TypeScript (fetch)
const resp = await fetch("https://api.z.ai/api/coding/paas/v4/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "glm-4.6",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"thinking": {
"type": "enabled"
}
}),
})
console.log(await resp.json())- ⚠ Responses include
reasoning_contentartifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).