Pricing per million tokens, context window, capabilities — pulled from each provider's public docs. All 2 are available via the same AIgateway OpenAI-compatible endpoint; flip the model string to switch.
Gemma 4 is Google's most intelligent family of open models, built from Gemini 3 research to maximize intelligence-per-parameter.
Gemma 3 models are well-suited for a variety of text generation and image understanding tasks, including question answering, summarization, and reasoning. Gemma 3 models are multimodal, handling text and image input and generating text output, with a large, 128K context window, multilingual support in over 140 languages, and is available in more sizes than previous versions.
from openai import OpenAI
client = OpenAI(
base_url="https://api.aigateway.sh/v1",
api_key="sk-aig-...",
)
# Gemma-4-26b-A4b-IT
client.chat.completions.create(
model="google/gemma-4-26b-a4b-it",
messages=[{"role":"user","content":"hello"}],
)
# Gemma-3-12b-IT
client.chat.completions.create(
model="google/gemma-3-12b-it",
messages=[{"role":"user","content":"hello"}],
)