Gemma 2 2B IT
Googlegoogle/gemma-2-2b-itOpen WeightsSmall open Gemma 2 instruction model for lightweight chat and on-device use
TECHNICAL SPECIFICATIONS
MODEL CONTEXT PROTOCOL (MCP) READINESS
⚠ Gemma 2 2B IT does not natively advertise tool-calling capabilities. When connecting to MCP servers, function calling must be handled via structured prompt injection.
MCP Context Window Recommendations
With a context capacity of 8,192 tokens, this model can handle compact tool sets. Consider keeping MCP server tool manifests minimal to preserve headroom.
API CALL INVOCATION EXAMPLE
// Example: Calling Gemma 2 2B 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-2-2b-it",
messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});
console.log(response.choices[0].message.content);PRICING BY PROVIDER
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
Fast Gemini model balancing multimodal reasoning, tool use, and cost
Fast Gemini workhorse for multimodal apps where latency and price matter
Video generation and editing model for scene extension, frame interpolation, and reference-guided multimodal control