Gemma 3 12B IT

GoogleMCP Tool Call
google/gemma-3-12b-itOpen Weights

Open multimodal Gemma instruction model for multilingual text generation and image understanding

Benchmark Pricing$0.27 / 1M in$0.27 / 1M out$0.14 cache read
Context: 131,072 tokens•Max Output: 131,072 tokens•Knowledge: 2024-08•Released: 2025-03-12

TECHNICAL SPECIFICATIONS

Context Window131,072131.1K tokens
Max Output131,072131.1K tokens
LicenseOpen SourceSelf-hostable
Input Modalities
TextVision
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ Gemma 3 12B 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 3 12B 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-3-12b-it",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

12 providers
NanoGPTunsloth/gemma-3-12b-it
$0.27 / $0.27$0.14 cache
Novita AIgoogle/gemma-3-12b-it
$0.05 / $0.10
AI/ML APIgoogle/gemma-3-12b-it
$0.07 / $0.21$0.06 cache
Eden AIamazon/google.gemma-3-12b-it
$0.09 / $0.29
Merge Gatewaygoogle/gemma-3-12b-it
$0.09 / $0.29
Hugging Facegoogle/gemma-3-12b-it
$0.05 / $0.15
Nvidiagoogle/gemma-3-12b-it
$0.00 / $0.00
Amazon Bedrockgoogle.gemma-3-12b-it
$0.09 / $0.29
Kilo Gatewaygoogle/gemma-3-12b-it
$0.04 / $0.12
Deep Infragoogle/gemma-3-12b-it
$0.05 / $0.15
Heliconegemma-3-12b-it
$0.05 / $0.10
OpenRoutergoogle/gemma-3-12b-it
$0.05 / $0.15

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $0.14 / 1M tokens, saving up to 50% on repetitive MCP tool definitions and system instructions.