Gemma 3 (12B) is a state-of-the-art multimodal large language model that integrates advanced text and vision processing capabilities. It features an extended 131,000-token context window, enabling deep understanding and generation over extensive inputs. Designed for versatile deployment, it balances high performance with efficiency across a wide range of devices, from mobile phones to high-end workstations.
Google commits to ethical AI development by maintaining transparency about Gemma 3’s capabilities and limitations. The company advocates for responsible use of the model to minimize risks of misuse or unintended harmful outputs.
Gemma 3 is offered under the Gemma Terms of Use, granting a commercially-friendly license that supports both research and commercial applications, while ensuring alignment with ethical standards.
Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.
import requests r = requests.post( "https://api.aimlapi.com/v1/chat/completions", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "google/gemma-3-12b-it", "messages": [ { "role": "user", "content": "Hello!" } ] }, ) print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", { method: "POST", headers: { Authorization: `Bearer ${process.env.AIMLAPI_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "model": "google/gemma-3-12b-it", "messages": [ { "role": "user", "content": "Hello!" } ] }), }); console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \ -H "Authorization: Bearer $AIMLAPI_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"google/gemma-3-12b-it","messages":[{"role":"user","content":"Hello!"}]}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
| Benchmark | Score | What it measures | Source | Retrieved |
|---|---|---|---|---|
| Intelligence | 3.8 | Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial Analysis | Source | September 22, 2026 |
| Coding | 5.8 | Composite score across standardised coding evaluations, measured independently by Artificial Analysis | Source | September 22, 2026 |
| Math | 18.3 | Composite score across standardised mathematics evaluations, measured independently by Artificial Analysis | Source | September 22, 2026 |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Gemma 3 (12B) This page | Chat + assistants | |||
| Reasoning + agents | ||||
| Balanced coding + agents | ||||
| Long-context, multimodal & agentic workflows | ||||
| Reasoning + agents |
Gemma 3 (12B) has a 131,000 tokens context window and can return up to 96,000 tokens.
Gemma 3 (12B) takes image, text as input and returns text.
Use google/gemma-3-12b-it as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Gemma 3 (12B) became available on September 9, 2025.
Gemma 3 (12B) is priced at input $0.06877 / 1M tokens, output $0.20631 / 1M tokens, cached input $0.055016 / 1M tokens.
Yes, Gemma 3 (12B) can stream responses as they are generated.
Yes, Gemma 3 (12B) accepts image input alongside text.
Gemma 3 (12B) was built by Google.