Gemma 4 E2B IT

GoogleMCP Tool CallReasoning
google/gemma-4-E2B-itOpen Weights

Open 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

2 providers
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.