Gemma Abliterated: First request in five minutes
Connect to the uncensored Gemma API in under five minutes using standard OpenAI SDKs. This guide covers the base URL, authentication, and core parameters for your first request.
Base URL & Authentication
Start by pointing your OpenAI-compatible client to our base URL: https://api.gemmaabliterated.cc/v1. You will need a valid API key from the Get API key page. The model identifier to use is uncensored. This is an open-weight model hosted on our servers, distinct from GPT, Claude, or other vendor offerings. Authentication is handled via the standard Authorization: Bearer <key> header. If the key is missing or invalid, the API returns a 401 error. Ensure your client library is configured to use the correct base URL to avoid connection failures.
First Request
Send a standard chat completion request to test connectivity. The following example uses the curl command-line tool. Replace <YOUR_API_KEY> with your actual key. The request specifies the model, the message content, and the system prompt. The API returns a text response based on the input. This confirms your integration is working correctly before you proceed to more complex parameters.
curl https://api.gemmaabliterated.cc/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 the response contains the generated text in the choices array. If you receive a 402 error, your prepaid credit has been exhausted. If you get a 429, you have exceeded the 300 requests per minute limit.
Python SDK Integration
Use the official openai Python library to integrate quickly. Initialize the client with your API key and the custom base URL. Set the model to uncensored. The following snippet demonstrates a simple text generation request. You can adjust the temperature and top_p parameters to control creativity. This approach works with any OpenAI-compatible SDK, making migration from other providers straightforward.
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": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)Check the usage object in the response to track token consumption. Input tokens cost $0.15 per 1M, and output tokens cost $0.50 per 1M. Errors do not consume credit.
Node.js SDK Configuration
For JavaScript environments, use the openai Node.js package. Configure the base URL and API key in the client initialization. The model ID remains uncensored. This setup allows you to use standard Node.js async/await patterns for API calls. Ensure you handle potential errors gracefully, such as rate limits or insufficient funds.
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: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);The response structure mirrors the standard OpenAI format. You can access the generated text via response.choices[0].message.content. This consistency allows you to reuse existing codebases with minimal changes.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns chunks of text as they are generated, allowing for lower latency perception. The final chunk includes the token usage statistics. This is ideal for real-time applications where you want to display text as it is produced. Streaming works with both the Python and Node.js SDKs.
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)Iterate over the stream to collect or display tokens. Remember that streaming does not reduce the token cost; you are still charged for the total tokens used in the prompt and completion.
Limits, Errors & Context Window
The context window supports up to 100,000 tokens for the combined prompt and completion. There is no separate output cap, and if max_tokens is unset the response can run to the end of the window. Rate limits are 300 requests per minute and 8 concurrent requests per key. Requests are limited to an 8 MB body. Errors include 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. Token usage is charged only for successful completions; refusals due to content policy (e.g., minor sexual content) are free.
Capabilities and limits
Everything the endpoint can and cannot do, in one place — check it before you top up.
| Feature | Support |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Base URL | https://api.gemmaabliterated.cc/v1 |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| API key | Authorization: Bearer YOUR_KEY |
| Model | uncensored |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Context window | 100,000 tokens, input and output combined |
| Structured output | response_format: {"type": "json_object"} |
| Requests per minute | 300 requests per minute per key |
| Max body | up to 8 MB per request |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | up to 8 in parallel per key |
| Credit expiry | no monthly fee; paid credit does not expire |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| 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 |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Key management | one active key per account; a new key replaces the old one |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Sign-in | sign in with Google or with e-mail + password |
Errors and what to do
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| HTTP | Type | What to do |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | refused by the content policy |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
Does the API support image or audio generation?
No. This is a text-only API. It serves one uncensored large language model for text in and text out. There are no embeddings, image, audio, or video generation endpoints.
How do I top up my credit?
Top-ups are by crypto (USDT on TRC20, USDC on Base). Minimum top-up is $20, maximum is $500. You receive a 5% bonus for top-ups of $50 or more, and 10% for $100 or more.
Is my data used for training?
No. Prompts sent to the API are not used for training. You only need an email address to create an account, and no phone number is required.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.