AI model comparison

Gemma 4 31B vs Qwen3 235B A22B Instruct 2507

Pricing, context window, benchmarks, and features compared side by side. Or skip the guesswork and send one prompt to both.

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.

Input / 1M
$0.20
Output / 1M
$0.40
Context
262K

Qwen3-235B-A22B-Instruct-2507 is a multilingual, instruction-tuned mixture-of-experts language model based on the Qwen3-235B architecture, with 22B active parameters per forward pass.

Input / 1M
$0.09
Output / 1M
$0.55
Context
262K

Comparing image generators? Compare image models

At a glance

Quick verdict

How the two models stack up on the things people ask about most.

Lower price

qwen logo

Qwen3 235B A22B Instruct 2507

1.3x cheaper for a typical chat

Higher intelligence score

google logo

Gemma 4 31B

14.7 vs 12 on Artificial Analysis

Larger context window

Tie

262K vs 262K tokens

Newer release

google logo

Gemma 4 31B

Released April 2, 2026

Benchmarks

Benchmark scores

Independent scores from Artificial Analysis. Higher is better.

Intelligence index

google logoGemma 4 31B14.7
qwen logoQwen3 235B A22B Instruct 250712

Coding index

google logoGemma 4 31B43.4
qwen logoQwen3 235B A22B Instruct 2507Not available

Agentic index

google logoGemma 4 31B4.2
qwen logoQwen3 235B A22B Instruct 2507Not available

Pricing

Gemma 4 31B vs Qwen3 235B A22B Instruct 2507 API pricing

Per-token API rates. Cheaper option highlighted.

Metricgoogle logoGemma 4 31Bqwen logoQwen3 235B A22B Instruct 2507
Input tokensPer 1M tokens$0.20$0.09
Output tokensPer 1M tokens$0.40$0.55
Cached input (read)Per 1M tokensNot availableNot available
Cache writePer 1M tokensNot availableNot available

What it costs in practice

Estimated cost per 1,000 requests at standard rates. Coding and long-document figures also show the cost when the input is already cached.

Chat message

2K in, 500 out

google logoGemma 4 31B$0.60
qwen logoQwen3 235B A22B Instruct 2507$0.46

Coding task

30K in, 4K out

google logoGemma 4 31B$7.60
qwen logoQwen3 235B A22B Instruct 2507$4.90

Long document summary

150K in, 2K out

google logoGemma 4 31B$30.80
qwen logoQwen3 235B A22B Instruct 2507$14.60

Specs

Context window and capabilities

How much each model can read, how much it can write, and what it accepts as input.

Metricgoogle logoGemma 4 31Bqwen logoQwen3 235B A22B Instruct 2507
Context window262K tokens262K tokens
Max output16K tokens16K tokens
Input typesImage, Text, VideoText
Output typesTextText
Reasoning effort levelsNot availableNot available
Default reasoning effortNot availableNot available
Release dateApril 2, 2026July 21, 2025

Features

Supported features

API features available for each model.

Metricgoogle logoGemma 4 31Bqwen logoQwen3 235B A22B Instruct 2507
Tool callingSupportedSupported
Structured outputsSupportedSupported
JSON modeSupportedSupported
ReasoningSupportedNot supported
TemperatureSupportedSupported
Stop sequencesSupportedSupported
Deterministic seedSupportedSupported
Verbosity controlNot supportedNot supported

Our take

Qwen3 235B A22B Instruct 2507 is 1.3x cheaper for a typical chat. Gemma 4 31B scores higher on the Artificial Analysis Intelligence Index (14.7 vs 12). The right pick depends on your workload, so the quickest way to settle it is to send the same prompt to both and compare.

FAQ

Frequently asked questions

Is Gemma 4 31B or Qwen3 235B A22B Instruct 2507 cheaper?

Qwen3 235B A22B Instruct 2507 is cheaper for a typical chat (2K input tokens and 500 output tokens). Qwen3 235B A22B Instruct 2507 costs $0.09 per 1M input tokens and $0.55 per 1M output tokens, while Gemma 4 31B costs $0.20 per 1M input tokens and $0.40 per 1M output tokens.

Which has a bigger context window, Gemma 4 31B or Qwen3 235B A22B Instruct 2507?

Gemma 4 31B supports up to 262K tokens of context, compared with 262K for Qwen3 235B A22B Instruct 2507.

Is Gemma 4 31B smarter than Qwen3 235B A22B Instruct 2507?

On the Artificial Analysis Intelligence Index, Gemma 4 31B scores 14.7 and Qwen3 235B A22B Instruct 2507 scores 12, putting Gemma 4 31B ahead. Benchmarks don't capture everything, so the best test is running your own prompts through both.

Can I use Gemma 4 31B and Qwen3 235B A22B Instruct 2507 at the same time?

Yes. Shortcut Chat sends one prompt to multiple models at once, so you can see Gemma 4 31B and Qwen3 235B A22B Instruct 2507 answer side by side and keep the better response.

google logoqwen logo

Why choose? Ask both.

Send one prompt to Gemma 4 31B and Qwen3 235B A22B Instruct 2507 at the same time. Compare the answers side by side and keep the best one.