head-to-head

Qwen: Qwen3.7 Flash vs Google: Gemma 4 31B

Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-11-07.

Qwen: Qwen3.7 Flash Google: Gemma 4 31B
Vendorqwengoogle
Quality Score100100
Benchmark Score-53.7
Input Price$0.03/M$0.20/M
Output Price$0.13/M$0.40/M
Context Window1,000,000262,144
Max Output65,53616,384
Tool Calling✓✓
Structured Output✓✓
Reasoning Mode✓✓
Vision✓✓
Audio--
Benchmark Scores
ai_index-48.4
ai_index_agentic-23.8
ai_index_coding-71.7
eqbench-57.5

The verdict

For a sample job of 1 million input tokens and 250,000 output tokens, Qwen3.7 Flash costs $0.062 and Gemma 4 31B costs $0.30, so Qwen3.7 Flash is about 4.8 times cheaper for the same work.

Qwen3.7 Flash reads up to 1,000,000 tokens at once, roughly 1,500 pages of text, against about 393 pages for Gemma 4 31B.

Across the 20 tasks where they differ, Qwen3.7 Flash scores higher on 1 (Code Completion), Gemma 4 31B on 19 (SQL Generation, Code Review, Code Refactoring and others).

Qwen3.7 Flash was released in July 2026 and Gemma 4 31B in April 2026.

Pick Qwen3.7 Flash if you need lower cost or long documents; pick Gemma 4 31B if you need the stronger all-round task scores.

Costs use current list prices per million tokens; page counts assume about 0.75 words per token and 500 words per page.

Who wins by task?

TaskQwen: Qwen3.7 FlashGoogle: Gemma 4 31B
SQL Generation 134 156
Code Review 132 152
Code Completion 132 131
Code Refactoring 136 151
Bug Fixing 136 160
Unit Test Generation 124 143
Code Documentation 132 137
Regex Writing 120 131
CI/CD Pipelines 120 135
Frontend Component Design 122 138
Data Analysis 124 152
CSV / Spreadsheet Cleanup 134 145
ETL Scripting 128 143
JSON Extraction 132 143
Bulk Data Labeling 130 133
OCR / Document Parsing 131 140
Table Extraction from PDFs 131 140
Long-Document Summarization 138 149
Short-Form Summarization 124 129
Blog Post Writing 122 133

Scores reflect capability match + benchmark data + pricing for each task. Methodology →

Related comparisons

Anthropic: Claude Haiku Latest vs Google: Gemma 4 31B Anthropic: Claude Sonnet 5 vs Google: Gemma 4 31B Anthropic: Claude Sonnet Latest vs Google: Gemma 4 31B ByteDance Seed: Seed-2.0-Code vs Qwen: Qwen3.7 Flash ByteDance Seed: Seed 2.1 Turbo vs Qwen: Qwen3.7 Flash DeepSeek: DeepSeek Flash Latest vs Qwen: Qwen3.7 Flash DeepSeek: DeepSeek V4.1 Flash vs Qwen: Qwen3.7 Flash DeepSeek: DeepSeek V4 Flash Latest vs Qwen: Qwen3.7 Flash

The Model Movers Report

One email every Friday, built from this site's own rankings: the current top five by benchmark score, every model released in the last seven days, and one note worked out from that week's numbers. You can unsubscribe from any issue with one click.