EN ▾
Get API key

Quickstart for Gemma Abliterated users

Drop your existing OpenAI client configuration into our endpoint and start receiving uncensored responses immediately. This guide covers the exact integration steps for curl, Python, and Node.js clients.

Base URL and Authentication

Configure your client to point to https://api.gemmaabliterated.com/v1. You need an API key, which you generate on the Get API key page via Google or email. Pass this key in the Authorization: Bearer <key> header. The endpoint supports POST /v1/chat/completions and GET /v1/models. No other endpoints like embeddings or fine-tuning are available. The model ID is uncensored.

curl https://api.gemmaabliterated.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
  }'

Verify your key by requesting the model list or sending a minimal completion request. If the key is invalid, the server returns a 401 error. The context window is 100,000 tokens for prompt plus completion combined.

Basic Completion Request (Python)

Use the official OpenAI Python SDK. Set the base URL to our endpoint and provide your API key. This works because our API is fully OpenAI-compatible. Send a simple message to test the connection.

from openai import OpenAI

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

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)

This code sends a request and prints the assistant's content. The model answers without content refusals for lawful adult topics. You can adjust parameters like temperature or top_p if needed. If you do not set max_tokens, the response can run to the end of the 100,000-token window.

Node.js Integration

The Node.js SDK follows the same pattern. Initialize the client with our base URL and your key. This allows you to replace standard OpenAI calls with our uncensored endpoint without changing your application logic.

import OpenAI from "openai";

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

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);

Handle the response as you would with any OpenAI-compatible service. The API returns standard JSON structures. You can use stop sequences to control output length or format. Ensure your code handles potential network errors gracefully.

Streaming Responses

Enable streaming by setting stream: true. The API returns Server-Sent Events (SSE). Token usage details are provided in the final chunk only when streaming is enabled.

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Tell the story in second person."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Process each chunk as it arrives. This reduces perceived latency for long responses. The model does not refuse controversial topics, so streaming uncensored content works exactly like standard text completion. Monitor the usage field in the last chunk for billing insights.

Function Calling and JSON Mode

Use tools and tool_choice for function calling. Define your functions in the standard OpenAI format. The model will respond with tool calls when appropriate.

For strict JSON output, set response_format to {"type": "json_object"}. This ensures the model returns valid JSON, useful for programmatic pipelines. You can combine this with temperature settings for deterministic outputs. Note that the API does not support embeddings or image generation, so keep your use case focused on text.

Limits, Errors, and Context

You are limited to 300 requests per minute and 8 concurrent requests per key. The request body must be under 8 MB. If you exceed these limits, the server rejects the request; specific HTTP codes are not guaranteed, so handle errors generally.

If your key is invalid, you get a 401 error. Errors and refusals are free, so you are not charged for failed requests. The model refuses sexual content involving minors. You do not have to set max_tokens, and the total context window is 100,000 tokens. Manage your credit carefully, as prepaid credit does not expire.

Under the hood: specs

Everything the endpoint can and cannot do, in one place — check it before you top up.

ParameterDetails
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
Modeluncensored
Base URLhttps://api.gemmaabliterated.com/v1
EndpointsPOST /v1/chat/completions · GET /v1/models
AuthenticationBearer token in the Authorization header
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
JSON moderesponse_format: {"type": "json_object"}
SSE streamingSupported (stream: true), usage included at the end
Max context100,000 tokens, input and output combined
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Parallel requestsup to 8 in parallel per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max bodyup to 8 MB per request
Rate limit300 requests per minute per key
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Bonus credit+5% from $50, +10% from $100, +15% from $200
Trial credit$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Credit expiryno monthly fee; paid credit does not expire
Keysone key per account, regenerate any time (the old one stops working)
Content policyadult content allowed; sexual content involving minors is refused
Accountsign in with Google or with e-mail + password

Error codes

The type field is stable, the message is for humans. Errors cost nothing.

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

Is this the official Gemma model?

No. We host an open-weight model tuned for uncensored responses. It is not GPT, Claude, Gemma, Llama, or any other vendor's model. It is a separate model running on our servers.

How do I pay for usage?

You top up by crypto (USDT on TRC20, USDC on Base). There is no monthly fee. Credit is charged by real token usage, and errors are free. You can top up from $20 to $500.

What is the context window size?

The total context window is 100,000 tokens for prompt plus completion. There is no separate output cap. If you do not set max_tokens, the response can run to the end of the window.

Your key is one form away

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

Get API key