Google · Chat Completions

Gemma 4 26B A4B API

gemma-4-26b

Gemma 4 26B A4B from Google, served through RouterHub on the OpenAI-compatible Chat Completions API. $0.05 input / $0.15 output per million tokens.

Gemma 4 26B A4B pricing

Input
$0.05
Cached input
$0.05
Output
$0.15
Typical message
≈ 0.013¢

8,000 input + 2,000 output tokens = $0.0007 before caching.

USD per 1 million tokens. A typical message is about 1,000 input and 500 output tokens. Cached input uses the cache-read rate when a cache hit is reported. Billed from your prepaid balance.

Compare Gemma 4 26B A4B variants

RouterHub token prices, USD per 1 million tokens
Model / exact API IDInput / 1MCached / 1MOutput / 1MContextActions
Gemma 4 26B A4Bgemma-4-26b $0.050 $0.050 $0.15 262K Chat
Gemma 4 26B A4B UncensoredUncensoredgemma-4-26b-uncensored $0.19 $0.19 $0.88 262K Chat

API compatibility and context

Exact model ID
gemma-4-26b
Provider
Google
Variant
Standard
Supported API
OpenAI-compatible Chat Completions API (/v1/chat/completions)
Availability
Preview
Context window
262,144 tokens
Maximum input
Not published
Maximum output
131,072 tokens

Use Gemma 4 26B A4B through the API

Create a RouterHub account, add prepaid credits and create an API key. Set ROUTERHUB_API_KEY locally, then send a first request with the exact model ID.

cURL
curl --connect-timeout 30 --max-time 600 https://routerhub.si/v1/chat/completions \
  -H "Authorization: Bearer $ROUTERHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemma-4-26b","messages":[{"role":"user","content":"Write a short noir scene set in a lighthouse."}],"max_tokens":256}'

Python: install openai with pip. The example requests 256 output tokens and disables automatic retries, so check Usage before resending a paid request.

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ROUTERHUB_API_KEY"],
    base_url="https://routerhub.si/v1",
    timeout=600.0,
    max_retries=0,
)
response = client.chat.completions.create(
    model="gemma-4-26b",
    messages=[{"role": "user", "content": "Write a short noir scene set in a lighthouse."}],
    max_tokens=256,
)
print(response.choices[0].message.content)

Compatible with the tools you already use

One key, one base URL.

Common questions

What is Gemma 4 26B A4B?

Gemma 4 26B A4B is a Google language model served through RouterHub using the OpenAI-compatible Chat Completions API. Its exact API model ID is gemma-4-26b.

How much does Gemma 4 26B A4B cost?

RouterHub charges $0.05 input, $0.05 cached input and $0.15 output per million tokens. A typical chat message of about 1,000 input and 500 output tokens costs about 0.013¢. Usage is billed against your prepaid balance.

What is the Gemma 4 26B A4B context window?

Context window: 262,144 tokens. Maximum input: Not published. Maximum output: 131,072 tokens.

Which API does Gemma 4 26B A4B support?

Use the OpenAI-compatible Chat Completions API at https://routerhub.si/v1/chat/completions with the exact model ID gemma-4-26b and your RouterHub API key (Authorization: Bearer header).

Which coding tools work with Gemma 4 26B A4B?

OpenCode, VS Code + Continue, VS Code + Cline, Hermes Agent. Each setup guide lists only compatible model IDs.

Can I try Gemma 4 26B A4B for free?

Gemma 4 26B A4B needs a free RouterHub account with prepaid credits. New accounts get $5 free on their first top-up of $20 or more.

Related models and guides