Gemini 2.5 Pro vs GLM-4.7 vs Claude Sonnet 4
Gemini 2.5 Pro comes out ahead, 64 to 57 and 52 on our weighted score, though GLM-4.7 is 3.4× cheaper per token.
Price in rating: Included · Exclude price
- Our pick
Google
Gemini 2.5 Pro
64/100- ECI144.9
- Price$1.25 / $10.00
- Context1.05M
Z.ai (Zhipu)
GLM-4.7
57/100- ECI143.4
- Price$0.60 / $2.20
- Context205K
Anthropic
Claude Sonnet 4
52/100- ECI141.9
- Price$3.00 / $15.00
- Context200K
Gemini 2.5 Pro is our pick
Gemini 2.5 Pro is the better all-round choice, scoring 64/100 against GLM-4.7 (57) and Claude Sonnet 4 (52). It leads on inputs & features and context window. GLM-4.7 wins on price. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%.
- CapabilityGemini 2.5 ProCapabilities Index (ECI): Gemini 2.5 Pro 144.9 · GLM-4.7 143.4 · Claude Sonnet 4 141.9
- Lowest priceGLM-4.7GLM-4.7 $1.00 · Gemini 2.5 Pro $3.44 · Claude Sonnet 4 $6.00 per 1M tokens (3:1 blend)
- Longest contextGemini 2.5 ProGemini 2.5 Pro 1,048,576 · GLM-4.7 204,800 · Claude Sonnet 4 200,000 tokens
- Widest inputsGemini 2.5 ProGemini 2.5 Pro: Text, Images, PDFs, Audio, Video · GLM-4.7: Text · Claude Sonnet 4: Text, Images, PDFs
- Self-hostingGLM-4.7Publishes downloadable weights
| Measure | Weight | Gemini 2.5 Pro | GLM-4.7 | Claude Sonnet 4 |
|---|---|---|---|---|
| CapabilityCapabilities Index (ECI) | 50% | 73 | 71 | 70 |
| Price | 25% | 23 | 48 | 12 |
| Inputs & features | 15% | 100 | 35 | 70 |
| Context window | 10% | 65 | 39 | 39 |
| Overall | 100% | 64/100 | 57/100 | 52/100 |
Every spec in one table
Highlighted cells lead their row. Dashes mean the data is not published.
| Specification | |||
|---|---|---|---|
| Capability | |||
| Capabilities Index (ECI) | 144.9 (best) | 143.4 | 141.9 |
| ECI rank | #92 of 158 (best) | #99 of 158 | #104 of 158 |
| GPQA DiamondGraduate-level science questions | 85.3% (best) | 83.3% | 79.2% |
| FrontierMath Tiers 1–3Research-level mathematics | 24.6% | — | — |
| OTIS Mock AIME 2024–2025Competition mathematics | 84.7% (best) | 83.3% | 71.1% |
| SWE-bench VerifiedFixing real GitHub issues | 57.6% | — | — |
| SimpleQA VerifiedShort factual questions | — | 32.2% | — |
| Price per million tokens | |||
| Input | $1.25 | $0.60 (best) | $3.00 |
| Output | $10.00 | $2.20 (best) | $15.00 |
| Cached input | $0.125 | $0.11 (best) | — |
| Blended (3:1) | $3.44 | $1.00 (best) | $6.00 |
| Long-context rate | Over 200K: $2.50 / $15.00 | Same rate | Same rate |
| Price source | Official Google API | Official Z.AI API | Median of 10 providers |
| Limits | |||
| Context window | 1,048,576 tokens (best) | 204,800 tokens | 200,000 tokens |
| Max output | 65,536 tokens | 131,072 tokens (best) | 64,000 tokens |
| Inputs and features | |||
| Text | Yes | Yes | Yes |
| Images | Yes | No | Yes |
| PDFs | Yes | No | Yes |
| Audio | Yes | No | No |
| Video | Yes | No | No |
| Reasoning | Yes | Yes | Yes |
| Tool calling | Yes | Yes | Yes |
| Structured output | Yes | No | No |
| Availability | |||
| Weights | Proprietary | Open | Proprietary |
| API model ID | gemini-2.5-pro | glm-4.7 | — |
| API providers | 31 (best) | 30 | 11 |
| Released | Jun 17, 2025 | Dec 22, 2025 | May 22, 2025 |
| Knowledge cutoff | Jan 2025 | Apr 2025 | Mar 31, 2025 |
What would a month cost?
Enter your expected volume in millions of tokens. List prices only; caching and batch discounts would lower these.
Gemini 2.5 Pro$32.50
GLM-4.7$10.40
Claude Sonnet 4$60.00
Which should you choose?
Which is better: Gemini 2.5 Pro, GLM-4.7 or Claude Sonnet 4?
Gemini 2.5 Pro is the better all-round choice, scoring 64/100 against GLM-4.7 (57) and Claude Sonnet 4 (52). It leads on inputs & features and context window. GLM-4.7 wins on price. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%.
Which is cheaper, Gemini 2.5 Pro, GLM-4.7 or Claude Sonnet 4?
GLM-4.7 is cheaper at $0.60 input / $2.20 output per million tokens (official Z.AI API price). Gemini 2.5 Pro costs $1.25 input / $10.00 output per million tokens (official Google API price); Claude Sonnet 4 costs $3.00 input / $15.00 output per million tokens (median across 10 API providers). At a typical mix of three input tokens to one output token, that is $1.00 per million tokens for GLM-4.7 versus $3.44 for Gemini 2.5 Pro (3.4× as much) and $6.00 for Claude Sonnet 4 (6× as much).
Which scores higher on benchmarks?
Gemini 2.5 Pro scores higher on the Capabilities Index (ECI): Gemini 2.5 Pro 144.9 (#92 of 158), GLM-4.7 143.4 (#99 of 158) and Claude Sonnet 4 141.9 (#104 of 158). The confidence ranges of the top two overlap (143.5–146.3 vs 141.4–145.3), so treat the gap as small. On individual benchmarks: GPQA Diamond — Gemini 2.5 Pro 85.3%, GLM-4.7 83.3%, Claude Sonnet 4 79.2%; OTIS Mock AIME 2024–2025 — Gemini 2.5 Pro 84.7%, GLM-4.7 83.3%, Claude Sonnet 4 71.1%.
Which is better for coding?
There are no published SWE-bench Verified results for GLM-4.7 and Claude Sonnet 4 yet, so there is no like-for-like coding score. On overall capability, Gemini 2.5 Pro leads, which tends to carry over to coding, but test on your own codebase. All three support tool calling for agent workflows.
Which has the bigger context window?
Gemini 2.5 Pro has the largest context window at 1,048,576 tokens, against 204,800 for GLM-4.7 and 200,000 for Claude Sonnet 4. Maximum output per response: Gemini 2.5 Pro up to 65,536, GLM-4.7 up to 131,072, Claude Sonnet 4 up to 64,000 tokens.
Which can read images, PDFs, audio or video?
Gemini 2.5 Pro accepts text, images, PDFs, audio and video; GLM-4.7 accepts text; Claude Sonnet 4 accepts text, images and PDFs. Gemini 2.5 Pro handles the widest range of inputs.
Are any of these open source?
GLM-4.7 publishes its weights and can be self-hosted; Gemini 2.5 Pro and Claude Sonnet 4 is proprietary.
Which is newer?
GLM-4.7 is the newest, released Dec 22, 2025. Gemini 2.5 Pro came out Jun 17, 2025; Claude Sonnet 4 came out May 22, 2025. Knowledge cutoff: Gemini 2.5 Pro Jan 2025, GLM-4.7 Apr 2025, Claude Sonnet 4 Mar 31, 2025.
How do you decide the winner?
This rating uses capability (50%, independent benchmark results); price (25%, blended price per million tokens (3 input : 1 output), log scale); inputs & features (15%, image, PDF, audio and video input, tool calling, structured output and reasoning); context window (10%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Nov 18, 2026.