Gemma 4 26B A4B
By Google. 25.8 billion parameters, a context window of 262,144 tokens and the licence apache-2.0.
Facts
- Released
- 2026-03-11 the day the repository was first published on Hugging Face Hugging Face, read
- Licence
- apache-2.0 the licence the model card declares Hugging Face, read
- Open weights
- Yes the weights are published in this Hugging Face repository Hugging Face, read
- Parameters
- 25.8 billion counted from the safetensors weight files Hugging Face, read
- Active parameters
- Unknown
- Knowledge cutoff
- Unknown
- Context window
- 262,144 tokens the maximum position embeddings in the model configuration model configuration, read
- 262,144 tokens the context length OpenRouter lists OpenRouter, read
- Longest output
- 235,929 tokens the largest output OpenRouter's first provider allows OpenRouter, read
- Tool calling
- Yes OpenRouter lists tools among the supported parameters OpenRouter, read
- Structured output
- Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
- Reasoning controls
- Yes OpenRouter lists reasoning controls OpenRouter, read
- Inputs and outputs
- text, image in, text out Hugging Face, read
- Good for
- Vision: Hugging Face files it under image-text-to-text Hugging Face, read
- Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read
Prices
| Provider | Input | Output | Context | As of | Source |
|---|---|---|---|---|---|
| Darkbloom through OpenRouter | 0.042 USD | 0.220 USD | 131,072 | OpenRouter endpoints, read | |
| Darkbloom through OpenRouter | 0.042 USD | 0.220 USD | 131,072 | OpenRouter endpoints, read | |
| Kilo Gateway direct | 0.042 USD | 0.220 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| DekaLLM through OpenRouter | 0.060 USD | 0.330 USD | 262,144 | OpenRouter endpoints, read | |
| DekaLLM through OpenRouter | 0.060 USD | 0.330 USD | 262,144 | OpenRouter endpoints, read | |
| OrcaRouter direct | 0.060 USD | 0.330 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| Deep Infra direct | 0.070 USD | 0.340 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| DeepInfra through OpenRouter | 0.070 USD | 0.340 USD | 262,144 | OpenRouter endpoints, read | |
| DeepInfra through OpenRouter | 0.070 USD | 0.340 USD | 262,144 | OpenRouter endpoints, read | |
| NextBit through OpenRouter | 0.090 USD | 0.300 USD | 262,144 | OpenRouter endpoints, read | |
| NextBit through OpenRouter | 0.090 USD | 0.300 USD | 262,144 | OpenRouter endpoints, read | |
| OpenRouter direct | 0.090 USD | 0.300 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| Cloudflare through OpenRouter | 0.100 USD | 0.300 USD | 256,000 | OpenRouter endpoints, read | |
| Cloudflare through OpenRouter | 0.100 USD | 0.300 USD | 256,000 | OpenRouter endpoints, read | |
| CoreWeave direct | 0.100 USD | 0.300 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| CoreWeave through OpenRouter | 0.100 USD | 0.300 USD | 262,144 | OpenRouter endpoints, read | |
| CoreWeave through OpenRouter | 0.100 USD | 0.300 USD | 262,144 | OpenRouter endpoints, read | |
| Makora through OpenRouter | 0.100 USD | 0.340 USD | 256,000 | OpenRouter endpoints, read | |
| Makora through OpenRouter | 0.100 USD | 0.340 USD | 256,000 | OpenRouter endpoints, read | |
| NanoGPT direct | 0.120 USD | 0.380 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| SiliconFlow direct | 0.120 USD | 0.400 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| Hugging Face direct | 0.130 USD | 0.400 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| Merge Gateway direct | 0.130 USD | 0.400 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| Novita through OpenRouter | 0.130 USD | 0.400 USD | 262,144 | OpenRouter endpoints, read | |
| Novita through OpenRouter | 0.130 USD | 0.400 USD | 262,144 | OpenRouter endpoints, read | |
| NovitaAI direct | 0.130 USD | 0.400 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| Parasail through OpenRouter | 0.130 USD | 0.400 USD | 262,144 | OpenRouter endpoints, read | |
| Parasail through OpenRouter | 0.130 USD | 0.400 USD | 262,144 | OpenRouter endpoints, read | |
| Venice through OpenRouter | 0.130 USD | 0.400 USD | 256,000 | OpenRouter endpoints, read | |
| Venice through OpenRouter | 0.130 USD | 0.400 USD | 256,000 | OpenRouter endpoints, read | |
| SiliconFlow through OpenRouter | 0.140 USD | 0.400 USD | 262,144 | OpenRouter endpoints, read | |
| SiliconFlow through OpenRouter | 0.140 USD | 0.400 USD | 262,144 | OpenRouter endpoints, read | |
| evroc direct | 0.144 USD | 0.575 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| Google through OpenRouter | 0.150 USD | 0.600 USD | 262,144 | OpenRouter endpoints, read | |
| Google through OpenRouter | 0.150 USD | 0.600 USD | 262,144 | OpenRouter endpoints, read | |
| Vercel AI Gateway direct | 0.150 USD | 0.600 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
Run it on your own hardware
Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.
| Quantization | Weights | Memory at 8,192 tokens | Memory at 32,768 tokens |
|---|---|---|---|
| UD-IQ2_XXS | 9.2 GiB | 12.1 GiB | 17.7 GiB |
| UD-IQ2_M | 9.3 GiB | 12.2 GiB | 17.8 GiB |
| UD-Q2_K_XL | 9.8 GiB | 12.7 GiB | 18.3 GiB |
| UD-IQ3_S | 10.5 GiB | 13.4 GiB | 19.0 GiB |
| UD-IQ3_XXS | 10.6 GiB | 13.5 GiB | 19.2 GiB |
| UD-Q3_K_M | 11.9 GiB | 14.8 GiB | 20.4 GiB |
| UD-Q3_K_XL | 12.0 GiB | 15.0 GiB | 20.6 GiB |
| UD-IQ4_XS | 12.7 GiB | 15.7 GiB | 21.3 GiB |
| UD-IQ4_NL | 12.7 GiB | 15.7 GiB | 21.3 GiB |
| UD-Q4_K_S | 15.4 GiB | 18.5 GiB | 24.1 GiB |
| MXFP4_MOE | 15.4 GiB | 18.6 GiB | 24.2 GiB |
| UD-Q4_K_M | 15.8 GiB | 18.9 GiB | 24.6 GiB |
| UD-Q4_K_XL | 15.8 GiB | 19.0 GiB | 24.6 GiB |
| UD-Q5_K_S | 17.6 GiB | 20.8 GiB | 26.4 GiB |
| UD-Q5_K_M | 19.7 GiB | 23.1 GiB | 28.7 GiB |
| UD-Q5_K_XL | 19.8 GiB | 23.1 GiB | 28.7 GiB |
| UD-Q6_K | 21.6 GiB | 25.0 GiB | 30.7 GiB |
| UD-Q6_K_XL | 21.7 GiB | 25.2 GiB | 30.8 GiB |
| Q8_0 | 25.4 GiB | 29.1 GiB | 34.7 GiB |
| UD-Q8_K_XL | 25.7 GiB | 29.4 GiB | 35.0 GiB |
Start it with a local runtime
- Ollama
ollama run hf.co/unsloth/gemma-4-26B-A4B-it-GGUF:UD-IQ2_XXS - LM Studio
lms get unsloth/gemma-4-26B-A4B-it-GGUF lms server start - llama.cpp server
llama-server -hf unsloth/gemma-4-26B-A4B-it-GGUF:UD-IQ2_XXS --jinja - vLLM
vllm serve google/gemma-4-26B-A4B-it - SGLang
sglang serve --model-path google/gemma-4-26B-A4B-it --port 30000
Use it from your harness
Set up for DeepInfra with the model google/gemma-4-26B-A4B-it. Each endpoint page has the same setup for its own address.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"deepinfra": {
"npm": "@ai-sdk/openai-compatible",
"name": "DeepInfra",
"options": {
"baseURL": "https://api.deepinfra.com/v1/openai",
"apiKey": "{env:DEEPINFRA_TOKEN}"
},
"models": {
"google/gemma-4-26B-A4B-it": {
"name": "Gemma 4 26B A4B",
"limit": {
"context": 262144,
"output": 235929
}
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"deepinfra": {
"baseUrl": "https://api.deepinfra.com/v1/openai",
"api": "openai-completions",
"apiKey": "$DEEPINFRA_TOKEN",
"models": [
{
"id": "google/gemma-4-26B-A4B-it"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and DeepInfra documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Put this in ~/.claude/settings.json, or variables in your shell:
export ANTHROPIC_BASE_URL="https://api.deepinfra.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="$DEEPINFRA_TOKEN"
export ANTHROPIC_MODEL="google/gemma-4-26B-A4B-it"
claude- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Other ways to reach it
- evroc, model
google/gemma-4-26B-A4B-it - Hugging Face, model
google/gemma-4-26B-A4B-it - Kilo Gateway, model
google/gemma-4-26b-a4b-it - NanoGPT, model
google/gemma-4-26b-a4b-it - NovitaAI, model
google/gemma-4-26b-a4b-it - OpenRouter, model
google/gemma-4-26b-a4b-it - OrcaRouter, model
google/gemma-4-26b-a4b-it - SiliconFlow, model
google/gemma-4-26B-A4B-it - CoreWeave, model
google/gemma-4-26B-A4B-it
Published results
These are results other people published. Baltor did not run them and does not rank models by them.
- Results the maker published on the model card published by google Hugging Face, read
- Artificial Analysis Coding Index: 39.3 published by Artificial Analysis OpenRouter, read
Sources of this page
- huggingface.co/api/models/google/gemma-4-26B-A4B-it, read
- huggingface.co/google/gemma-4-26B-A4B-it/raw/main/config.json, read
- huggingface.co/api/models/unsloth/gemma-4-26B-A4B-it-GGUF/tree/main, read
- openrouter.ai/api/v1/models/google/gemma-4-26b-a4b-it-20260403/endpoints, read
- openrouter.ai/api/v1/models, read
- models.dev/api.json, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.