Gemma 4 31B API pricing & setup
As of 2026-10-17, the cheapest Gemma 4 31B channel is OpenRouter: $0.14 input / $0.4 output per 1M tokens (blended $0.205). Context 262K.
→ Gemini hub: all prices, free access, setup
Context: 262K · Max output: 16K · Modalities: image, text, video · Listed: 2026-04-02
Channel comparison (per 1M tokens)
| Channel | Blended | Input | Output | Cached | Access & payment (this channel) | Notes | Source |
|---|---|---|---|---|---|---|---|
| OpenRouterThird-party host $0.14 / $0.4 | $0.205 | $0.14 | $0.4 | $0.14 | ✓CN direct✓Alipay✗ID✗Intl card conditions source2026-10-17 | Third-party host: Crusoe (bf16) Quantized min $0.1 / $0.34 (fp4, CoreWeave) | openrouter.ai 2026-10-17 |
Access & payment conditions are verified per channel (see the column above); unverified never counts as met.
Free & deals
- Free on OpenRouter: Google: Gemma 4 31B (free) (context 262,144), rate-limited · official
How to use Gemma 4 31B in Claude Code / Codex / OpenCode
Provider-specific setup not yet verified. Generic setup: guides
Cheaper alternatives
GPT-6 Luna ($0.2) · Claude Haiku 5.5 ($0.2) · GLM-5.3 Flash ($0.194) ·
Related comparisons
Gemini 3.8 Flash vs GPT-6 Luna · Claude Haiku 5.5 vs Gemini 3.5 Flash-Lite · Gemini 4 Argon vs GPT-6.1 Sol · Compare any two →
Rankings: Cheapest LLM APIs · LLM APIs usable from mainland China · All Google Gemini models
Price history
- 2026-10-17 · OpenRouter · Gemma 4 31B cached: $null → $0.14 (OpenRouter basis change: model list price → Crusoe (third-party host); not a provider price change)
- 2026-10-17 · OpenRouter · Gemma 4 31B input: $0.2 → $0.14 (OpenRouter basis change: model list price → Crusoe (third-party host); not a provider price change)
- 2026-10-17 · OpenRouter · Gemma 4 31B listed · $0.2 / $0.4
FAQ
How much does the Gemma 4 31B API cost?
Cheapest channel (OpenRouter): $0.14 input / $0.4 output per 1M tokens, verified 2026-10-17.
Can I use Gemma 4 31B from China?
OpenRouter: direct yes, Alipay yes, ID required no, overseas card no
Is Gemma 4 31B free?
Free on OpenRouter: Google: Gemma 4 31B (free) (context 262,144), rate-limited
What is Gemma 4 31B's context window?
262K tokens