# Google: Gemma 4 E2B

Gemma 4 E2B is a small multimodal model from Google DeepMind's Gemma 4 family, built for efficient local use on phones and laptops. It takes text, image, video and audio input, returns text, offers a configurable thinking mode, and is licensed under Apache 2.0.

- **Model id:** `opencheap/gemma-4-e2b`
- **Price per 1M tokens:** $0.005 input / $0.01 output
- **Cached input:** $0.00075 per 1M tokens
- **Context:** 128K tokens, 64K max output

## Providers

2 providers. Prices are per 1M tokens. As of 2026-12-04 11:56 UTC.

| Provider | Input price | Cache price | Output price | Context | Max output |
| --- | --- | --- | --- | --- | --- |
| Qubax · quantization unknown | $0.005 | $0.00075 | $0.01 | 128K | 64K |
| Surplus · quantization unknown | $0.0076 | $0.0011 | $0.015 | 128K | 64K |

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **Qubax:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Surplus:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/gemma-4-e2b#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/gemma-4-e2b`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/gemma-4-e2b", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/gemma-4-e2b",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/gemma-4-e2b",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Gemma 4 E2B

Gemma 4 E2B costs from $0.005 per 1M input tokens and $0.01 per 1M output tokens on OpenCheap, with cached input at $0.00075 per 1M tokens. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00006, and 1,000 such requests about $0.06. Prices as of 2026-12-04 11:48 UTC.

2 providers serve Gemma 4 E2B on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.

Gemma 4 E2B is one of [102 Google models](https://opencheap.si/models/lab/google) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the Gemma 4 E2B API cost per 1M tokens?

Gemma 4 E2B costs from $0.005 per 1M input tokens and $0.01 per 1M output tokens on OpenCheap, with cached input at $0.00075 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.

### What does one Gemma 4 E2B request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.00006, and 1,000 such requests about $0.06. Every answer reports its own cost in usage.cost.

### Which providers serve Gemma 4 E2B?

2 providers serve Gemma 4 E2B on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of Gemma 4 E2B?

Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.

### How do I call the Gemma 4 E2B API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/gemma-4-e2b. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Google

- [Gemma 4 26B A4B It](https://opencheap.si/models/gemma-4-26b-a4b) (`gemma-4-26b-a4b`): $0.01 / $0.03 per 1M · 262K context
- [Gemma 4 31B It](https://opencheap.si/models/gemma-4-31b) (`gemma-4-31b`): $0.012 / $0.036 per 1M · 262K context
- [google/gemma-3-27b-it](https://opencheap.si/models/gemma-3-27b) (`gemma-3-27b`): $0.02 / $0.05 per 1M · 131K context
- [Gemini 3.5 Flash](https://opencheap.si/models/gemini-3.5-flash) (`gemini-3.5-flash`): $1.50 / $9.00 per 1M · 1M context
- [DiffusionGemma](https://opencheap.si/models/diffusiongemma) (`diffusiongemma`): $0.05 / $0.15 per 1M · 262K context
- [Nano Banana (Gemini 2.5 Flash Image)](https://opencheap.si/models/gemini-2.5-flash-image) (`gemini-2.5-flash-image`): $0.32 / $2.63 per 1M · 32K context
- [Gemini 2.5 Flash Lite](https://opencheap.si/models/gemini-2.5-flash-lite) (`gemini-2.5-flash-lite`): $0.10 / $0.40 per 1M · 1M context
- [Gemini 2.5 Flash Preview 05-20 (no think)](https://opencheap.si/models/gemini-2.5-flash-preview-05.20:nothink) (`gemini-2.5-flash-preview-05.20:nothink`): $0.30 / $2.50 per 1M · 1M context

[All 102 Google models](https://opencheap.si/models/lab/google)

## Similar models

- [gpt-oss-120b](https://opencheap.si/models/gpt-oss-120b): OpenAI · 131K context · $0.0049 / $0.021 per 1M · [Compare with Gemma 4 E2B](https://opencheap.si/compare/gemma-4-e2b-vs-gpt-oss-120b)
- [GPT OSS Safeguard 120B](https://opencheap.si/models/gpt-oss-safeguard-120b): OpenAI · 128K context · $0.0023 / $0.009 per 1M, 16 % cheaper · [Compare with Gemma 4 E2B](https://opencheap.si/compare/gemma-4-e2b-vs-gpt-oss-safeguard-120b)
- [Qwen3.8 27B](https://opencheap.si/models/qwen3.8-27b): Qwen · 1M context · $0.0033 / $0.015 per 1M · [Compare with Gemma 4 E2B](https://opencheap.si/compare/gemma-4-e2b-vs-qwen3.8-27b)
- [mistral-nemo](https://opencheap.si/models/mistral-nemo): Mistral · 131K context · $0.018 / $0.024 per 1M · [Compare with Gemma 4 E2B](https://opencheap.si/compare/gemma-4-e2b-vs-mistral-nemo)
- [Qwen3.6 27B](https://opencheap.si/models/qwen3.6-27b): Qwen · 262K context · $0.0053 / $0.053 per 1M · [Compare with Gemma 4 E2B](https://opencheap.si/compare/gemma-4-e2b-vs-qwen3.6-27b)
- [ministral-3-3b](https://opencheap.si/models/ministral-3-3b): Mistral · 128K context · $0.008 / $0.008 per 1M, 8 % cheaper · [Compare with Gemma 4 E2B](https://opencheap.si/compare/gemma-4-e2b-vs-ministral-3-3b)

[Compare Gemma 4 E2B with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/gemma-4-e2b · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
