EN ▾
gemmaabliterated.ccUncensored API. Prepaid crypto. No fluff.
Get API key

Gemma 4 Abliterated API: OpenAI-Compatible Setup

There is no official Gemma 4 abliterated API. What you can use is a hosted, OpenAI-compatible endpoint that runs an open-weight model tuned to answer without content refusals, and this page shows how to call it.

Isometric illustration of a server cube linked to a terminal with flowing data, representing an OpenAI-compatible API

Key points

  • Change the base URL and key in any OpenAI SDK and use the model ID uncensored.
  • Streaming, tool calling and JSON mode work; the context window is 100,000 tokens.
  • This service is not Google's API and does not promise a specific Gemma release.
  • Pricing is $0.15 per 1M input and $0.50 per 1M output tokens, prepaid.

What this kind of API can and cannot mean

If you typed gemma 4 abliterated api into a search box, you probably want one thing: send a prompt to an abliterated Gemma-family model over HTTP and get a reply that is not interrupted by a refusal. Abliteration is a community technique that edits an open-weight model so it stops declining certain requests. People usually run those edited weights themselves, with llama.cpp, Ollama or vLLM, on a machine with enough memory.

Google does not offer an abliterated model through its own API, and nobody can honestly sell you Google's endpoint with the refusals removed. What exists is a different thing: a hosted API that serves one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. It is not the official API of Google, Meta, Mistral, Qwen, DeepSeek or any other vendor, and it is not a router that forwards your request to those vendors.

This site is that second option. We do not promise a particular Gemma version or parameter count, and you should treat any page that does with suspicion unless it shows its working. What we do promise is the interface: the same JSON shape as the OpenAI chat API, so tools you already use keep working.

Why use a hosted endpoint instead of local weights

Running your own abliterated model is a fair choice if you have the hardware and want full control. A hosted endpoint makes sense when you do not, or when your app needs to serve more than one user at a time.

  • No GPU to own. Large models need a lot of video memory, and quantized files trade quality for size. A hosted call has no download, no driver work and no out-of-memory crashes.
  • Long context without paying in RAM. The window here is 100,000 tokens, prompt plus completion. On local hardware the cache for a window that size can be larger than the model file.
  • Standard client code. You write the OpenAI SDK call once. If you later move to a self-hosted server that speaks the same protocol, you change one URL.
  • Pay for what you use. Credit is prepaid, there is no subscription, and failed or refused requests are not charged.

The honest downside: you send prompts to a third party. Prompts are not used for training, but if your data must never leave your own machine, local weights are the right answer and this API is not.

Make your first request

Create an account on the API key page. Sign-up works with Google or with email and password, and a new account can claim $0.50 of trial credit with one click, no card needed. Then copy the key and run one of these.

curl

curl https://api.gemmaabliterated.cc/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [
      {"role": "system", "content": "You are a blunt editor for adult fiction writers."},
      {"role": "user", "content": "Give me three ways to open a noir chapter."}
    ]
  }'

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.gemmaabliterated.cc/v1",
    api_key="YOUR_KEY",
)

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarize the plot of Hamlet in two lines."}],
)
print(resp.choices[0].message.content)

Node

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.gemmaabliterated.cc/v1",
  apiKey: process.env.API_KEY,
});

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Name five villain archetypes." }],
});
console.log(resp.choices[0].message.content);

The model ID is uncensored. You can confirm it by calling GET /v1/models with the same header. The docs page covers the first request step by step.

Streaming, tool calling and JSON mode

The features people expect from a modern chat API are present. Here are the three you will use most.

Streaming

Set stream: true and read server-sent events. Token usage arrives at the end of the stream. A streamed request holds one of your concurrency slots until it finishes, so close the connection when the user cancels.

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write a short scene in a rainy harbor."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

Tool calling

Pass tools and optionally tool_choice. The model returns tool_calls, you run the function, and you send the result back as a message with role: "tool". Streamed tool calls work too. Define parameters with a strict JSON schema and validate the arguments before you run anything, because any model can produce malformed arguments now and then.

JSON mode

Add response_format: {"type": "json_object"} and say "JSON" in your prompt. Parse the result in a try block anyway and retry once on failure. Sampling settings such as temperature, top_p, stop, seed and the penalties are passed through, so you can lower temperature for structured output and raise it for fiction.

Limits, pricing and what it costs in practice

A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 concurrent and 60 per minute. The maximum body is 8 MB. Going over returns HTTP 429, with the code rate_limited for the per-minute limit or concurrency for too many requests at once. If the service is briefly overloaded you also get a 429 with Retry-After: 5. Back off and retry.

Price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. A chat turn with 2,000 tokens of history and a 500-token reply costs 2,000 x $0.15 / 1M = $0.0003 for input plus 500 x $0.50 / 1M = $0.00025 for output, so $0.00055 in total. The $0.50 trial credit therefore covers roughly 900 such turns before you need to top up.

Top-ups take any whole amount from $20 to $500, by crypto (USDT on TRC20, USDC on Base). You get +5% from $50, +10% from $100 and +15% from $200, and credit never expires. See the pricing page for the table.

Using it for fiction, roleplay and companion apps

Most people who search for an uncensored model are building something creative: interactive fiction, character chat, a companion app for adults, or a writing assistant that does not stop mid-scene to lecture. A few habits make the output better regardless of the model.

  • Put the persona and the rules of the world in the system message and keep them short and specific.
  • Use temperature between 0.7 and 1.0 for prose and lower for anything that must be parsed.
  • Set seed while you test a prompt so you can compare two versions fairly.
  • Keep a running summary instead of the full transcript once a session gets long.

Clients such as SillyTavern let you add an OpenAI-compatible endpoint, so the base URL and key from this page are all you need there. Keep the minors rule in your own product terms too, since you are the one who faces your users.

Common mistakes when switching from a local setup

  • Wrong model name. Local servers use names like a file or a tag. Here the only ID is uncensored.
  • Missing /v1. The base URL ends in /v1. Some clients append /chat/completions themselves, others want the full path, so check which yours does.
  • Sending the whole archive every turn. The window is large, but input tokens are billed. Trim old turns or summarize them.
  • Expecting image or audio output. This is a text-only API. No images, audio, video, embeddings or fine-tuning.
  • Ignoring 429 responses. Add a retry with a short delay instead of firing the request again at once.

The content rule is simple. The model answers without content refusals for lawful adult use, and there is one hard limit: no sexual content involving minors, ever. Requests that cross it will not be served. For more integration problems, see the common mistakes guide.

Questions and answers

Is this the official Gemma 4 API from Google?

No. It is an independent hosted endpoint serving one open-weight model. It is not Google's API or the official API of any other vendor, and it does not route between vendors.

Which model ID do I send?

Send uncensored as the model value. You can list it with GET /v1/models.

Can I use my existing OpenAI code?

Yes. Change the base URL and the key, set the model to uncensored, and the chat completions call works as before.

Do you train on my prompts?

No. Prompts are not used for training.

Is there a free way to try it?

New users can claim $0.50 of trial credit with one click on the API key page. It lasts 7 days, needs no card and is limited to one per person.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Start with trial credit

Email and password, key on screen right away.