{"slug":"glm-4.6v","name":"GLM 4.6V","family":"zai","family_name":"Z.ai","developer":"Z.ai","color":"#12b5cb","status":"active","released":"2025-12-08","snapshot_of":null,"open":true,"context":204800,"max_output":32768,"knowledge_cutoff":"2025-04","modalities":["text","image","video"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":false,"huggingface":"zai-org/GLM-4.6V","speed":14.5,"latency":3.68,"short":"GLM 4.6V is an open-weights multimodal model from Z.ai, released December 2025. It accepts text, image and video input, supports tool calling and reasoning mode, and is priced near the registry median.","strengths":["Accepts text, image and video input","Supports tool calling and reasoning mode","200k token context window and 32k token maximum response","Open weights, with a blended price close to the registry median"],"weaknesses":["LMArena text score 1376, 103rd of 114 and below the 1438 median","No structured output support","Popularity rank of 164 of 194"],"best_for":"Budget agents needing image or video input and tool calling, where top chat quality is not required.","long":"GLM 4.6V is an open-weights model from Z.ai, released December 2025. It accepts text, image and video and returns text, with tool calling and a reasoning mode, a 200k context window and responses up to 32k tokens. It does not support structured output, so schema-constrained replies need handling elsewhere.\n\nPricing sits near the registry median, at $0.60 per million input tokens, $2.20 per million output tokens and about $1 blended. Its one benchmark result, LMArena text, is weak: a score of 1376 against a median of 1438, placing it 103rd of 114. Chat quality is below most models tested.\n\nIt has only one benchmark result and is served by Z.ai, Novita and OpenRouter. It ranks 164th of 194 for popularity, so teams should test it on their own tasks before committing.","described":true,"gateway":false,"byok":true,"string":"zai:GLM-4.6","input":0.6,"output":2.2,"cache_read":0.11,"blended":1,"efficiency":null,"bench":{"lmarena":1376.3},"offers":[{"provider":"zai","name":"Z.ai","model_id":"GLM-4.6","api":["openai"],"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"zai:GLM-4.6","gateway_string":null},{"provider":"novita","name":"Novita","model_id":"zai-org/glm-4.6","api":["openai"],"input":0.55,"output":2.2,"cache_read":0.11,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":204800,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"z-ai/glm-4.6","api":["openai"],"input":0.6,"output":2.2,"cache_read":0.11,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:z-ai/glm-4.6","gateway_string":null}],"ranks":{"intelligence":null,"popularity":164,"efficiency":null,"speed":183,"price":91},"top_score":0.0619,"about":["GLM 4.6V is an open-weights multimodal model from Z.ai, released December 2025. It accepts text, image and video input, supports tool calling and reasoning mode, and is priced near the registry median.","GLM 4.6V is an open-weights model from Z.ai, released December 2025. It accepts text, image and video and returns text, with tool calling and a reasoning mode, a 200k context window and responses up to 32k tokens. It does not support structured output, so schema-constrained replies need handling elsewhere.","Pricing sits near the registry median, at $0.60 per million input tokens, $2.20 per million output tokens and about $1 blended. Its one benchmark result, LMArena text, is weak: a score of 1376 against a median of 1438, placing it 103rd of 114. Chat quality is below most models tested.","It has only one benchmark result and is served by Z.ai, Novita and OpenRouter. It ranks 164th of 194 for popularity, so teams should test it on their own tasks before committing."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['ZAI_API_KEY'] = '...'\n\nagent = Agent('zai:GLM-4.6', instructions='Be concise, reply with one sentence.')\n\nresult = agent.run_sync('Where does \"hello world\" come from?')\nprint(result.output)","soon":false},{"file":"structured_output.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic import BaseModel\nfrom pydantic_ai import Agent\n\nos.environ['ZAI_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('zai:GLM-4.6', output_type=CityLocation)\n\nresult = agent.run_sync('Where were the olympics held in 2012?')\nprint(result.output)\n#> city='London' country='United Kingdom'","soon":false},{"file":"tools.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\nimport random\n\nfrom pydantic_ai import Agent, RunContext\n\nos.environ['ZAI_API_KEY'] = '...'\n\nagent = Agent(\n    'zai:GLM-4.6',\n    deps_type=str,\n    instructions=\"You're a dice game, roll the die and see if it matches the user's guess.\",\n)\n\n\n@agent.tool_plain\ndef roll_dice() -> str:\n    \"\"\"Roll a six-sided die and return the result.\"\"\"\n    return str(random.randint(1, 6))\n\n\n@agent.tool\ndef get_player_name(ctx: RunContext[str]) -> str:\n    \"\"\"Get the player's name.\"\"\"\n    return ctx.deps\n\n\nresult = agent.run_sync('My guess is 4', deps='Anne')\nprint(result.output)","soon":false},{"file":"streaming.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport asyncio\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['ZAI_API_KEY'] = '...'\n\nagent = Agent('zai:GLM-4.6')\n\n\nasync def main():\n    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:\n        async for text in response.stream_text(delta=True):\n            print(text, end='', flush=True)\n\n\nasyncio.run(main())","soon":false},{"file":"pax.sh","lang":"sh","code":"export ZAI_API_KEY='...'\n\nuvx pax --model 'zai:GLM-4.6'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport ZAI_API_KEY='...'\n\npi --model 'zai/GLM-4.6'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/openai-compatible\nimport { createOpenAICompatible } from '@ai-sdk/openai-compatible'\nimport { generateText } from 'ai'\n\nprocess.env.ZAI_API_KEY = '...'\n\nconst zai = createOpenAICompatible({\n  name: 'zai',\n  baseURL: 'https://api.zai.example/v1',\n  apiKey: process.env.ZAI_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: zai('GLM-4.6'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"id":"lmarena","name":"LMArena text","unit":"","desc":"Rating from blind human votes between pairs of chat responses","category":"preference","floor":1100,"ceiling":1600,"url":"https://lmarena.ai/leaderboard/text","credit":"LMArena (CC BY 4.0)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}