Gemma 4 31B IT vs Qwen4-Max
Gemma 4 31B IT (Google DeepMind, April 2026) and Qwen4-Max (Alibaba, November 2026), compared on price, context window, access and specs. They cost the same: free. Qwen4-Max reads more at once: a 1M-token context window against 262K. Gemma 4 31B IT has open weights, so you can also run it on your own hardware.
Updated 5 December 2026 · read each row across; the best value in a row is marked
Google DeepMind
Alibaba
At a glance
- Tasks
Language modeling
Language generation
Question answering
Language modeling
Language generation
Question answering
- Released
- 2 April 2026
- 16 November 2026
- Access
- Open weights (restricted use)
- API access
- Country
- United States of America
- China
Price and API
- Input, per 1M tokens
- $0on Google AI StudioLowest
- $1.41on DeepInfra
- Output, per 1M tokens
- $0on Google AI StudioLowest
- $4.24on DeepInfra
- Where to run it
- Google AI StudioDeepInfraAmazon BedrockOpenRouterAll 6 providers
- DeepInfraNovita AIOpenRouterAlibaba Cloud Model StudioAll 6 providers
- Official API id
google/gemma-4-31b-italibaba/qwen4-max- Context window
- 262K tokens
- 1M tokensLargest
- Max output
- 33K tokens
- 262K tokensLargest
- Takes
- Text, Image
- Text, Image, Video, PDF
- Returns
- Text
- Text
- Supports
- ReasoningTool callingStructured outputFile inputOpen weights
- ReasoningTool callingStructured outputFile input
Scale and training
- Parameters
- 31B31,000,000,000
- Not listed
- Confidence
- Likely
- Confident
In their own words
- Abstract
We introduce Gemma 4, a new generation of open-weight, natively multimodal language models in the Gemma model family. Designed to advance compute efficiency and reasoning, the Gemma 4 model suite features dense and Mixture-of-Experts architectures, ranging from 2.3B to 31B parameters. Alongside improved vision and audio encoders for all model sizes, we propose a unified, encoder-free architecture for our 12B model, which ingests raw audio and image patches. Furthermore, we integrate a thinking mode, enabling Gemma models to generate reasoning traces prior to responding. We improve inference speed, memory, and compute efficiency, as well as long-context abilities through critical design choices. Gemma 4 establishes a leap in performance across STEM, multimodal, and long-context benchmarks, and rivals larger, frontier open models in human-rated tasks.Read all
- Not listed
- Authors
- Sherif El Abd, Vaibhav Aggarwal, Robin Algayres, Alek Andreev, Olivier Bachem, Ian Ballantyne, Cormac Brick, Victor Cărbune and 314 more
- Not listed
Which should you pick?
- Long documents, codebases or transcripts
- Qwen4-Max · 1M tokens of context, 3.8× more than Gemma 4 31B IT.
- Long answers in one response
- Qwen4-Max · Up to 262K output tokens per response.
- Self-hosting or fine-tuning
- Gemma 4 31B IT · Open weights: you can download them and run them on your own GPUs.
Questions people ask
Is Gemma 4 31B IT better than Qwen4-Max?
It depends on the job. For long documents, codebases or transcripts, Qwen4-Max has the edge: 1M tokens of context, 3.8× more than Gemma 4 31B IT. For long answers in one response, Qwen4-Max has the edge: up to 262K output tokens per response. For self-hosting or fine-tuning, Gemma 4 31B IT has the edge: open weights: you can download them and run them on your own GPUs. Try them on your own prompts in the AIPortalX playground before you commit.
Which is cheaper: Gemma 4 31B IT or Qwen4-Max?
They are priced the same, at free.
Which has the bigger context window?
Qwen4-Max, with 1M tokens; Gemma 4 31B IT takes 262K. A larger window lets one request hold longer documents or conversations.
Where can I use Gemma 4 31B IT and Qwen4-Max through one API?
DeepInfra and OpenRouter serve all of them, so you can switch models without opening another account.
When were they released?
Gemma 4 31B IT in April 2026 and Qwen4-Max in November 2026.