Gemma 4 31B (free)

Google chatreasoningtool_usevideovision Long Free

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

Input Price
Free
/1M tokens
Output Price
Free
/1M tokens

About Gemma 4 31B (free)

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

๐Ÿ†
Price Ranking
#6 lowest price among 1240 Chat models โ€” Top 20% cheapest!

Model Specifications

Context Length
262k
Max Output
33k
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)
๐ŸŽ‰

This model is completely free!

No token costs - use it without worrying about API bills.

Estimate Token Usage

Google Model Lineup

Compare all models from Google to find the best fit

Model Input Output Context Capabilities
Gemma 4 31B (free) 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

Alibaba Qwen Qwen2.5-VL 7B Instruct
Input: Free
Output: Free
Context: 33k
ByteDance Seedream 4.5
Input: Free
Output: Free
Context: 4k
Black Forest Labs FLUX.2 Max
Input: Free
Output: Free
Context: 47k
Other Riverflow V2 Max Preview
Input: Free
Output: Free
Context: 8k

๐Ÿš€ Quick Start

Get started with Gemma 4 31B (free) 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)