Gemma 4 31B vs Llama 4 Maverick
Gemma 4 31B (Google) and Llama 4 Maverick (Meta) are listed at different prices. Gemma 4 31B costs less: $0.30 per 1M input tokens and $0.60 per 1M output tokens, against $0.525 and $1.50 for Llama 4 Maverick. Llama 4 Maverick has the larger context window, 524,288 tokens against 262,144 for Gemma 4 31B. Llama 4 Maverick can write up to 32,768 tokens in one response, against 16,384 for Gemma 4 31B. Gemma 4 31B accepts text, images and video and produces text; Llama 4 Maverick accepts text and images and produces text.
Google: Gemma 4 31B accepts text, images, and video, while Meta: Llama 4 Maverick accepts text and images; both produce text and support tools, structured outputs, and response formats. Gemma 4 31B has a 262,144-token context window, compared with 524,288 tokens for Llama 4 Maverick.
Compared from catalog data checked
Side by side
0.00 the better figure in a row| Specification | Gemma 4 31B | Llama 4 Maverick |
|---|---|---|
| Maker | Meta | |
| Added to catalog | 2 Apr 2026 | 5 Apr 2025 |
| Input, per 1M tokens | $0.30 | $0.525 |
| Output, per 1M tokens | $0.60 | $1.50 |
| Cached input read, per 1M | n/a | $0.255 |
| Context windowTokens | 262,144 | 524,288 |
| Max outputTokens | 16,384 | 32,768 |
| Accepts | image, text, video | image, text |
| Produces | text | text |
| Tool calling | Yes | Yes |
| Structured outputs | Yes | Yes |
| Reasoning effort control | No | No |
Prices on Upend, in US dollars. Each model's page has its variants, price history and sample outputs.
What the same task costs
The price of one request on Upend, from the token counts shown. The same four tasks are priced on every model page.
| Task | Gemma 4 31B | Llama 4 Maverick |
|---|---|---|
| Answer a short question500 in / 300 out | $0.0003 | $0.0007 |
| Summarise a 50-page PDF25,000 in / 800 out | $0.0080 | $0.014 |
| Review a 2,000-line source file30,000 in / 2,000 out | $0.010 | $0.019 |
| Read a 300-page contract set150,000 in / 1,500 out | $0.046 | $0.081 |
Which to choose
Choose Gemma 4 31B if
- Input tokens cost less: $0.30 against $0.525 per 1M
- Output tokens cost less: $0.60 against $1.50 per 1M
- It has to read video, which the other model does not
Choose Llama 4 Maverick if
- Cached input costs less: $0.255 against n/a per 1M
- You need the larger context window: 524,288 tokens against 262,144
- You need longer answers in one response: 32,768 tokens against 16,384
Neither maker's quality claims are repeated here. The reliable test is your own task: ask both the same question and read the two answers.