Gemma 4 31B

Google chatreasoningtool_usevideovision Long

API ID: google/gemma-4-31b-it-20260402

Input Price
$0.99
/1M tokens
Output Price
$1.49
/1M tokens
Cached Input
$0.99
Save 0%

About Gemma 4 31B

Gemma 4 31B is a mid-range general-purpose model from Google with ultra-long context (262k), suitable for conversations, content creation, and general AI tasks.

๐Ÿ’ฐ
Price Ranking
#974 lowest price among 1240 Chat models

Model Specifications

Context Length
262k
Max Output
41k
Release Date
2026-04-02
Capabilities
chat reasoning tool_use video vision
Input Modalities
imagetextvideo
Output Modalities
text

Best For

  • Complex reasoning, math problems, multi-step logic
  • Image analysis, document understanding, visual Q&A
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Simple Q&A (cheaper models available)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.89
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$28.26
/month
1000 tickets/day, ~800 tokens each
Data Analysis Pipeline
$40.16
/month
500 analyses/day, ~2k tokens each

Google Model Lineup

Compare all models from Google to find the best fit

Model Input Output Context Capabilities
Gemma 4 31B Current Free Free 262k chat reasoning tool_use video vision
Gemma 3n 4B Free Free 33k chat
Gemini 2.5 Flash Image Preview (Nano Banana) Free Free 33k chat vision image_gen
Gemma 3n 2B (free) Free Free 8k chat tool_use
Gemma 1 2B Free Free 8k chat
Gemma 1 2B Free Free 8k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Moonshot AI Kimi K2.7 Code (batch)
Input: $0.47
Output: $2.00
Context: 262k
Moonshot AI Kimi K2 Thinking
Input: $0.47
Output: $2.00
Context: 262k
Deepcogito Cogito v2.1 671B
Input: $1.25
Output: $1.25
Context: 128k
Zhipu Ai GLM 4.6 (exacto)
Input: $0.50
Output: $2.00
Context: 205k

๐Ÿš€ Quick Start

Get started with Gemma 4 31B API

Google AI Python SDK
import google.generativeai as genai

genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemma-4-31b-it-20260402")

response = model.generate_content("Hello!")
print(response.text)