All Posts
AI StrategyMay 2, 20269 min read

Gemma 4 vs Qwen 3.6: The Open Weights Race for Frontier Capability

Google's Gemma 4 and Alibaba's Qwen 3.6 are the two most capable open weights model families released in April 2026. We compare them across benchmarks, deployment, multimodal capability, and cost at scale.

April 2026 was the most consequential month for open weights AI in the history of the category. Google released Gemma 4 on April 2 under a commercially permissive Apache 2.0 license. Alibaba's Qwen team followed with Qwen3.6-35B-A3B on April 16, the closed weights Qwen3.6-Max-Preview on April 20, and Qwen3.6-27B (open weights, dense, agentic coding focused) on April 22.

For engineering teams that need self hostable inference, fine tuning surfaces, or air gapped deployment, this is the strongest open weights field that has ever shipped. Choosing between Gemma 4 and Qwen 3.6 is not obvious. The two families are built around different architectural philosophies and lead on different benchmark categories.

The Models at a Glance

Gemma 4 (31B dense)Gemma 4 (26B A4B MoE)Qwen3.6-27B (dense)Qwen3.6-35B-A3B (MoE)Qwen3.6-Plus (API)
ReleaseApril 2, 2026April 2, 2026April 22, 2026April 16, 2026April 2026
WeightsOpen, Apache 2.0Open, Apache 2.0OpenOpenClosed (API only)
Context window256K tokens256K tokensnot officially confirmednot officially confirmed1M tokens
Max outputModel dependentModel dependentModel dependentModel dependent65,536 tokens
MultimodalText, image, video, audioText, image, video, audioText focusedText focusedText, document, image
Architecture31B dense26B total / 4B active MoE27B dense35B total / 3B active MoEnot disclosed
API price (input per 1M)$0.13 (OpenRouter)$0.08 (OpenRouter)varies by hostvaries by host$0.325
API price (output per 1M)$0.38 (OpenRouter)$0.35 (OpenRouter)varies by hostvaries by host$1.95

Gemma 4 also ships E2B and E4B variants (2B and 4B effective parameters) for mobile, edge, and browser deployment, with 128K context and native audio input.

What Each Family Is Optimized For

Gemma 4

Gemma 4 prioritizes intelligence per parameter and on device deployment. The headline 31B dense model is designed to compete with much larger closed models on reasoning benchmarks. The 26B A4B MoE optimizes for inference cost. The E2B and E4B variants are aimed at phones, browsers, and embedded devices, with native audio input across the smaller end of the family.

Multimodal coverage spans text, image, video, and audio across the family. The Apache 2.0 license is commercially permissive without restrictions that earlier Gemma releases imposed.

Qwen 3.6

Qwen 3.6 prioritizes agentic coding and document understanding. The 27B dense variant released April 22 leads on agentic coding benchmarks at its parameter count, and Alibaba positioned it explicitly against much larger MoE models on those tasks. Qwen3.6-Plus, the closed API tier, leads Terminal-Bench 2.0 at 61.6, ahead of Claude Opus 4.5 on that metric (though Opus 4.7 has since reset that benchmark to 69.4).

Qwen3.6-Max-Preview claims top rank on six major coding and agent benchmarks: SWE-Bench Pro, Terminal-Bench 2.0, SkillsBench, QwenClawBench, QwenWebBench, and SciCode. Max-Preview ships closed weights only via Alibaba Cloud's dashscope and bailian platforms, which is a notable shift from Qwen's historical open source posture.

Benchmark Comparison

BenchmarkGemma 4 (31B)Qwen3.6-PlusQwen3.6-Max-PreviewEdge
GPQA Diamond84.3%not directly reportednot directly reportedGemma (on disclosed numbers)
MMLU Pro85.2%not directly reportednot directly reportedGemma (on disclosed numbers)
LiveCodeBench v680.0%not directly reportednot directly reportedGemma (on disclosed numbers)
Terminal-Bench 2.0not reported61.6claimed #1Qwen
SWE-Bench Pronot reportednot directly reportedclaimed #1Qwen
OmniDocBenchnot reported91.2not directly reportedQwen
MMMUnot reported86.0not directly reportedQwen
AIME 202589%not directly reportednot directly reportedGemma (on disclosed numbers)
Codeforces ELO2150not directly reportednot directly reportedGemma (on disclosed numbers)

The two families publish on largely non overlapping benchmark suites, which makes a clean apples to apples comparison difficult. Gemma 4 leads on disclosed reasoning, math, and coding contest benchmarks. Qwen 3.6 leads on agentic coding and document understanding benchmarks.

For teams choosing between them, the practical question is which benchmark category maps closest to your actual workload.

Deployment

Gemma 4 Open Posture

Gemma 4 is fully open weights under Apache 2.0 across the entire family. It runs on Hugging Face, Kaggle, Ollama, Google AI Studio, and any self hosted inference stack. A single H100 handles the 31B dense model at production latency. The 26B A4B MoE runs on smaller hardware given the 4B active parameter footprint. The E2B and E4B variants run on phones, browsers, and embedded devices.

Google has not yet added Gemma 4 to Vertex AI's managed inference. For teams that want managed inference on Google Cloud, third party providers like OpenRouter currently fill the gap.

Qwen 3.6 Mixed Posture

Qwen 3.6 is partially open. The 27B dense and 35B-A3B MoE variants are open weights on Hugging Face and ModelScope. Qwen3.6-Plus and Qwen3.6-Max-Preview are closed weights, available only through Alibaba Cloud's dashscope and bailian APIs and via OpenRouter for some variants.

