AI Token Price

Run Gemma 4 26B-A4B locally: memory, speed and cost

Gemma 4 26B-A4B has 25.2 billion parameters, 3.8 billion active per token (mixture of experts). At Q4_K_M it needs about 18 GB with 32K tokens of context, so the cheapest hardware here that runs it is the Intel Arc Pro B70 (about 77 tokens a second). It scores 142 on Epoch AI’s Capabilities Index. Through an API it costs $0.042 / $0.22 per 1M tokens.

Memory needed

Weights plus context cache

Memory Gemma 4 26B-A4B needs at each quantisation and context length
Quantisation8K context32K context128K context
Q4_K_Musual choice17 GB18 GB22 GB
Q5_K_M20 GB21 GB25 GB
Q8_029 GB30 GB34 GB
BF1653 GB54 GB58 GB

Estimates: weights at the stated bits per weight, plus the context (KV) cache, plus about 1 GB of overhead. Lower-bit quantisations save memory at some cost in quality.

Gemma 4 26B-A4B on each device

Q4_K_M, 32K context

Whether Gemma 4 26B-A4B fits and how fast it runs on each device
HardwareMemoryFits?Speed (estimate)
RTX 509032 GBFits204 tok/s
RTX 508016 GBPartly, with system RAM63 tok/s
RTX 5070 Ti16 GBPartly, with system RAM61 tok/s
RTX 5060 Ti 16 GB16 GBPartly, with system RAM48 tok/s
RTX 4090 (used)24 GBFits145 tok/s
RTX 3090 (used)24 GBFits138 tok/s
RTX 3060 12 GB12 GBPartly, with system RAM31 tok/s
RTX PRO 6000 Blackwell96 GBFits204 tok/s
Radeon RX 9070 XT16 GBPartly, with system RAM55 tok/s
Radeon RX 7900 XTX24 GBFits140 tok/s
Radeon AI PRO R970032 GBFits112 tok/s
Intel Arc Pro B7032 GBFits77 tok/s
Mac Studio M5 Max 128 GB128 GBFits99 tok/s
Mac Studio M5 Ultra 512 GB512 GBFits118 tok/s
Ryzen AI Max+ 395 128 GB128 GBFits46 tok/s
NVIDIA DGX Spark128 GBFits49 tok/s

Generation speed estimated from memory bandwidth, calibrated against published llama.cpp results. Fastest here: RTX 5090, about 204 tokens a second. Try other settings in the calculator.

How capable is it?

Capability 142 (range 139–144) on the Epoch Capabilities Index. API models with a similar score: Gemini 3.5 Flash-Lite (145, $0.30 / $2.50) and MiniMax M3 (147, $0.30 / $1.20). Similar local models: Gemma 4 31B (143), Qwen3.6 35B-A3B (144), gpt-oss-120b (140).

Source: Epoch Capabilities Index by Epoch AI, CC BY 4.0, read 4 Nov 2026.

Or use it through an API

$0.042 / $0.22 per 1M input / output tokens through OpenRouter (Gemma 4 26B-A4B hosted prices). A customer chat assistant of 100M input and 20M output tokens a month costs about $8.60, so local hardware pays for itself only with heavy use.

Questions

How much VRAM does Gemma 4 26B-A4B need?

About 17 GB at Q4_K_M with 8K tokens of context, 18 GB with 32K and 22 GB with 128K. At 8-bit (Q8_0) it needs about 29 GB with 8K context.

Can Gemma 4 26B-A4B run on a Mac?

Yes. A Mac Studio M5 Max with 128GB runs it with 32K context at an estimated 99 tokens a second.

How fast is Gemma 4 26B-A4B on an RTX 4090?

About 145 tokens a second with 32K context, an estimate from the card’s memory bandwidth.

How capable is Gemma 4 26B-A4B?

It scores 142 on Epoch AI’s Capabilities Index (range 139–144), close to Gemini 3.5 Flash-Lite (145) and MiniMax M3 (147) among API models.

What does Gemma 4 26B-A4B cost through an API?

$0.042 / $0.22 per 1M input / output tokens through OpenRouter, the cheapest host we track. A customer chat assistant of 100M input and 20M output tokens a month would cost about $8.60.