[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"compare-glm-52-vs-grok-4":3},{"modelA":4,"modelB":9,"categories":14,"faq":57,"winsA":70,"winsB":71,"relatedArticles":72,"otherComparisons":92},{"name":5,"provider":6,"pricing":7,"highlights":8},"GLM-5.2","Z.ai","$3\u002F$80","Open-weights coding-focused model released in June 2026, positioned for long-horizon autonomous engineering tasks.",{"name":10,"provider":11,"pricing":12,"highlights":13},"Grok 4","xAI","$5\u002F$25","Top-5 Arena; strong reasoning & real-time X data",[15,19,25,31,36,41,45,48,52],{"key":16,"label":17,"valueA":6,"valueB":11,"winner":18},"provider","Provider","tie",{"key":20,"label":21,"valueA":22,"valueB":23,"winner":24},"context","Context Window","128K","256K","b",{"key":26,"label":27,"valueA":28,"valueB":29,"winner":30},"pricingInput","Input Price ($\u002F1M)","$3","$5","a",{"key":32,"label":33,"valueA":34,"valueB":35,"winner":24},"pricingOutput","Output Price ($\u002F1M)","$80","$25",{"key":37,"label":38,"valueA":39,"valueB":40,"winner":24},"arena","Arena ELO","N\u002FA","1340",{"key":42,"label":43,"valueA":39,"valueB":44,"winner":18},"coding","Coding","unknown",{"key":46,"label":47,"valueA":39,"valueB":44,"winner":18},"reasoning","Reasoning",{"key":49,"label":50,"valueA":39,"valueB":51,"winner":24},"speed","Speed (tokens\u002Fsec)","~45 t\u002Fs",{"key":53,"label":54,"valueA":55,"valueB":56,"winner":18},"openSource","Open Source","Yes","No",[58,61,64,67],{"question":59,"answer":60},"Which is cheaper, GLM-5.2 or Grok 4?","Grok 4 is approximately 64% cheaper than GLM-5.2 per million tokens.",{"question":62,"answer":63},"Which is better for coding, GLM-5.2 or Grok 4?","GLM-5.2 scores N\u002FA on coding benchmarks, while Grok 4 scores unknown.",{"question":65,"answer":66},"Which has a larger context window?","GLM-5.2 supports 128K context, while Grok 4 supports 256K.",{"question":68,"answer":69},"Is GLM-5.2 or Grok 4 open source?","GLM-5.2 is open source. Grok 4 is proprietary.",1,4,[73,77,80,83,86,89],{"slug":74,"title":75,"language":76},"glm-5-2-open-source-1m-context-long-tasks-en","GLM-5.2开源：1M上下文冲刺长程任务","en",{"slug":78,"title":79,"language":76},"pentagon-should-not-use-grok-wartime-targeting-en","The Pentagon should not use Grok for wartime targeting",{"slug":81,"title":82,"language":76},"grok-latest-controversies-regulation-story-en","Grok’s latest controversies are now a regulation story",{"slug":84,"title":85,"language":76},"glm-52-open-frontier-ai-for-developers-en","GLM-5.2把前沿模型变成可用工具",{"slug":87,"title":88,"language":76},"spacex-ipo-should-not-wash-away-grok-safety-failures-en","SpaceX’s IPO Should Not Wash Away Grok’s Safety Failures",{"slug":90,"title":91,"language":76},"grok-updates-change-how-i-code-en","5 Grok updates that change how I code",[93,98,103,108,113,118,123,128],{"slugA":94,"labelA":95,"slugB":96,"labelB":97},"claude-opus-45-vs-glm-52","GLM-5.2 vs Claude Opus 4.5","claude-opus-45-vs-grok-4","Grok 4 vs Claude Opus 4.5",{"slugA":99,"labelA":100,"slugB":101,"labelB":102},"glm-52-vs-llama-4-scout","GLM-5.2 vs Llama 4 Scout","grok-4-vs-llama-4-scout","Grok 4 vs Llama 4 Scout",{"slugA":104,"labelA":105,"slugB":106,"labelB":107},"claude-sonnet-46-vs-glm-52","GLM-5.2 vs Claude Sonnet 4.6","claude-sonnet-46-vs-grok-4","Grok 4 vs Claude Sonnet 4.6",{"slugA":109,"labelA":110,"slugB":111,"labelB":112},"claude-haiku-45-vs-glm-52","GLM-5.2 vs Claude Haiku 4.5","claude-haiku-45-vs-grok-4","Grok 4 vs Claude Haiku 4.5",{"slugA":114,"labelA":115,"slugB":116,"labelB":117},"glm-52-vs-qwen-36","GLM-5.2 vs Qwen 3.6","grok-4-vs-qwen-36","Grok 4 vs Qwen 3.6",{"slugA":119,"labelA":120,"slugB":121,"labelB":122},"glm-52-vs-gpt-4o","GLM-5.2 vs GPT-4o","gpt-4o-vs-grok-4","Grok 4 vs GPT-4o",{"slugA":124,"labelA":125,"slugB":126,"labelB":127},"deepseek-r1-vs-glm-52","GLM-5.2 vs DeepSeek R1","deepseek-r1-vs-grok-4","Grok 4 vs DeepSeek R1",{"slugA":129,"labelA":130,"slugB":131,"labelB":132},"claude-opus-46-vs-glm-52","GLM-5.2 vs Claude Opus 4.6","claude-opus-46-vs-grok-4","Grok 4 vs Claude Opus 4.6"]