{"slug":"glm-5.3-flashx","name":"GLM 5.3 FlashX","family":"zai","family_name":"Z.ai","developer":"Z.ai","color":"#12b5cb","status":"active","released":"2026-09-18","snapshot_of":null,"open":true,"context":1048576,"max_output":131072,"knowledge_cutoff":null,"modalities":["text","image","video"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":null,"speed":78,"latency":1.6,"short":"An open-weights model from Z.ai with a 1M-token context window that accepts text, image and video input. It has no benchmark results in the registry, so it is described by its specifications and price.","strengths":["Open weights with a 1M-token context window","Accepts text, image and video input","Supports tool calling, structured output and reasoning mode","Blended price of $0.59 per million tokens, below the $1.01 median"],"weaknesses":["No benchmark results, so capability cannot be compared to other models","Intelligence-per-dollar value is unavailable","Served by only three providers: Z.ai, Novita and OpenRouter"],"best_for":"Cost-sensitive agents that need long context, tool calling or multimodal input, where benchmark evidence is not required.","long":"GLM 5.3 FlashX is an open-weights model from Z.ai, released in September 2026. Its main features are its size of context and its inputs. It accepts text, image and video, and offers a 1M-token context window with responses up to 131k tokens. It supports tool calling, structured output and a reasoning mode, which covers the features most agents rely on.\n\nPricing is the clearest point of comparison. Input costs $0.37 per million tokens and output costs $1.25 per million, giving a blended price of $0.59 against a registry median of about $1.01. It ranks 70 of 194 on price.\n\nThe registry holds no benchmark results for this model, so its capability cannot be ranked against others. Its intelligence-per-dollar value is also unavailable. A developer should test it on their own workload before relying on it. It is available through Z.ai, Novita and OpenRouter.","described":true,"gateway":false,"byok":true,"string":"zai:GLM-5.3-FlashX","input":0.37,"output":1.25,"cache_read":0.075,"blended":0.59,"efficiency":null,"bench":{},"offers":[{"provider":"zai","name":"Z.ai","model_id":"GLM-5.3-FlashX","api":["openai"],"input":0.37,"output":1.25,"cache_read":0.075,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"zai:GLM-5.3-FlashX","gateway_string":null},{"provider":"novita","name":"Novita","model_id":"zai-org/glm-5.3-flashX","api":["openai"],"input":0.37,"output":1.25,"cache_read":0.075,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1048576,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"z-ai/glm-5.3-flashx","api":["openai"],"input":0.37,"output":1.25,"cache_read":0.075,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1048576,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:z-ai/glm-5.3-flashx","gateway_string":null}],"ranks":{"intelligence":null,"popularity":55,"efficiency":null,"speed":70,"price":70},"top_score":0.3214,"about":["An open-weights model from Z.ai with a 1M-token context window that accepts text, image and video input. It has no benchmark results in the registry, so it is described by its specifications and price.","GLM 5.3 FlashX is an open-weights model from Z.ai, released in September 2026. Its main features are its size of context and its inputs. It accepts text, image and video, and offers a 1M-token context window with responses up to 131k tokens. It supports tool calling, structured output and a reasoning mode, which covers the features most agents rely on.","Pricing is the clearest point of comparison. Input costs $0.37 per million tokens and output costs $1.25 per million, giving a blended price of $0.59 against a registry median of about $1.01. It ranks 70 of 194 on price.","The registry holds no benchmark results for this model, so its capability cannot be ranked against others. Its intelligence-per-dollar value is also unavailable. A developer should test it on their own workload before relying on it. It is available through Z.ai, Novita and OpenRouter."],"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-5.3-FlashX', 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-5.3-FlashX', 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-5.3-FlashX',\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-5.3-FlashX')\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-5.3-FlashX'","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-5.3-FlashX'","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-5.3-FlashX'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}