google/gemma-4-E2B-itOpen WeightsOpen Gemma instruction model for efficient chat and self-hosted deployments
Benchmark Pricing$0.04 / 1M in$0.08 / 1M out
Context: 131,072 tokens•Max Output: 8,192 tokens•Released: 2026-04-02
TECHNICAL SPECIFICATIONS
Context Window131,072131.1K tokens
Max Output8,1928.2K tokens
LicenseOpen SourceSelf-hostable
Input Modalities
TextVisionAudio
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema
MODEL CONTEXT PROTOCOL (MCP) READINESS
✓ Gemma 4 E2B IT natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.
MCP Context Window Recommendations
With a context capacity of 131,072 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.
API CALL INVOCATION EXAMPLE
// Example: Calling Gemma 4 E2B IT via OpenAI SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.GOOGLE_API_KEY,
});
const response = await client.chat.completions.create({
model: "google/gemma-4-E2B-it",
messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});
console.log(response.choices[0].message.content);PRICING BY PROVIDER
Amazon Bedrockgoogle.gemma-4-e2b
$0.04 / $0.08
Pioneergoogle/gemma-4-E2B-it
$0.10 / $0.10$0.10 cache
Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.
MODEL RESOURCES
More Models by Google
Alternative and family models from the same lab
Gemini 3.6 Flash
google/gemini-3.6-flash•Google
Fast Gemini model balancing multimodal reasoning, tool use, and cost
65.5K out maxVisionPDFSWE-Bench Pro: 58.7 resolve rate
In: $0.75 • Out: $3.75
GoogleGemini 2.5 Flash
google/gemini-2.5-flash•Google
Fast Gemini workhorse for multimodal apps where latency and price matter
65.5K out maxVisionPDFAider Polyglot: 55.1 percent correct
In: $0.30 • Out: $2.50
GoogleGemini Omni 1.1 Flash
google/gemini-omni-1.1-flash•Google
Video generation and editing model for scene extension, frame interpolation, and reference-guided multimodal control
57.9K out maxVision
In: $1.52 • Out: $9.09
Google