Gemma 4 E4B Instruct
NativeChatgoogle/gemma-4-e4b-itNobody serves this model right now. The market reopens when a seller comes online.
Performance
Measured from real, settled requests over the last 30 days. No synthetic benchmarks.
- Success rate
- 0%
- 12 finished requests, 30 days
Availability
Provider availability polled every minute by the platform itself, replayed hour by hour.
0% online over the last 3 days
Usage per day
What actually ran on the platform, per day over the last 30 days. Settled usage from receipts; nothing synthetic.
Show as table
| Day | Requests | Requests |
|---|---|---|
| Oct 15 | 0 | 0 |
| Oct 14 | 0 | 0 |
| Oct 13 | 0 | 0 |
| Oct 12 | 8 | 8 |
| Oct 11 | 0 | 0 |
| Oct 10 | 0 | 0 |
| Oct 9 | 0 | 0 |
| Oct 8 | 0 | 0 |
| Oct 7 | 0 | 0 |
| Oct 6 | 0 | 0 |
| Oct 5 | 0 | 0 |
| Oct 4 | 0 | 0 |
| Oct 3 | 1 | 1 |
| Oct 2 | 2 | 2 |
| Oct 1 | 0 | 0 |
| Sep 30 | 0 | 0 |
| Sep 29 | 0 | 0 |
| Sep 28 | 0 | 0 |
| Sep 27 | 0 | 0 |
| Sep 26 | 0 | 0 |
| Sep 25 | 0 | 0 |
| Sep 24 | 0 | 0 |
| Sep 23 | 0 | 0 |
| Sep 22 | 0 | 0 |
| Sep 21 | 0 | 0 |
| Sep 20 | 0 | 0 |
| Sep 19 | 0 | 0 |
| Sep 18 | 0 | 0 |
| Sep 17 | 0 | 0 |
| Sep 16 | 0 | 0 |
API
The API is OpenAI-compatible and uses the same price and sellers as shown here.
curl https://api.openmayhem.ai/v1/chat/completions \
-H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-4-e4b-it",
"messages": [{"role": "user", "content": "Hello"}],
"max_tokens": 2000
}'MCP
OpenMayhem runs its own MCP server, so Claude, Codex, Cursor and other AI apps can call this model and pay from your credit.
claude mcp add --transport http openmayhem \ https://mcp.openmayhem.ai/mcp \ --header "X-OpenMayhem-API-Key: $OPENMAYHEM_API_KEY"
Then ask your app, for example: "Use OpenMayhem Gemma 4 E4B Instruct to answer this." It calls chat with google/gemma-4-e4b-it. Apps that support sign-in connect without a key, and you approve spending limits once.
Full request reference
POST /v1/chat/completionsCHAT ยท openai_chat_completions +
Working request
curl https://api.openmayhem.ai/v1/chat/completions \
-H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "google/gemma-4-e4b-it",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2000,
"stream": false,
"thinking_mode": "disabled"
}'Parameters
| Parameter | Required | Type | Default | Allowed values | Limits and shape |
|---|---|---|---|---|---|
messages | Required | array | โ | โ | min items 1; max items 4096 [{"role":"user","content":"Hello"}] |
model | Required | string | โ | google/gemma-4-E4B-it | โ |
frequency_penalty | Optional | number | โ | โ | min -2; max 2 |
max_completion_tokens | Optional | integer | โ | โ | min 0; max 131072 |
max_tokens | Optional | integer | โ | โ | min 0; max 131072 |
metadata | Optional | object | โ | โ | JSON object; use the endpoint-specific schema shown in the examples |
min_p | Optional | number | โ | โ | min 0; max 1 |
parallel_tool_calls | Optional | boolean | true | โ | โ |
presence_penalty | Optional | number | โ | โ | min -2; max 2 |
response_format | Optional | object | โ | โ | {"type":"json_object"} |
seed | Optional | integer | โ | โ | min 0; max 4294967295 |
stop | Optional | string | array | null | โ | โ | JSON array |
stream | Optional | boolean | false | โ | โ |
temperature | Optional | number | โ | โ | min 0; max 2 |
thinking_mode | Optional | string | disabled | disabled, enabled | โ |
tool_choice | Optional | string | object | โ | โ | "auto" or an OpenAI tool-choice object |
tools | Optional | array | โ | โ | min items 1; max items 128 [{"type":"function","function":{"name":"get_time","description":"Get the current time","parameters":{"type":"object","properties":{}}}}] |
top_k | Optional | integer | โ | โ | min 0; max 1000000 |
top_p | Optional | number | โ | โ | min 0.000001; max 1 |
user | Optional | string | โ | โ | min length 1; max length 512 |
visual_token_budget | Optional | string | budget_280 | budget_70, budget_140, budget_280, budget_560, budget_1120 | โ |
Input shapes
{
"model": "google/gemma-4-e4b-it",
"tools": [
{
"type": "function",
"function": {
"name": "get_time",
"description": "Get the current time",
"parameters": {
"type": "object",
"properties": {}
}
}
}
]
}POST /v1/completionsCOMPLETIONS ยท openai_completions +
Working request
curl https://api.openmayhem.ai/v1/completions \
-H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "google/gemma-4-e4b-it",
"prompt": "A lighthouse at dusk",
"max_tokens": 2000,
"stream": false
}'Parameters
| Parameter | Required | Type | Default | Allowed values | Limits and shape |
|---|---|---|---|---|---|
model | Required | string | โ | google/gemma-4-E4B-it | โ |
prompt | Required | string | โ | โ | min length 1; max length 32000 |
frequency_penalty | Optional | number | โ | โ | min -2; max 2 |
max_tokens | Optional | integer | โ | โ | min 0; max 131072 |
min_p | Optional | number | โ | โ | min 0; max 1 |
presence_penalty | Optional | number | โ | โ | min -2; max 2 |
seed | Optional | integer | โ | โ | min 0; max 4294967295 |
stop | Optional | string | array | null | โ | โ | JSON array |
stream | Optional | boolean | false | โ | โ |
temperature | Optional | number | โ | โ | min 0; max 2 |
thinking_mode | Optional | string | disabled | disabled, enabled | โ |
top_k | Optional | integer | โ | โ | min 0; max 1000000 |
top_p | Optional | number | โ | โ | min 0.000001; max 1 |
user | Optional | string | โ | โ | min length 1; max length 512 |
visual_token_budget | Optional | string | budget_280 | budget_70, budget_140, budget_280, budget_560, budget_1120 | โ |
POST /v1/responsesRESPONSES ยท openai_responses +
Working request
curl https://api.openmayhem.ai/v1/responses \
-H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "google/gemma-4-e4b-it",
"input": "Hello",
"max_output_tokens": 2000,
"stream": false
}'Parameters
| Parameter | Required | Type | Default | Allowed values | Limits and shape |
|---|---|---|---|---|---|
input | Required | string | array | โ | โ | JSON array |
model | Required | string | โ | google/gemma-4-E4B-it | โ |
max_output_tokens | Optional | integer | โ | โ | min 0; max 131072 |
metadata | Optional | object | โ | โ | JSON object; use the endpoint-specific schema shown in the examples |
min_p | Optional | number | โ | โ | min 0; max 1 |
parallel_tool_calls | Optional | boolean | true | โ | โ |
reasoning | Optional | object | โ | โ | JSON object; use the endpoint-specific schema shown in the examples |
stream | Optional | boolean | false | โ | โ |
temperature | Optional | number | โ | โ | min 0; max 2 |
text | Optional | object | โ | โ | JSON object; use the endpoint-specific schema shown in the examples |
thinking_mode | Optional | string | disabled | disabled, enabled | โ |
tool_choice | Optional | string | object | โ | โ | "auto" or an OpenAI tool-choice object |
tools | Optional | array | โ | โ | min items 1; max items 128 [{"type":"function","function":{"name":"get_time","description":"Get the current time","parameters":{"type":"object","properties":{}}}}] |
top_k | Optional | integer | โ | โ | min 0; max 1000000 |
top_p | Optional | number | โ | โ | min 0.000001; max 1 |
user | Optional | string | โ | โ | min length 1; max length 512 |
visual_token_budget | Optional | string | budget_280 | budget_70, budget_140, budget_280, budget_560, budget_1120 | โ |
Input shapes
{
"model": "google/gemma-4-e4b-it",
"tools": [
{
"type": "function",
"function": {
"name": "get_time",
"description": "Get the current time",
"parameters": {
"type": "object",
"properties": {}
}
}
}
]
}POST /v1/chat/completionsCHAT ยท hf_multimodal_chat +
Working request
curl https://api.openmayhem.ai/v1/chat/completions \
-H "Authorization: Bearer $OPENMAYHEM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "google/gemma-4-e4b-it",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2000,
"stream": false,
"thinking_mode": "disabled"
}'Parameters
| Parameter | Required | Type | Default | Allowed values | Limits and shape |
|---|---|---|---|---|---|
messages | Required | array | โ | โ | min items 1; max items 4096 [{"role":"user","content":"Hello"}] |
model | Required | string | โ | google/gemma-4-E4B-it | โ |
max_tokens | Optional | integer | โ | โ | min 0; max 131072 |
min_p | Optional | number | โ | โ | min 0; max 1 |
response_format | Optional | object | โ | โ | {"type":"json_object"} |
seed | Optional | integer | โ | โ | min 0; max 4294967295 |
stream | Optional | boolean | false | โ | โ |
temperature | Optional | number | โ | โ | min 0; max 2 |
thinking_mode | Optional | string | disabled | disabled, enabled | โ |
tool_choice | Optional | string | object | โ | โ | "auto" or an OpenAI tool-choice object |
tools | Optional | array | โ | โ | min items 1; max items 128 [{"type":"function","function":{"name":"get_time","description":"Get the current time","parameters":{"type":"object","properties":{}}}}] |
top_k | Optional | integer | โ | โ | min 0; max 1000000 |
top_p | Optional | number | โ | โ | min 0.000001; max 1 |
visual_token_budget | Optional | string | budget_280 | budget_70, budget_140, budget_280, budget_560, budget_1120 | โ |
Input shapes
{
"model": "google/gemma-4-e4b-it",
"tools": [
{
"type": "function",
"function": {
"name": "get_time",
"description": "Get the current time",
"parameters": {
"type": "object",
"properties": {}
}
}
}
]
}Use this model through MCP
These calls use this modelโs exact live request contract. First estimate the unchanged request, then pass the returned estimate ID and maximum cost to the paid tool. Read the complete MCP guide.
chatCHAT +
Send this object to estimate_request. Review the result, then send the next object to the named paid tool without changing request.
{
"endpoint": "CHAT",
"model": "google/gemma-4-e4b-it",
"request": {
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2000,
"stream": false,
"thinking_mode": "disabled"
}
}{
"model": "google/gemma-4-e4b-it",
"request": {
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2000,
"stream": false,
"thinking_mode": "disabled"
},
"estimate_id": "<estimate_id from estimate_request>",
"max_cost_usd": "<maximum_cost_usd from estimate_request>"
}create_responseRESPONSES +
Send this object to estimate_request. Review the result, then send the next object to the named paid tool without changing request.
{
"endpoint": "RESPONSES",
"model": "google/gemma-4-e4b-it",
"request": {
"input": "Hello",
"max_output_tokens": 2000,
"stream": false
}
}{
"model": "google/gemma-4-e4b-it",
"request": {
"input": "Hello",
"max_output_tokens": 2000,
"stream": false
},
"estimate_id": "<estimate_id from estimate_request>",
"max_cost_usd": "<maximum_cost_usd from estimate_request>"
}chatCHAT +
Send this object to estimate_request. Review the result, then send the next object to the named paid tool without changing request.
{
"endpoint": "CHAT",
"model": "google/gemma-4-e4b-it",
"request": {
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2000,
"stream": false,
"thinking_mode": "disabled"
}
}{
"model": "google/gemma-4-e4b-it",
"request": {
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2000,
"stream": false,
"thinking_mode": "disabled"
},
"estimate_id": "<estimate_id from estimate_request>",
"max_cost_usd": "<maximum_cost_usd from estimate_request>"
}Agent drop-ins
These configurations make this exact model the main model in each harness. Create an API key first and keep it in OPENMAYHEM_API_KEY.
OpenCode+
Save this as opencode.json in your project, export the key, then select openmayhem/model in /models.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"openmayhem": {
"npm": "@ai-sdk/openai-compatible",
"name": "OpenMayhem",
"options": {
"baseURL": "https://api.openmayhem.ai/v1",
"apiKey": "{env:OPENMAYHEM_API_KEY}"
},
"models": {
"google/gemma-4-e4b-it": {
"name": "gemma 4 E4B it",
"limit": {
"context": 65536,
"output": 32768
}
}
}
}
}
}export OPENMAYHEM_API_KEY="replace-with-your-openmayhem-api-key"
opencode --model "openmayhem/google/gemma-4-e4b-it"Claude Code+
Claude Code speaks Anthropic Messages. Claude Code Router 2.0.0 translates it to this model's Chat Completions endpoint and removes Claude-only cache metadata.
{
"LOG": false,
"API_TIMEOUT_MS": 3600000,
"Providers": [
{
"name": "openmayhem",
"api_base_url": "https://api.openmayhem.ai/v1/chat/completions",
"api_key": "$OPENMAYHEM_API_KEY",
"models": [
"google/gemma-4-e4b-it"
],
"transformer": {
"use": [
"cleancache"
]
}
}
],
"Router": {
"default": "openmayhem,google/gemma-4-e4b-it",
"background": "openmayhem,google/gemma-4-e4b-it",
"think": "openmayhem,google/gemma-4-e4b-it",
"longContext": "openmayhem,google/gemma-4-e4b-it",
"longContextThreshold": 32768
}
}npm install -g @anthropic-ai/claude-code @musistudio/claude-code-router@2.0.0
export OPENMAYHEM_API_KEY="replace-with-your-openmayhem-api-key"
export MAX_THINKING_TOKENS=0
export CLAUDE_CODE_MAX_CONTEXT_TOKENS=65536
export CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT=1
ccr start &
ccr code
ccr stopCodex CLI+
Codex 0.80.0 is the tested Chat Completions compatibility release for this model. The key stays in the environment; config.toml contains no secret.
model = "google/gemma-4-e4b-it"
model_provider = "openmayhem"
model_context_window = 65536
[model_providers.openmayhem]
name = "OpenMayhem"
base_url = "https://api.openmayhem.ai/v1"
env_key = "OPENMAYHEM_API_KEY"
wire_api = "chat"
request_max_retries = 4
stream_max_retries = 5
stream_idle_timeout_ms = 3600000export OPENMAYHEM_API_KEY="replace-with-your-openmayhem-api-key"
npx -y @openai/codex@0.80.0Hermes Agent+
Hermes uses OpenMayhem as a named custom provider over Chat Completions. The key stays in OPENMAYHEM_API_KEY and is not stored in YAML.
providers:
openmayhem:
api: "https://api.openmayhem.ai/v1"
key_env: OPENMAYHEM_API_KEY
transport: chat_completions
default_model: "google/gemma-4-e4b-it"
models:
"google/gemma-4-e4b-it":
context_length: 65536
model:
default: "google/gemma-4-e4b-it"
provider: custom:openmayhem
api_mode: chat_completions
context_length: 65536
max_tokens: 32768curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
export OPENMAYHEM_API_KEY="replace-with-your-openmayhem-api-key"
hermes chatOpenClaw+
Merge this provider into openclaw.json. apiKey is an environment SecretRef, so the resolved key is not written to the file.
{
"models": {
"mode": "merge",
"providers": {
"openmayhem": {
"baseUrl": "https://api.openmayhem.ai/v1",
"apiKey": "${OPENMAYHEM_API_KEY}",
"api": "openai-completions",
"authHeader": true,
"timeoutSeconds": 3600,
"models": [
{
"id": "google/gemma-4-e4b-it",
"name": "gemma 4 E4B it",
"reasoning": true,
"input": [
"text"
],
"contextWindow": 65536,
"contextTokens": 32768,
"maxTokens": 32768,
"compat": {
"supportsTools": true,
"supportsTemperature": true
}
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "openmayhem/google/gemma-4-e4b-it"
}
}
}
}export OPENMAYHEM_API_KEY="replace-with-your-openmayhem-api-key"
openclaw agent --local --model "openmayhem/google/gemma-4-e4b-it" --message "Hello"About this model
A compact multimodal model designed for everyday hardware.
- Maker
- Family
- Gemma4
- License
- Apache-2.0
- Model size
- 4.5B effective
- Hardware to serve it
- CPU ยท 16 GB RAM
How it is served
- Registered tiers
- T1
- Live tiers
- Not advertised
- Quantizations
- int4
- Live routes
- 0
- Live providers
- 0
- Prompt processing
- Provider-visible
- Context capacity
- 65.5K
Routing providers
Accepted request parameters
From the network's signed model contract; anything else is rejected before a provider runs.
frequency_penaltyinputmax_completion_tokensmax_output_tokensmax_tokensmessagesmetadatamin_pmodelparallel_tool_callspresence_penaltypromptreasoningresponse_formatseedstopstreamtemperaturetextthinking_modetool_choicetoolstop_ktop_puservisual_token_budgetPrice versions
| Version | From | Until |
|---|---|---|
| v5 | 2026-09-22 17:49 UTC | current |
| v4 | 2026-09-16 22:12 UTC | 2026-09-22 17:49 UTC |
| v3 | 2026-09-14 06:13 UTC | 2026-09-16 22:12 UTC |
| v2 | 2026-09-14 01:36 UTC | 2026-09-14 06:13 UTC |
| v1 | 2026-08-30 23:46 UTC | 2026-09-14 01:36 UTC |
Questions and answers
What does Gemma 4 E4B Instruct cost on OpenMayhem?
Gemma 4 E4B Instruct currently costs $0.00375 / M input ยท $0.0125 / M output. There is no subscription: you buy credit and every request settles against a signed receipt for exactly what it used. Prices are versioned, and the full price history is published on this page.
Is Gemma 4 E4B Instruct available right now?
No providers are online for Gemma 4 E4B Instruct at this moment. Availability is polled every minute, and requests are rejected upfront rather than queued indefinitely.
How do I use Gemma 4 E4B Instruct?
Send an OpenAI-compatible request to https://api.openmayhem.ai/v1/chat/completions with "model": "google/gemma-4-e4b-it" and your API key. Existing OpenAI SDKs work by changing the base URL. Create an account to get a key and starting credit.
Are my prompts stored?
OpenMayhem does not persist prompt or completion text. Requests are proxied to the serving provider and only billing metadata is retained: usage counts, the price applied, and the provider's signed receipt. The provider that serves a request necessarily processes its content.
