GLM-4.7-Flash vs GPT-4.1 nano vs Gemma 3 27B IT
GPT-4.1 nano comes out ahead, 55 to 50 and 50 on our weighted score, though Gemma 3 27B IT is 15% cheaper per token.GPT-4.1 nano comes out ahead, 43 to 36 and 35 on our weighted score, though Gemma 3 27B IT is 15% cheaper per token.
Z.ai (Zhipu)
GLM-4.7-Flash
50/100- ECI—
- Price$0.07 / $0.40
- Context203K
- Our pick
OpenAI
GPT-4.1 nano
55/100- ECI126.9
- Price$0.10 / $0.40
- Context1.05M
Google
Gemma 3 27B IT
50/100- ECI127.6
- Price$0.099 / $0.299
- Context131K
Z.ai (Zhipu)
GLM-4.7-Flash
36/100- ECI—
- Price$0.07 / $0.40
- Context203K
- Our pick
OpenAI
GPT-4.1 nano
43/100- ECI126.9
- Price$0.10 / $0.40
- Context1.05M
Google
Gemma 3 27B IT
35/100- ECI127.6
- Price$0.099 / $0.299
- Context131K
GPT-4.1 nano is our pick
GPT-4.1 nano is the better all-round choice, scoring 55/100 against GLM-4.7-Flash (50) and Gemma 3 27B IT (50). It leads on capability and context window. The score weighs capability 59%, price 29%, context window 12%. Capability uses the average of shared benchmarks (GPQA Diamond and OTIS Mock AIME 2024–2025), because GLM-4.7-Flash has no Capabilities Index score yet.GPT-4.1 nano is the better all-round choice, scoring 43/100 against GLM-4.7-Flash (36) and Gemma 3 27B IT (35). It leads on capability and context window. The score weighs capability 83%, context window 17%. Capability uses the average of shared benchmarks (GPQA Diamond and OTIS Mock AIME 2024–2025), because GLM-4.7-Flash has no Capabilities Index score yet.
- CapabilityGPT-4.1 nanoShared benchmarks: GPT-4.1 nano 38.9% · Gemma 3 27B IT 35.1% · GLM-4.7-Flash 35.1%
- Lowest priceGemma 3 27B ITGemma 3 27B IT $0.149 · GLM-4.7-Flash $0.152 · GPT-4.1 nano $0.175 per 1M tokens (3:1 blend)
- Longest contextGPT-4.1 nanoGPT-4.1 nano 1,047,576 · GLM-4.7-Flash 202,752 · Gemma 3 27B IT 131,072 tokens
- Widest inputsGPT-4.1 nano and Gemma 3 27B ITGLM-4.7-Flash: Text · GPT-4.1 nano: Text, Images · Gemma 3 27B IT: Text, Images
- Self-hostingGLM-4.7-Flash and Gemma 3 27B ITPublishes downloadable weights
| Measure | Weight | GLM-4.7-Flash | GPT-4.1 nano | Gemma 3 27B IT |
|---|---|---|---|---|
| CapabilityShared benchmarks | 59% | 35 | 39 | 35 |
| Price | 29% | 85 | 83 | 86 |
| Context window | 12% | 39 | 65 | 32 |
| Overall | 100% | 50/100 | 55/100 | 50/100 |
Left out because at least one model lacks the data: inputs & features. The remaining weights were rescaled.
| Measure | Weight | GLM-4.7-Flash | GPT-4.1 nano | Gemma 3 27B IT |
|---|---|---|---|---|
| CapabilityShared benchmarks | 83% | 35 | 39 | 35 |
| Context window | 17% | 39 | 65 | 32 |
| Overall | 100% | 36/100 | 43/100 | 35/100 |
Left out because at least one model lacks the data: inputs & features. The remaining weights were rescaled.
Every spec in one table
Highlighted cells lead their row. Unavailable specifications are marked “Not published”. Publisher results include their evaluation settings and source.
| Specification | |||
|---|---|---|---|
| Capability | |||
| Capabilities Index (ECI) | Not published | 126.9 | 127.6 (best) |
| ECI rank | Not published | #151 of 167 | #150 of 167 (best) |
| ECI confidence interval | Not published | 124.0–129.5 | 124.7–130.4 |
| ECI evaluation date | Not published | Apr 14, 2025 | Mar 12, 2025 |
| Documented capabilities | Budget GLM lane for fast coding help, routing, and everyday automation | Tiny GPT-4.1 option for classification, routing, and very high-volume tasks | Largest open Gemma 3 instruction model for multilingual text generation and visual understanding |
| Model parameters | Not published | Not published | Not published |
| Output modalities | Text | Text | Text |
| GPQA DiamondGraduate-level science questions | 45.1%none | 48.9% (best) | 47.7% |
| OTIS Mock AIME 2024–2025Competition mathematics | 25.0%none | 28.9% (best) | 22.5% |
| SimpleQA VerifiedShort factual questions | Not published | 6.0% | Not published |
| Publisher-reported benchmarks | |||
| SWE-Bench VerifiedPublisher-reported result | 59.2resolvedReported result | Not published | Not published |
| Aider PolyglotPublisher-reported result | Not published | 8.9percent correctReported resultApr 14, 2025 | Not published |
| Price per million tokens | |||
| Input | $0.07 (best) | $0.10 | $0.099 |
| Output | $0.40 | $0.40 | $0.299 (best) |
| Cached input | Not published | Not published | Not published |
| Blended (3:1) | $0.152 | $0.175 | $0.149 (best) |
| Long-context rate | Same rate | Same rate | Same rate |
| Price source | Median of 15 providers | Median of 18 providers | Median of 15 providers |
| Limits | |||
| Context window | 202,752 tokens | 1,047,576 tokens (best) | 131,072 tokens |
| Max input | Not published | Not published | Not published |
| Max output | 131,072 tokens (best) | 32,768 tokens | 131,072 tokens (best) |
| Inputs and features | |||
| Text | Yes | Yes | Yes |
| Images | No | Yes | Yes |
| PDFs | No | No | No |
| Audio | No | No | No |
| Video | No | No | No |
| Reasoning | Yes | No | No |
| Tool calling | Yes | Yes | Yes |
| Structured output | Not published | Not published | Not published |
| File attachments | No | Yes | Yes |
| Temperature control | Yes | Yes | Yes |
| Reasoning control | toggle | Not published | Not published |
| Availability | |||
| Weights | Open | Proprietary | Open |
| API model ID | glm-4.7-flash | Not published | Not published |
| API providers | 22 (best) | 18 | 15 |
| Released | Jan 19, 2026 | Apr 14, 2025 | Mar 12, 2025 |
| Knowledge cutoff | Apr 2025 | Apr 2024 | Aug 2024 |
| Publisher documentation | Publisher documentation · Model weights | Not published | Model weights |
| Source metadata updated | Jan 19, 2026 | Apr 14, 2025 | Mar 12, 2025 |
| Data sources | models.dev · Epoch AI | models.dev · Epoch AI | models.dev · Epoch AI |
| Catalog checked | Dec 2, 2026 | Dec 2, 2026 | Dec 2, 2026 |
What would a month cost?
Enter your expected volume in millions of tokens. List prices only; caching and batch discounts would lower these.
GLM-4.7-Flash$1.50
GPT-4.1 nano$1.80
Gemma 3 27B IT$1.59
Which should you choose?
Which is better: GLM-4.7-Flash, GPT-4.1 nano or Gemma 3 27B IT?
GPT-4.1 nano is the better all-round choice, scoring 55/100 against GLM-4.7-Flash (50) and Gemma 3 27B IT (50). It leads on capability and context window. The score weighs capability 59%, price 29%, context window 12%. Capability uses the average of shared benchmarks (GPQA Diamond and OTIS Mock AIME 2024–2025), because GLM-4.7-Flash has no Capabilities Index score yet.GPT-4.1 nano is the better all-round choice, scoring 43/100 against GLM-4.7-Flash (36) and Gemma 3 27B IT (35). It leads on capability and context window. The score weighs capability 83%, context window 17%. Capability uses the average of shared benchmarks (GPQA Diamond and OTIS Mock AIME 2024–2025), because GLM-4.7-Flash has no Capabilities Index score yet.
Which is cheaper, GLM-4.7-Flash, GPT-4.1 nano or Gemma 3 27B IT?
Gemma 3 27B IT is cheaper at $0.099 input / $0.299 output per million tokens (median across 15 API providers). GLM-4.7-Flash costs $0.07 input / $0.40 output per million tokens (median across 15 API providers; free on Z.AI); GPT-4.1 nano costs $0.10 input / $0.40 output per million tokens (median across 18 API providers). At a typical mix of three input tokens to one output token, that is $0.149 per million tokens for Gemma 3 27B IT versus $0.152 for GLM-4.7-Flash (1× as much) and $0.175 for GPT-4.1 nano (1.2× as much).
Which scores higher on benchmarks?
Not every model here has a Capabilities Index score, so we compare the average of shared benchmarks (GPQA Diamond and OTIS Mock AIME 2024–2025): GPT-4.1 nano 38.9%, Gemma 3 27B IT 35.1% and GLM-4.7-Flash 35.1%. On individual benchmarks: GPQA Diamond — GPT-4.1 nano 48.9%, Gemma 3 27B IT 47.7%, GLM-4.7-Flash 45.1%; OTIS Mock AIME 2024–2025 — GPT-4.1 nano 28.9%, GLM-4.7-Flash 25.0%, Gemma 3 27B IT 22.5%.
Which is better for coding?
There are no published SWE-bench Verified results for GLM-4.7-Flash, GPT-4.1 nano and Gemma 3 27B IT yet, so there is no like-for-like coding score. On overall capability, GPT-4.1 nano 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?
GPT-4.1 nano has the largest context window at 1,047,576 tokens, against 202,752 for GLM-4.7-Flash and 131,072 for Gemma 3 27B IT. Maximum output per response: GLM-4.7-Flash up to 131,072, GPT-4.1 nano up to 32,768, Gemma 3 27B IT up to 131,072 tokens.
Which can read images, PDFs, audio or video?
GLM-4.7-Flash accepts text; GPT-4.1 nano accepts text and images; Gemma 3 27B IT accepts text and images. GPT-4.1 nano handles the widest range of inputs.
Are any of these open source?
GLM-4.7-Flash and Gemma 3 27B IT publishes its weights and can be self-hosted; GPT-4.1 nano is proprietary.
Which is newer?
GLM-4.7-Flash is the newest, released Jan 19, 2026. GPT-4.1 nano came out Apr 14, 2025; Gemma 3 27B IT came out Mar 12, 2025. Knowledge cutoff: GLM-4.7-Flash Apr 2025, GPT-4.1 nano Apr 2024, Gemma 3 27B IT Aug 2024.
How do you decide the winner?
This rating uses capability (59%, independent benchmark results); price (29%, blended price per million tokens (3 input : 1 output), log scale); context window (12%, 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 Dec 2, 2026.This rating uses capability (83%, independent benchmark results); context window (17%, 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 Dec 2, 2026.