For teams that need true self hosting of the strongest Qwen 3.6 capability, the open weights variants are the only option, and they trail the closed Plus and Max-Preview tiers on most published benchmarks. Teams willing to accept API only access can use Plus or Max-Preview.

Multimodal Capability

Gemma 4 supports text, image, video, and audio input across the family. Variable aspect ratio and resolution handling are built in. The E2B and E4B variants include native audio input designed for on device voice applications.

Qwen 3.6 is more text and document focused on the open weights side. The closed Plus tier includes document understanding (OmniDocBench 91.2) and multimodal reasoning (MMMU 86.0), but the open weights variants do not match Gemma 4 on multimodal coverage.

For workflows that need video or audio input as a first class signal in an open weights deployment, Gemma 4 is the only viable choice. For document understanding and visual document parsing on a closed API, Qwen 3.6 Plus is competitive.

Agentic Coding

This is where Qwen 3.6 has the clearest published lead.

Qwen3.6-27B was released specifically as an agentic coding focused model that outperforms 397B parameter MoE models on the relevant benchmarks at 27B dense parameters. Qwen3.6-Plus leads Terminal-Bench 2.0 at 61.6 among models with disclosed scores other than Opus 4.7. Qwen3.6-Max-Preview claims #1 on SWE-Bench Pro, Terminal-Bench 2.0, and four additional coding and agent benchmarks.

Gemma 4 has not published direct SWE-Bench Verified or Terminal-Bench 2.0 numbers. The strongest published Gemma 4 coding signal is LiveCodeBench v6 at 80.0%, which measures contest style isolated coding rather than agentic coding on real repositories.

For teams whose primary workload is agentic coding on existing codebases, Qwen 3.6 has a stronger published case. For isolated algorithmic problems, Gemma 4 is competitive.

Pricing

At list prices through third party providers, both families are dramatically cheaper than closed frontier models.

VariantInput per 1MOutput per 1M
Gemma 4 31B (OpenRouter)$0.13$0.38
Gemma 4 26B A4B (OpenRouter)$0.08$0.35
Qwen3.6-Plus$0.325$1.95
Qwen3.6-Max-Preview$1.30$7.80

Gemma 4 26B A4B MoE is the cheapest variant with non trivial capability in this comparison. Qwen3.6-Plus is meaningfully more expensive than Gemma 4 31B but still roughly an order of magnitude cheaper than Claude Opus 4.7 ($5 / $25) or GPT-5.5 ($5 / $30).

For self hosted deployment, both Gemma 4 and the open weights Qwen 3.6 variants flatten marginal cost once compute is provisioned. The choice there comes down to which model fits your hardware and which capability profile matches your workload.

Direct Comparison Table

CategoryGemma 4Qwen 3.6Edge
Open weights coverageFull familyOpen: 27B, 35B-A3B; Closed: Plus, Max-PreviewGemma
LicenseApache 2.0VariesGemma
Reasoning (GPQA, MMLU Pro)strongest publishednot directly reportedGemma
Math (AIME 2025)89%not directly reportedGemma
Coding contests (LiveCodeBench, Codeforces)strongnot directly reportedGemma
Agentic coding (Terminal-Bench, SWE-Bench Pro)not directly reportedstrongest published among non OpusQwen
Document understandingnot directly reportedOmniDocBench 91.2Qwen
Multimodal (video, audio)full coveragetext and document focusedGemma
Edge deploymentE2B / E4B nativenot aimed at edgeGemma
Context window256K (open)1M (Plus, closed)Qwen (closed) / Gemma (open)
Cheapest variant$0.08 / $0.35 (26B MoE)$0.325 / $1.95 (Plus)Gemma

Which One Should You Use

Use Gemma 4 when:

  • You need fully open weights under a permissive license across the entire family
  • Multimodal input includes video or audio
  • On device or edge deployment is a requirement (E2B / E4B variants)
  • Reasoning, math, and coding contest performance are your primary benchmark categories
  • Cost per token at API list prices is the dominant variable

Use Qwen 3.6 when:

  • Agentic coding on real codebases is the core workload
  • Document understanding and visual document parsing are central
  • You need a 1M token context window (via Plus, closed)
  • You can accept closed weights for the strongest variants (Plus, Max-Preview)
  • Alibaba Cloud is already in your infrastructure footprint

Use both when:

  • Gemma 4 handles multimodal input and on device inference
  • Qwen 3.6 handles agentic coding stages and document analysis
  • Open weights Gemma 4 covers cost sensitive batch generation, Qwen 3.6 Max-Preview covers the hardest agentic edges
  • Route by task shape rather than family loyalty

Our Default for May 2026

For agentic coding work where open weights matter, Qwen3.6-27B is the strongest dense option at its parameter count. For cost sensitive multimodal generation and on device inference, Gemma 4 is the strongest open family that has ever shipped. For reasoning and math heavy workloads on open weights, Gemma 4 31B is the better default given the disclosed numbers.

Neither family replaces closed frontier models like Opus 4.7 or GPT-5.5 on the hardest agentic coding tasks. Both significantly compress the gap between open and closed at a fraction of the cost. The teams that benefit most are the ones who build routing layers that pick the right open weights variant for each pipeline stage rather than defaulting to a single family.

How Contra Collective Bridges the Gap

Contra Collective runs Gemma 4, Qwen 3.6, Opus 4.7, GPT-5.5, and Gemini 3.1 Pro in production across coding pipelines, multimodal content systems, and multi agent workflows for enterprise clients. We architect systems that use the right model at each stage rather than defaulting to a single provider. Ready to make the right call for your stack? Book a free technical audit, no sales pitch, just clarity.

[ 02 ] — Keep Reading

More from the lab.

Ready when you are

Want to discuss this topic?

Start a Conversation