Model Metadata
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; temperature: Yes; top_p: Yes; top_k: Yes
- limit
- context: 1,000,000; output: 131,072
- weights
- label: Hugging Face; url: https://huggingface.co/zai-org/GLM-5.2
Provider Variants 22
Alibaba glm-5.2
Context 1,000,000 · Output 131,072
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; default: type: effort; value: high; toggle: Yes; effort: high, max; cache: implicit: min_tokens: 1,024; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No; stream_usage: Yes
- limit
- context: 1,000,000; output: 131,072
- id
- glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://dashscope-intl.aliyuncs.com/compatible-mode/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/alibaba/chat; compatibility: reasoning_field: reasoning_content; capabilities: system_updates: Yes; tools: choice: auto, none; updates: No; responses: base_url: https://dashscope-intl.aliyuncs.com/compatible-mode/v1; sdk: aisdk: @ai-sdk/openai; opencodeai: @opencode/ai/providers/alibaba/responses; capabilities: tools: choice: auto, none; updates: No; messages: base_url: https://dashscope-intl.aliyuncs.com/apps/anthropic/v1; sdk: aisdk: @ai-sdk/anthropic; opencodeai: @opencode/ai/providers/alibaba/messages; capabilities: tools: choice: auto, none; updates: No
arcee zai-org/glm-5.2
Context 262,144 · Output 131,072
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: high, max; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No
- limit
- context: 262,144; output: 131,072
- id
- zai-org/glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- status
- beta
- api
- chat-completions: base_url: https://api.arcee.ai/api/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/openai-compatible; compatibility: reasoning_field: reasoning_content; max_tokens_field: max_tokens; capabilities: tools: updates: No
Baseten zai-org/GLM-5.2
Context 1,048,576 · Output 262,144
- name
- GLM 5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text, image; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: none, low, high, max; cache: implicit: Yes; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: Yes; effort_updates: No
- limit
- context: 1,048,576; output: 262,144
- id
- zai-org/GLM-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://inference.baseten.co/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/baseten; compatibility: reasoning_field: reasoning_content; capabilities: tools: updates: No; messages: base_url: https://inference.baseten.co/v1; sdk: aisdk: @ai-sdk/anthropic; opencodeai: @opencode/ai/providers/anthropic-compatible; capabilities: tools: updates: No
Baseten zai-org/GLM-5.2-Fast
Context 1,048,576 · Output 262,144
- name
- GLM 5.2 Fast
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text, image; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: none, low, high, max; cache: implicit: Yes; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: Yes; effort_updates: No
- limit
- context: 1,048,576; output: 262,144
- id
- zai-org/GLM-5.2-Fast
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://inference.baseten.co/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/baseten; compatibility: reasoning_field: reasoning_content; capabilities: tools: updates: No; messages: base_url: https://inference.baseten.co/v1; sdk: aisdk: @ai-sdk/anthropic; opencodeai: @opencode/ai/providers/anthropic-compatible; capabilities: tools: updates: No
cloudflare-ai-gateway workers-ai/@cf/zai-org/glm-5.2
Context Not recorded · Output Not recorded
cloudflare-workers-ai @cf/zai-org/glm-5.2
Context 262,144 · Output 256,000
- name
- Glm 5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: none, high, max; cache: implicit: Yes; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: Yes; effort_updates: No
- limit
- context: 262,144; output: 256,000
- id
- @cf/zai-org/glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/ai/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/cloudflare-workers-ai; capabilities: tools: choice: auto, none, required, tool; updates: No
databricks databricks-glm-5-2
Context 1,000,000 · Output 131,072
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: none, high, max; cache: implicit: Yes; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No; service_tier: priority
- limit
- context: 1,000,000; output: 131,072
- id
- databricks-glm-5-2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://${DATABRICKS_HOST}/ai-gateway/mlflow/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/openai-compatible; compatibility: max_tokens_field: max_tokens; capabilities: tools: updates: No
- experimental
- modes: fast: service_tier: priority; body: service_tier: priority
deepinfra zai-org/GLM-5.2
Context 1,048,576 · Output 32,768
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; toggle: Yes; effort: high, max; cache: implicit: Yes; explicit: ttl: 5m, 1h; min_tokens: 1,024; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No; prompt_cache_key: Yes; service_tier: flex, priority
- limit
- context: 1,048,576; output: 32,768
- id
- zai-org/GLM-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://api.deepinfra.com/v1/openai; sdk: aisdk: @ai-sdk/deepinfra; opencodeai: @opencode/ai/providers/deepinfra; compatibility: reasoning_field: reasoning_content; capabilities: tools: updates: No
Google zai-org/glm-5.2-maas
Context 1,000,000 · Output 64,000
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; toggle: Yes; cache: implicit: min_tokens: 4,096; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No
- limit
- context: 1,000,000; output: 64,000
- id
- zai-org/glm-5.2-maas
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- status
- beta
- api
- chat-completions: base_url: https://${GOOGLE_VERTEX_ENDPOINT}/v1/projects/${GOOGLE_VERTEX_PROJECT}/locations/${GOOGLE_VERTEX_LOCATION}/endpoints/openapi; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/google-vertex/chat; compatibility: reasoning_field: reasoning_content; capabilities: tools: updates: No
huggingface zai-org/GLM-5.2
Context 262,144 · Output 131,072
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No
- limit
- context: 262,144; output: 131,072
- id
- zai-org/GLM-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://router.huggingface.co/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/openai-compatible; compatibility: max_tokens_field: max_tokens; capabilities: tools: updates: No; responses: base_url: https://router.huggingface.co/v1; sdk: aisdk: @ai-sdk/openai; opencodeai: @opencode/ai/providers/openai-compatible/responses; capabilities: tools: updates: No
Mistral glm-5-2
Context 1,048,576 · Output 131,072
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: none, high, max; cache: implicit: min_tokens: 64; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: Yes; effort_updates: No; stream_usage: Yes; prompt_cache_key: Yes
- limit
- context: 1,048,576; output: 131,072
- id
- glm-5-2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- status
- deprecated
- api
- chat-completions: base_url: https://api.mistral.ai/v1; sdk: aisdk: @ai-sdk/mistral; opencodeai: @opencode/ai/providers/mistral; capabilities: tools: strict: Yes; choice: auto, none, required, tool; updates: No
Mistral zai-glm-5-2
Context 1,048,576 · Output 131,072
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: none, high, max; cache: implicit: min_tokens: 64; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: Yes; effort_updates: No; stream_usage: Yes; prompt_cache_key: Yes
- limit
- context: 1,048,576; output: 131,072
- id
- zai-glm-5-2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- status
- deprecated
- api
- chat-completions: base_url: https://api.mistral.ai/v1; sdk: aisdk: @ai-sdk/mistral; opencodeai: @opencode/ai/providers/mistral; capabilities: tools: strict: Yes; choice: auto, none, required, tool; updates: No
model-oracle-ai glm-5.2
Context 1,000,000 · Output 131,072
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: none, high, xhigh; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No
- limit
- context: 1,000,000; output: 131,072
- id
- glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://api.modeloracle.com/api/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/openai-compatible; compatibility: reasoning_field: reasoning_content; capabilities: tools: updates: No
ollama-cloud glm-5.2
Context 1,051,648 · Output 131,072
Amp's provider snapshot overrides input/output limits and image support for this serving path. Other fields use models.dev.
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; toggle: Yes; effort: high, max; cache: implicit: Yes; structured_output: No; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No
- limit
- context: 1,051,648; output: 131,072; input: 920,576
- id
- glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://ollama.com/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/openai-compatible; compatibility: reasoning_field: reasoning_content; max_tokens_field: max_tokens; capabilities: tools: updates: No; responses: base_url: https://ollama.com/v1; sdk: aisdk: @ai-sdk/openai; opencodeai: @opencode/ai/providers/openai-compatible/responses; capabilities: tools: updates: No; messages: base_url: https://ollama.com/v1; sdk: aisdk: @ai-sdk/anthropic; opencodeai: @opencode/ai/providers/anthropic-compatible; capabilities: tools: updates: No
opencode glm-5.2
Context 1,000,000 · Output 131,072
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: high, max; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: Yes; effort_updates: No
- limit
- context: 1,000,000; output: 131,072
- id
- glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://opencode.ai/inference/openai/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/openai-compatible; compatibility: reasoning_field: reasoning_content; capabilities: tools: choice: auto; updates: No
opencode-go glm-5.2
Context 1,003,072 · Output 131,072
Amp's provider snapshot overrides input/output limits and image support for this serving path. Other fields use models.dev.
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: high, max; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: Yes; effort_updates: No
- limit
- context: 1,003,072; output: 131,072; input: 872,000
- id
- glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://opencode.ai/inference/go/openai/v1; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/openai-compatible; compatibility: reasoning_field: reasoning_content; capabilities: tools: choice: auto; updates: No
OpenRouter z-ai/glm-5.2
Context 1,048,576 · Output 128,000
Amp's provider snapshot overrides input/output limits and image support for this serving path. Other fields use models.dev.
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: none, high, xhigh; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No
- limit
- context: 1,048,576; output: 128,000; input: 920,576
- id
- z-ai/glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://openrouter.ai/api/v1; sdk: aisdk: @openrouter/ai-sdk-provider; opencodeai: @opencode/ai/providers/openrouter; compatibility: reasoning_field: reasoning_content; capabilities: system_updates: Yes; tools: choice: auto, none, required, tool; updates: No; responses: base_url: https://openrouter.ai/api/v1; sdk: aisdk: @ai-sdk/openai; opencodeai: @opencode/ai/providers/openai-compatible/responses; capabilities: tools: choice: auto, none, required, tool; updates: No; messages: base_url: https://openrouter.ai/api/v1; sdk: aisdk: @ai-sdk/anthropic; opencodeai: @opencode/ai/providers/anthropic-compatible; capabilities: tools: choice: auto, none, required, tool; updates: No
togetherai zai-org/GLM-5.2
Context 1,048,575 · Output 164,000
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; toggle: Yes; effort: high, max; cache: implicit: Yes; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No; prompt_cache_key: Yes
- limit
- context: 1,048,575; output: 164,000
- id
- zai-org/GLM-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://api.together.xyz/v1; sdk: aisdk: @ai-sdk/togetherai; opencodeai: @opencode/ai/providers/togetherai; compatibility: reasoning_field: reasoning_content; capabilities: tools: updates: No
vercel zai/glm-5.2
Context 1,000,000 · Output 128,000
Amp's provider snapshot overrides input/output limits and image support for this serving path. Other fields use models.dev.
- name
- GLM 5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: none, high, max; cache: implicit: Yes; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No
- limit
- context: 1,000,000; output: 128,000; input: 872,000
- id
- zai/glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://ai-gateway.vercel.sh/v1; sdk: aisdk: @ai-sdk/gateway; opencodeai: @opencode/ai/providers/vercel-ai-gateway; capabilities: system_updates: Yes; tools: choice: auto, none, required, tool; updates: No; responses: base_url: https://ai-gateway.vercel.sh/v1; sdk: aisdk: @ai-sdk/open-responses; opencodeai: @opencode/ai/providers/vercel-ai-gateway/responses; capabilities: tools: choice: auto, none, required, tool; updates: No; messages: base_url: https://ai-gateway.vercel.sh/v1; sdk: aisdk: @ai-sdk/anthropic; opencodeai: @opencode/ai/providers/vercel-ai-gateway/messages; capabilities: tools: choice: auto, none, required, tool; updates: No
vercel zai/glm-5.2-fast
Context 1,000,000 · Output 128,000
Amp's provider snapshot overrides input/output limits and image support for this serving path. Other fields use models.dev.
- name
- GLM 5.2 Fast
- description
- Efficient GLM model for fast reasoning, coding, and agent workflows
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; effort: none, low, medium, high; cache: implicit: Yes; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: Yes; system_updates: No; effort_updates: No
- limit
- context: 1,000,000; output: 128,000; input: 872,000
- id
- zai/glm-5.2-fast
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://ai-gateway.vercel.sh/v1; sdk: aisdk: @ai-sdk/gateway; opencodeai: @opencode/ai/providers/vercel-ai-gateway; capabilities: system_updates: Yes; tools: choice: auto, none, required, tool; updates: No; responses: base_url: https://ai-gateway.vercel.sh/v1; sdk: aisdk: @ai-sdk/open-responses; opencodeai: @opencode/ai/providers/vercel-ai-gateway/responses; capabilities: tools: choice: auto, none, required, tool; updates: No; messages: base_url: https://ai-gateway.vercel.sh/v1; sdk: aisdk: @ai-sdk/anthropic; opencodeai: @opencode/ai/providers/vercel-ai-gateway/messages; capabilities: tools: choice: auto, none, required, tool; updates: No
Z.ai glm-5.2
Context 1,000,000 · Output 131,072
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; default: type: effort; value: max; toggle: Yes; effort: high, max; cache: implicit: Yes; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: No; system_updates: No; effort_updates: No
- limit
- context: 1,000,000; output: 131,072
- id
- glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://api.z.ai/api/paas/v4; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/zai/chat; compatibility: reasoning_field: reasoning_content; max_tokens_field: max_tokens; capabilities: tools: choice: auto; updates: No; messages: base_url: https://api.z.ai/api/anthropic/v1; sdk: aisdk: @ai-sdk/anthropic; opencodeai: @opencode/ai/providers/zai-coding-plan/messages; capabilities: tools: choice: auto; updates: No; responses: base_url: https://api.z.ai/api/v1; sdk: aisdk: @ai-sdk/openai; opencodeai: @opencode/ai/providers/zai-coding-plan/responses; capabilities: tools: choice: auto, none; updates: No
Z.ai glm-5.2
Context 1,000,000 · Output 131,072
- name
- GLM-5.2
- description
- Open flagship GLM for long-horizon coding agents and million-token context work
- family
- glm
- open weights
- Yes
- release date
- 2026-06-13
- modalities
- input: text; output: text
- capabilities
- tools: supported: Yes; reasoning: supported: Yes; default: type: effort; value: max; toggle: Yes; effort: high, max; cache: implicit: Yes; structured_output: Yes; temperature: Yes; top_p: Yes; top_k: No; system_updates: No; effort_updates: No
- limit
- context: 1,000,000; output: 131,072
- id
- glm-5.2
- canonical id
- zhipuai/glm-5.2
- type
- chat
- last updated
- 2026-06-13
- api
- chat-completions: base_url: https://open.bigmodel.cn/api/paas/v4; sdk: aisdk: @ai-sdk/openai-compatible; opencodeai: @opencode/ai/providers/zai/chat; compatibility: reasoning_field: reasoning_content; max_tokens_field: max_tokens; capabilities: tools: choice: auto; updates: No; messages: base_url: https://open.bigmodel.cn/api/anthropic/v1; sdk: aisdk: @ai-sdk/anthropic; opencodeai: @opencode/ai/providers/zai-coding-plan/messages; capabilities: tools: choice: auto; updates: No; responses: base_url: https://open.bigmodel.cn/api/v1; sdk: aisdk: @ai-sdk/openai; opencodeai: @opencode/ai/providers/zai-coding-plan/responses; capabilities: tools: choice: auto, none; updates: No