Gemma 3 (12B) API

Gemma 3 12B is a mid-size open language model from Google offering a balance of capability and efficiency.

Modalities
Text, ImageText
In / Out price
$0.0529/$0.1587per 1M
Context window
131K tokens
Released
Sep 9, 2025

Gemma 3 (12B) overview

Gemma 3 (12B) by Google

Gemma 3 (12B), Google's newest open AI model, offers smooth handling of text and images in over 140 languages.

Gemma 3 (12B) specs

Model ID
google/gemma-3-12b-it
Developer
Google
Context window
131,000 tokens
Max output
96,000 tokens
Input
Text, Image
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Gemma 3 (12B) Description

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.

Technical Specifications

  • Modalities: Text and Vision input processing
  • Multilingual Support: Over 140 languages
  • Deployment: Optimized for resource-constrained hardware including single-GPU systems

Key Features

  • Multimodal Processing: Effectively handles and generates content from both textual and visual data, providing a comprehensive understanding for diverse applications.
  • Extended Context Handling: Supports very long documents or multimodal inputs with 131K tokens of context.
  • Global Language Coverage: Broad multilingual abilities for translation, communication, and content generation across 140+ languages.
  • Efficient and Scalable Deployment: Suitable for a variety of environments, ensuring efficient operation even on devices with limited computational resources​


Ethical Guidelines

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.

Licensing

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.

Use cases

  • AI assistants with advanced multimodal capabilities
  • Long document analysis and content summarization
  • Multilingual content generation and translation tools
  • Visual content interpretation and Q&A systems
  • Research and development applications requiring extended context
  • Intelligent automation and agentic systems using function calling

Capabilities

  • Streaming
  • Structured outputs

Gemma 3 (12B) benchmarks by Artificial Analysis

See how Gemma 3 (12B) scores on independent evaluations. Data retrieved Nov 3, 2026.

Benchmark results

Compare 6 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

Gemma 3 (12B) API pricing

Gemma 3 (12B) pricing in US dollars
UsagePriceUnit
Input$0.05291M tokens
Output$0.15871M tokens
Cached input$0.04231M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Gemma 3 (12B) vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Gemma 3 (12B)$0.0529$0.1587
Gemini 3.5 Flash Lite$0.3$2.5
Gemini 3.8 Flash$0.75$3.75
Gemini 3.7 Flash$0.75$3.75
Gemini 4 Argon$2$10

How to use the Gemma 3 (12B) API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl '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": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

Gemma 3 (12B) FAQ

What is the context window of Gemma 3 (12B)?

Gemma 3 (12B) has a 131,000 tokens context window and can return up to 96,000 tokens.

What inputs and outputs does Gemma 3 (12B) support?

Gemma 3 (12B) takes image, text as input and returns text.

What is the model ID for Gemma 3 (12B)?

Use google/gemma-3-12b-it as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

When was Gemma 3 (12B) released?

Gemma 3 (12B) became available on September 9, 2025.

How much does Gemma 3 (12B) cost?

Gemma 3 (12B) costs $0.0529 input and $0.1587 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does Gemma 3 (12B) support streaming?

Yes, Gemma 3 (12B) can stream responses as they are generated.

Can Gemma 3 (12B) read images?

Yes, Gemma 3 (12B) accepts image input alongside text.

Who created Gemma 3 (12B)?

Gemma 3 (12B) was built by Google.

Start building with Gemma 3 (12B)

Gemma 3 (12B) API

google/gemma-3-12b-it

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl '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": "Write a haiku about the ocean."
    }
  ]
}'