Gemma 4 26B API
Access Gemma 4 26B through one API key. Efficient MoE model at the lowest price.
Google's efficient open-weight MoE model. 26B total parameters with 4B active for fast inference.
Takes 30 seconds.
Gemma 4 26B API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Token type | Price |
|---|---|
| Input | $0.13 / 1M tokens |
| Output | $0.44 / 1M tokens |
| Context window | 262K tokens |
| What it costs | Per job | Per 1,000 |
|---|---|---|
| Chat reply1K input + 500 output tokens | $0.0003 | $0.35 |
| RAG answer8K input + 800 output tokens | $0.0014 | $1.39 |
| Agent step with tools30K input + 2K output tokens | $0.0048 | $4.78 |
| Long document summary100K input + 2K output tokens | $0.014 | $13.88 |
4,900+
Developers
2.3M+
API calls served
184
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Send a message and see Gemma 4 26B respond in real time.
Maximum tokens in the response.
Real-time tokens
Gemma 4 26B specs
| Provider | |
|---|---|
| Model ID | google/gemma-4-26b-a4b-it |
| Endpoint | /v1/ai/chat |
| Type | Text Generation |
| Context window | 262K tokens |
| Max output | 262K tokens |
| Reasoning | No |
| OpenAI-compatible | Yes — /v1/ai/chat/completions |
How to get a Gemma 4 26B API key
- 1
Create an account
Sign up at yepapi.com with Google or email. It takes about 30 seconds.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call Gemma 4 26B
Send a request to /v1/ai/chat with the x-api-key header and model "google/gemma-4-26b-a4b-it".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Gemma 4 26B is a mixture-of-experts model with 26B total parameters but only 4B active per token, routing each token to specialized experts for quality without dense-model compute.
Activating just 4B of 26B parameters per token keeps latency and cost low while retaining the breadth of a much larger model.
Supports up to 262,144 output tokens, matching its context window so it can generate book-length documents or massive structured outputs in one response.
At $0.13 per 1M input and $0.44 per 1M output tokens, it is among the cheapest open-weight models for production-scale text generation.
Quick start
Copy this snippet and start making calls with Gemma 4 26B.
const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "google/gemma-4-26b-a4b-it",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);Gemma 4 26B vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| Gemma 4 26B | $0.13 in / $0.44 out per 1M | 262K | |
| Gemini 2.5 Flash Lite | $0.15 in / $0.59 out per 1M | 1.0M | |
| Gemma 4 31B | $0.30 in / $0.59 out per 1M | 262K | |
| Gemini 3.1 Flash Lite | $0.37 in / $2.22 out per 1M | 1.0M | |
| Gemini 2.5 Flash | $0.44 in / $3.69 out per 1M | 1.0M | |
| Gemini 3.5 Flash Lite | $0.44 in / $3.69 out per 1M | 1.0M | |
| Nemotron 3 Super | NVIDIA | $0 in / $0 out per 1M | 262K |
| Qwen3.7 Flash | Qwen | $0.04 in / $0.19 out per 1M | 1M |
Why use Gemma 4 26B through YepAPI?
Gemma 4 26B API: efficient open-weight MoE at the lowest price
Gemma 4 26B is Google's open-weight mixture-of-experts model with 26 billion total parameters and only 4 billion active per token. That sparse design delivers strong quality at the inference cost of a much smaller model, making it ideal for fast, high-volume text generation.
On YepAPI you access Gemma 4 26B through one API key at $0.13 per 1M input and $0.44 per 1M output tokens, with a 262K context window and matching 262K output ceiling for the longest documents.
What is Gemma 4 26B?
Gemma 4 26B is an open-weight, instruction-tuned mixture-of-experts (MoE) language model from Google. It contains 26 billion total parameters but activates only about 4 billion per token, so each request runs at the speed and cost of a far smaller dense model while drawing on the capacity of the full expert set. It is built for text-to-text work — chat, code, summarization, extraction, and reasoning — and pairs a 262K-token context window with a 262K-token output ceiling, the largest in the Gemma lineup. As an open-weight release, it can be self-hosted or fine-tuned, and it is also available as a fully managed endpoint.
Build with Gemma 4 26B via YepAPI
Call Gemma 4 26B with a single YepAPI key on the chat endpoint and skip any Google Cloud provisioning. The MoE routing happens server-side, so you simply send messages and receive completions — no expert configuration needed. Because one key spans the whole catalog, you can lean on Gemma 4 26B for fast, cheap bulk inference and switch to a larger model for tougher prompts without changing credentials. It slots cleanly into chatbots, pipelines, and agentic workflows that need throughput.
Gemma 4 26B API pricing — $0.13/1M input, $0.44/1M output
Gemma 4 26B costs $0.13 per 1M input tokens and $0.44 per 1M output tokens on YepAPI — the lowest input price in the Gemma family. Thanks to MoE sparsity you get larger-model quality at small-model economics, so workloads like mass summarization, tagging, or synthetic data generation stay cheap. Usage-based billing means no minimums, and one balance covers every model on the platform.
Gemma 4 26B for fast, large-scale generation
Gemma 4 26B is the right pick when you need both speed and very long outputs at scale. Its 262K output ceiling supports generating entire documents, datasets, or long code in one pass, while the sparse MoE design keeps each call fast and inexpensive. Use it for real-time assistants, high-throughput batch jobs, and any pipeline where latency and per-token cost both matter.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Google's efficient open-weight MoE model. 26B total parameters with 4B active for fast inference.
Gemma 4 26B costs $0.13 per 1M input tokens and $0.44 per 1M output tokens through YepAPI, billed per request with no monthly fee. For example, a chat reply (1K input + 500 output tokens) costs about $0.0003.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Gemma 4 26B and every other model — no separate Google account or waitlist.
Use "google/gemma-4-26b-a4b-it" as the model on /v1/ai/chat. The short alias "gemma-4-26b" also works.
Yes. Point the OpenAI SDK at https://api.yepapi.com/v1/ai with your YepAPI key and set model to "google/gemma-4-26b-a4b-it". Streaming works the same way, so existing OpenAI code only needs the base URL and key changed.
Gemma 4 26B supports a 262K token context window with up to 262K output tokens per request.
Explore more models
Gemma 4 31B
GoogleAccess Gemma 4 31B through one API key. Google's open-weight model at ultra-low cost.
Gemini 3.6 Flash
GoogleAccess Gemini 3.6 Flash through one API key. Google High-Efficiency Coding Flash.
Gemini 3.1 Flash Lite
GoogleAccess Gemini 3.1 Flash Lite through one API key. Ultra-affordable with 1M context.
MiMo-V2.6-Pro
XiaomiAccess MiMo-V2.6-Pro through one API key. Xiaomi 1T-Parameter Flagship.
Kimi K2.5
Moonshot AIAccess Kimi K2.5 through one API key. Moonshot AI's flagship model.
Mistral Medium 3.5
MistralAccess Mistral Medium 3.5 through one API key. Mistral's balanced mid-tier model.
More Text Generation models
- Step 5 Preview API · StepFun
- Claude Fable 5 API · Anthropic
- DeepSeek V4 Pro API · DeepSeek
- Hy4 preview API · Tencent
- GPT-5.4 Pro API · OpenAI
- Muse Wonder API · Meta
- MiniMax M2.7 API · MiniMax
- Nemotron 3 Super API · NVIDIA
- MiniMax M2.5 API · MiniMax
- GPT-5.2 Pro API · OpenAI
- Seed 2.0 Pro API · ByteDance
- Nemotron 3.5 Lightning API · NVIDIA