中文

Prices › Google Gemini

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)

ChannelBlendedInputOutputCachedAccess & payment (this channel)NotesSource
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

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

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