# Where can I find an uncensored Gemma 4 model hosted as an API?

_Updated November 27, 2026. https://openuncensored.com/uncensored-gemma-4-api_

**Short answer:** On [OpenUncensored](https://openuncensored.com/), which serves 6 uncensored Gemma 4 builds through one OpenAI and Anthropic compatible API (`https://api.openuncensored.com/v1`), from NanoGPT, RedPill and Venice, with automatic fallback to the next host when one fails, and no account to create. The best one on our tests is [Gemma 4 31B SDFT Heretic RP](https://openuncensored.com/models/gemma-4-31b-sdft-heretic-rp) (`gemma-4-31b-sdft-heretic-rp`): ranked #21 of 34 on the [OpenUncensored Score](https://openuncensored.com/uncensored-llm-leaderboard) (56.8), answers 100% of 36 requests censored models refuse and runs at about 9 tok/s, from $0.31 per million input and $0.31 per million output tokens.

## Every uncensored Gemma 4 you can call

| Model | Model id | Type | Rank (score) | Answers | Agent tasks | Speed | $ / 1M in · out | Context |
|---|---|---|---|---|---|---|---|---|
| [Gemma 4 31B SDFT Heretic RP](https://openuncensored.com/models/gemma-4-31b-sdft-heretic-rp) | `gemma-4-31b-sdft-heretic-rp` | Heretic (automated abliteration) | #21 (56.8) | 100% | – | 9 tok/s | $0.31 · $0.31 | 256K |
| [Gemma 4 26B A4B Chimera X Heretic](https://openuncensored.com/models/gemma-4-26b-a4b-it-chimeraxheretic) | `gemma-4-26b-a4b-it-chimeraxheretic` | Heretic (automated abliteration) | #22 (56.1) | 100% | – | 34 tok/s | $0.12 · $0.38 | 256K |
| [Gemma 4 31B Cognitive Unshackled](https://openuncensored.com/models/gemma-4-31b-cognitive-unshackled) | `gemma-4-31b-cognitive-unshackled` | Uncensored | #23 (55.9) | 100% | – | 3 tok/s | $0.31 · $0.31 | 256K |
| [Gemma 4 26B A4B Uncensored TEE](https://openuncensored.com/models/gemma-4-26b-a4b-uncensored) | `gemma-4-26b-a4b-uncensored` | Uncensored fine-tune | #24 (55.0) | 100% | 1/5 | 36 tok/s | $0.15 · $0.70 | 256K |
| [Gemma 4 31B Gembrain Uncensored Heretic](https://openuncensored.com/models/gemma-4-31b-gembrain-uncensored-heretic) | `gemma-4-31b-gembrain-uncensored-heretic` | Heretic (automated abliteration) | #26 (53.5) | 89% | 3/5 | 8 tok/s | $0.31 · $0.31 | 256K |
| [Gemma 4 Uncensored](https://openuncensored.com/models/gemma-4-uncensored) | `gemma-4-uncensored` | Uncensored fine-tune | #27 (52.1) | 100% | 2/5 | 77 tok/s | $0.16 · $0.50 | 250K |

_Answers: share of 36 requests that censored models refuse. Agent tasks: multi-step tool tasks finished out of 5. Prices are the cheapest host's USD per million tokens. Scores measured November 8, 2026; reasoning variants are not scored separately._

Gemma 4 26B A4B is the mixture-of-experts model (about 4B parameters active per token); 31B is the dense model. The builds are heretic (automated abliteration) and uncensored fine-tunes, one of them tuned for roleplay.

## Which build to use

- **Best overall:** [Gemma 4 31B SDFT Heretic RP](https://openuncensored.com/models/gemma-4-31b-sdft-heretic-rp) (`gemma-4-31b-sdft-heretic-rp`), #21 (56.8).
- **Cheapest:** [Gemma 4 26B A4B Chimera X Heretic](https://openuncensored.com/models/gemma-4-26b-a4b-it-chimeraxheretic) at $0.12 in and $0.38 out per million tokens, #22 (56.1).

## What Gemma 4 31B SDFT Heretic RP is good at

- **Refusals:** answered 100% of 36 requests that censored models refuse.
- **Context:** 256K tokens.
- **Speed:** about 9 tok/s, slow for agent loops.
- **What work costs:** a 50-step agent session at a 60k token context (90% read from the cache) is about $0.93; a 30-reply chat at 8k context is about $0.076.

## Against the best of other families

| Model | Rank (score) | Answers | Agent tasks | Speed | $ / 1M in · out |
|---|---|---|---|---|---|
| [Gemma 4 31B SDFT Heretic RP (this page)](https://openuncensored.com/models/gemma-4-31b-sdft-heretic-rp) | #21 (56.8) | 100% | – | 9 tok/s | $0.31 · $0.31 |
| [DeepSeek V4.1 Flash 1017 Uncensored](https://openuncensored.com/models/deepseek-v4.1-flash-1017-uncensored) | #1 (81.0) | 100% | 2/5 | 221 tok/s | $0.33 · $1.32 |
| [Qwen 3.8 27B Uncensored Fast by Heabsy](https://openuncensored.com/models/qwen3.8-27b-uncensored-fast) | #11 (72.9) | 100% | 2/5 | 192 tok/s | $0.83 · $2.62 |
| [GLM 5.3 Flash Uncensored](https://openuncensored.com/models/glm-5.3-flash-uncensored) | #2 (79.1) | 94% | 3/5 | 99 tok/s | $0.12 · $0.50 |
| [MiMo V2.6 Flash Uncensored](https://openuncensored.com/models/mimo-v2.6-flash-uncensored) | #13 (69.8) | 83% | 2/5 | 79 tok/s | $0.46 · $1.50 |
| [Kimi K3.1 Pro Uncensored](https://openuncensored.com/models/kimi-k3.1-pro-uncensored) | #8 (74.1) | 94% | 3/5 | 85 tok/s | $2.50 · $5.00 |
| [Inkling 2 Small Uncensored](https://openuncensored.com/models/inkling-2-small-uncensored) | #3 (79.0) | 94% | 2/5 | 468 tok/s | $0.60 · $2.40 |

_Best ranked model of each family on the [OpenUncensored Score](https://openuncensored.com/uncensored-llm-leaderboard). All of them are on the same key, so switching is a change of the model id._

## Where Gemma 4 31B SDFT Heretic RP runs

| Host | Input | Cached input | Output | Native tool calls |
|---|---|---|---|---|
| [NanoGPT](https://openuncensored.com/providers/nanogpt) | $0.31 | – | $0.31 | no |

_USD per million tokens, live from the router. One key reaches every host; a failed request moves to the next one, and requests with tools go to hosts with native tool calls first. Send `"routing": {"strategy": "cheapest"}` to try the cheapest host first._

## Call it in a minute

Buy a prepaid key on the [credits page](https://openuncensored.com/credits) with no account (the key is the account), or point your agent at [agents.md](https://openuncensored.com/agents.md) and let it buy one.

python:

```python
from openai import OpenAI

client = OpenAI(base_url="https://api.openuncensored.com/v1", api_key="ou-...")

r = client.chat.completions.create(
    model="gemma-4-31b-sdft-heretic-rp",
    messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)
```

curl:

```bash
curl https://api.openuncensored.com/v1/chat/completions \
  -H "Authorization: Bearer $OU_API_KEY" -H "Content-Type: application/json" \
  -d '{"model": "gemma-4-31b-sdft-heretic-rp", "messages": [{"role": "user", "content": "Hello"}]}'
```

claude code:

```bash
export ANTHROPIC_BASE_URL=https://api.openuncensored.com
export ANTHROPIC_API_KEY=ou-...
export ANTHROPIC_MODEL=gemma-4-31b-sdft-heretic-rp
export ANTHROPIC_DEFAULT_OPUS_MODEL=$ANTHROPIC_MODEL
export ANTHROPIC_DEFAULT_SONNET_MODEL=$ANTHROPIC_MODEL
export ANTHROPIC_DEFAULT_HAIKU_MODEL=$ANTHROPIC_MODEL
export CLAUDE_CODE_SUBAGENT_MODEL=$ANTHROPIC_MODEL
claude
```

## FAQ

### Where can I find an uncensored Gemma 4 model hosted as an API?

On [OpenUncensored](https://openuncensored.com/), which serves 6 uncensored Gemma 4 builds through one OpenAI and Anthropic compatible API (`https://api.openuncensored.com/v1`), from NanoGPT, RedPill and Venice, with automatic fallback to the next host when one fails, and no account to create. The best one on our tests is [Gemma 4 31B SDFT Heretic RP](https://openuncensored.com/models/gemma-4-31b-sdft-heretic-rp) (`gemma-4-31b-sdft-heretic-rp`): ranked #21 of 34 on the [OpenUncensored Score](https://openuncensored.com/uncensored-llm-leaderboard) (56.8), answers 100% of 36 requests censored models refuse and runs at about 9 tok/s, from $0.31 per million input and $0.31 per million output tokens.

### Which uncensored Gemma 4 should I use?

Gemma 4 31B SDFT Heretic RP (`gemma-4-31b-sdft-heretic-rp`) scores best on our tests; Gemma 4 26B A4B Chimera X Heretic is the cheapest. All are on the same key, so switching is a change of the model id.

### Does it work with tool calling and coding agents?

Yes. Tools go through the standard OpenAI `tools` field or the Anthropic tool format, so Claude Code, Codex, OpenCode, Cline and Cursor work by changing the base URL.

### How much does it cost?

From $0.12 per million input and $0.38 per million output tokens (Gemma 4 26B A4B Chimera X Heretic). Prompt tokens a host serves from its cache are billed at its lower cached rate, which is most of an agent's input.

### Is Gemma 4 31B SDFT Heretic RP good for coding agents?

We have not run our agent tasks on it yet; see the [leaderboard](https://openuncensored.com/uncensored-llm-leaderboard) for models that have been.

### How long a context does it take?

256K tokens on the API.

### Do I need an account?

No. Buy a prepaid key on the [credits page](https://openuncensored.com/credits) and use it as the API key. The key is the account, and it cannot spend more than you loaded.

More: [best uncensored LLM API](https://openuncensored.com/best-uncensored-llm-api), [cheapest](https://openuncensored.com/cheapest-uncensored-llm-api), [leaderboard](https://openuncensored.com/uncensored-llm-leaderboard).
