AI Model TrackerLLM prices & token cost calculator

Google

Gemma 4 31B pricing and cost calculator

Gemma 4 31B from Google costs $0.20 per million input tokens and $0.40 per million output tokens, with a context window of 262,144 tokens. It was released on Apr 2, 2026.

Input price
$0.20
Output price
$0.40
Context window
262,144
Released
Apr 2, 2026

Token cost calculator

ModelPer requestPer dayPer month (30 days)
Gemma 4 31B$0.0004$0.40$12.00
Claude Haiku 5.5$0.00035$0.35$10.50
≈ 0 tokens

Token estimate: about 4 characters per token for English, about 1 token per character for Chinese, Japanese and Korean. Exact counts depend on each model's tokenizer.

Price and specs

Input price$0.20 / 1M
Output price$0.40 / 1M
Context window262,144
Max output16,384
Acceptsimages, text, video
Producestext
Reasoning modeYes
Tool / function callingYes
Structured (JSON) outputYes
Open weightsYes
ReleasedApr 2, 2026

What typical workloads cost

1,000 chat replies (1,000 input + 500 output tokens each)$0.40
Summarise a 100-page document (≈50,000 input + 1,000 output tokens)$0.01
1 million input + 1 million output tokens$0.60

Prices are list prices in USD per 1 million tokens from OpenRouter's public model list, refreshed daily. Direct provider prices, batch discounts and regional pricing may differ.

Cheaper models with at least the same context window

Similarly priced models from other providers

More Google models

About Gemma 4 31B

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...

Gemma 4 31B FAQ

How much does Gemma 4 31B cost?
Gemma 4 31B costs $0.20 per 1M input tokens and $0.40 per 1M output tokens. 1,000 replies with 1,000 input and 500 output tokens each cost about $0.40.
What is the context window of Gemma 4 31B?
Gemma 4 31B accepts up to 262,144 tokens of context and can return up to 16,384 tokens in one response.
Can Gemma 4 31B read images?
Yes. Gemma 4 31B accepts images, text, video as input.
What is a cheaper alternative to Gemma 4 31B?
Cheaper models with at least the same context window include Claude Haiku 5.5, Muse Ember, DeepSeek V4.1 Flash 1017.