← All Models

Google: Gemma 4 31B

🇺🇸 Google · Gemma 4

Input Price $0.120 per million tokens NT$3.8
Output Price $0.350 per million tokens NT$11.2
Context Window 262K tokens Output limit: 262K
OpenRouter Route Price Please verify with official pricing pages
Use this model via OpenRouter →

Overview

Google: Gemma 4 31B is a large language model API from Google, part of its Gemma 4 model family. At $0.120 per million input tokens and $0.350 per million output tokens, it sits in the budget tier — among the cheaper options for high-throughput or cost-sensitive workloads. Output tokens cost about 3× as much as input, so prompt-heavy workloads run noticeably cheaper than generation-heavy ones. A large 262K-token context window (≈393 pages of text) lets it take in whole books, large codebases, or lengthy transcripts in a single call. Beyond plain text it also accepts Image, Video input, so it can be applied to multimodal tasks rather than text alone. On Artificial Analysis's Intelligence Index it scores 29 (C grade), a useful proxy for its general reasoning strength relative to the other models tracked here. All prices on this page reflect OpenRouter's routed rates and are re-synced automatically every day; confirm against the provider's official pricing before committing to production.

Dimension Unit Price (USD) Price (TWD) Effective From
Input per 1M tokens $0.120 NT$3.8
Output per 1M tokens $0.350 NT$11.2
Cached Input per 1M tokens $0.090 NT$2.9

Provider
Google
Model Family
Gemma 4
Version String
google/gemma-4-31b-it
Status
Active
Modality
Image, Text, Video
Context Window
262,144 tokens
Output Limit
262,144 tokens

Index Metrics

Cross-domain capability indexes evaluated by Artificial Analysis — Artificial Analysis

Agentic Index 14 F Measured: 2026-07-01
Coding Index 43 B Measured: 2026-07-01
Intelligence Index 29 C Measured: 2026-07-01

Benchmark Scores

Data source: Artificial Analysis

AA-LCR 62.0% B Measured: 2026-07-01
GPQA Diamond 85.7% S Measured: 2026-07-01
HLE 22.7% A Measured: 2026-07-01
IFBench 75.6% A Measured: 2026-07-01
IFBench 75.6% A Measured: 2026-07-01
MMMU Pro 73.4% B Measured: 2026-07-01
Non-Hallucination 18.4% Measured: 2026-07-01
Omniscience Accuracy 19.9% Measured: 2026-07-01
SciCode 43.4% B Measured: 2026-07-01
Tau2 59.9% Measured: 2026-07-01
TerminalBench 36.4% Measured: 2026-07-01

Performance Metrics

Real-world benchmarks, updated every 72 hours by Artificial Analysis — Artificial Analysis

First Token Latency 1.1s Measured: 2026-07-01
Output Speed 35 t/s Measured: 2026-07-01
Response Time 64.9s Measured: 2026-07-01

90-Day Price Trend

Input / Output price (USD per 1M tokens)

Past 90 days of records; every price change is shown here

Date Dimension Price (USD) Source
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter
Input $0.120 OpenRouter
Cached Input $0.090 OpenRouter
Output $0.350 OpenRouter

Key Insights

Key data points from this page for quick reference and citation.

  • Google: Gemma 4 31B Input price: $0.12/M tokens
  • Google: Gemma 4 31B Output price: $0.35/M tokens
  • Context window: 262,144 tokens
  • Provider: Google
  • Model family: Gemma 4
  • Modalities: Image, Text, Video
  • Data source: OpenRouter, updated daily