Compare AI models
| Specifications | ||
ParametersThe learned values that shape how a model responds. B means billion and T means trillion. For mixture-of-experts models, the total count is larger than the number active for each token. Parameter count alone does not measure quality. | — | 30B |
Context windowHow much information the model can work with in one request, measured in tokens — pieces of words or other data. This includes your question, attachments, conversation and reply. Limits can vary by model variant and provider. | 400k | 200k |
| API pricingUSD per 1M tokens · lower wins | ||
Input priceWhat you pay for everything you send the model — your question, plus any documents or earlier conversation you include with it. | — | $0.00 |
Output priceWhat you pay for the text the model writes back. It is normally the dearer half: producing an answer costs more than reading one. | — | $0.00 |
Cached input priceA reduced rate for text you send over and over. If every request starts with the same instructions or the same document, the provider keeps a copy ready and charges less to read it again. | — | $0.00 |
Cheapest inputLowest input rate across every provider on OpenRouter, the lab included. The cheapest endpoint may run a quantised build or a shorter context — see "Available from" on the model page. | $1.25Azure | — |
Cheapest outputLowest output rate across every provider on OpenRouter, the lab included. May come from a different provider than the cheapest input. | $10.00Azure | — |
| $750Azure | $0.00Z.ai list price | |
| Benchmarks | ||
SWE-Bench VerifiedCoding — Real coding tasks pulled from open-source projects — the AI has to find and fix actual bugs. A human-checked version of the original SWE-Bench. Higher is better. | 77.9% | 59.2% |
LiveCodeBenchCompetitive coding — Coding problems published so recently the AI can't have seen them in training — a contamination-free test of raw programming skill. Higher is better. | — | 64% |
Terminal-Bench 2.0Agentic terminal coding — Can the AI work in a command-line terminal — running commands and finishing technical setup tasks the way a developer would? (Version 2.0 of the test.) Higher is better. | 58.1% | — |
BrowseCompWeb browsing — Can the AI browse the web and track down hard-to-find answers? Higher is better. | — | 42.8% |
AIME 2025Reasoning — single-answer accuracy on the 2025 invitational mathematics exam without tools | — | 91.6% |
| Overview | ||
| Company | OpenAI | Z.ai |
| Release date | Nov 19 2025 | Jan 19 2026 |
| Access | Closed | Open Weight |
| Model details | View model | View model |
Other comparisons
GPT-5.1-Codex-MaxvsClaude Fable 5.2GLM-4.7-FlashvsClaude Fable 5.2GPT-5.1-Codex-MaxvsGemini 4 HydrogenGLM-4.7-FlashvsGemini 4 HydrogenGPT-5.1-Codex-MaxvsMuse EmberGLM-4.7-FlashvsMuse EmberGPT-5.1-Codex-MaxvsGrok 4.7GLM-4.7-FlashvsGrok 4.7GPT-5.1-Codex-MaxvsDeepSeek-V4.1-Flash-1017GLM-4.7-FlashvsDeepSeek-V4.1-Flash-1017GPT-5.1-Codex-MaxvsMistral Large 4GLM-4.7-FlashvsMistral Large 4Frequently asked questions
GPT-5.1-Codex-Max leads GLM-4.7-Flash on 1 of the 1 benchmark they both report (SWE-Bench Verified). Only GLM-4.7-Flash has a verified first-party price for an available API: $0.00 per million input tokens and $0.00 per million output tokens. No currently available pay-as-you-go API rate is tracked for GPT-5.1-Codex-Max. GPT-5.1-Codex-Max shipped 61 days before GLM-4.7-Flash, so benchmark comparisons should account for the intervening progress.
Context windows are 400k (GPT-5.1-Codex-Max) vs 200k (GLM-4.7-Flash). GPT-5.1-Codex-Max is closed, while GLM-4.7-Flash is open weight.
On SWE-Bench Verified, GPT-5.1-Codex-Max leads at 77.9% vs GLM-4.7-Flash at 59.2%.