[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"compare-devstral-2-vs-glm-52":3},{"modelA":4,"modelB":9,"categories":14,"faq":54,"winsA":67,"winsB":68,"relatedArticles":69,"otherComparisons":77},{"name":5,"provider":6,"pricing":7,"highlights":8},"Devstral 2","Mistral","$0.05\u002F$0.22","Cheapest agentic coding model; 256K context",{"name":10,"provider":11,"pricing":12,"highlights":13},"GLM-5.2","Z.ai","$3\u002F$80","Open-weights coding-focused model released in June 2026, positioned for long-horizon autonomous engineering tasks.",[15,19,25,30,35,39,43,46,50],{"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","256K","128K","a",{"key":26,"label":27,"valueA":28,"valueB":29,"winner":24},"pricingInput","Input Price ($\u002F1M)","$0.05","$3",{"key":31,"label":32,"valueA":33,"valueB":34,"winner":24},"pricingOutput","Output Price ($\u002F1M)","$0.22","$80",{"key":36,"label":37,"valueA":38,"valueB":38,"winner":18},"arena","Arena ELO","N\u002FA",{"key":40,"label":41,"valueA":42,"valueB":38,"winner":18},"coding","Coding","unknown",{"key":44,"label":45,"valueA":42,"valueB":38,"winner":18},"reasoning","Reasoning",{"key":47,"label":48,"valueA":49,"valueB":38,"winner":24},"speed","Speed (tokens\u002Fsec)","~100 t\u002Fs",{"key":51,"label":52,"valueA":53,"valueB":53,"winner":18},"openSource","Open Source","Yes",[55,58,61,64],{"question":56,"answer":57},"Which is cheaper, Devstral 2 or GLM-5.2?","Devstral 2 is approximately 100% cheaper than GLM-5.2 per million tokens.",{"question":59,"answer":60},"Which is better for coding, Devstral 2 or GLM-5.2?","Devstral 2 scores unknown on coding benchmarks, while GLM-5.2 scores N\u002FA.",{"question":62,"answer":63},"Which has a larger context window?","Devstral 2 supports 256K context, while GLM-5.2 supports 128K.",{"question":65,"answer":66},"Is Devstral 2 or GLM-5.2 open source?","Devstral 2 is open source. GLM-5.2 is open source.",4,0,[70,74],{"slug":71,"title":72,"language":73},"glm-5-2-open-source-1m-context-long-tasks-en","GLM-5.2开源：1M上下文冲刺长程任务","en",{"slug":75,"title":76,"language":73},"glm-52-open-frontier-ai-for-developers-en","GLM-5.2把前沿模型变成可用工具",[78,83,88,93,98,103,108,113],{"slugA":79,"labelA":80,"slugB":81,"labelB":82},"claude-opus-45-vs-devstral-2","Devstral 2 vs Claude Opus 4.5","claude-opus-45-vs-glm-52","GLM-5.2 vs Claude Opus 4.5",{"slugA":84,"labelA":85,"slugB":86,"labelB":87},"devstral-2-vs-llama-4-scout","Devstral 2 vs Llama 4 Scout","glm-52-vs-llama-4-scout","GLM-5.2 vs Llama 4 Scout",{"slugA":89,"labelA":90,"slugB":91,"labelB":92},"claude-sonnet-46-vs-devstral-2","Devstral 2 vs Claude Sonnet 4.6","claude-sonnet-46-vs-glm-52","GLM-5.2 vs Claude Sonnet 4.6",{"slugA":94,"labelA":95,"slugB":96,"labelB":97},"claude-haiku-45-vs-devstral-2","Devstral 2 vs Claude Haiku 4.5","claude-haiku-45-vs-glm-52","GLM-5.2 vs Claude Haiku 4.5",{"slugA":99,"labelA":100,"slugB":101,"labelB":102},"devstral-2-vs-qwen-36","Devstral 2 vs Qwen 3.6","glm-52-vs-qwen-36","GLM-5.2 vs Qwen 3.6",{"slugA":104,"labelA":105,"slugB":106,"labelB":107},"devstral-2-vs-gpt-4o","Devstral 2 vs GPT-4o","glm-52-vs-gpt-4o","GLM-5.2 vs GPT-4o",{"slugA":109,"labelA":110,"slugB":111,"labelB":112},"deepseek-r1-vs-devstral-2","Devstral 2 vs DeepSeek R1","deepseek-r1-vs-glm-52","GLM-5.2 vs DeepSeek R1",{"slugA":114,"labelA":115,"slugB":116,"labelB":117},"claude-opus-46-vs-devstral-2","Devstral 2 vs Claude Opus 4.6","claude-opus-46-vs-glm-52","GLM-5.2 vs Claude Opus 4.6"]