Switch your client in three lines
Migrate your existing Gemma 4 client code to our uncensored API by updating the base URL and API key. This guide covers authentication, request structures, streaming, and concurrency limits for the 100k context window.
Base URL & Authentication
Our API is fully OpenAI-compatible, meaning you can use the same client libraries you already know. To switch to our uncensored model, update your client configuration to point to our specific base URL. You will receive a single API key upon signup, which serves as the authentication token for all requests. Unlike services that require multiple keys for different environments, we issue one active key per account. If you generate a new key, the previous one is immediately invalidated. Ensure your client sends the key in the Authorization header as a Bearer token. This setup ensures your prompts are routed directly to our servers without corporate data tracking.
Chat Completions Endpoint
Send your prompts using the standard POST /v1/chat/completions endpoint. The model ID you must specify is uncensored. This model is tuned to answer without content refusals for lawful adult use, making it ideal for creative writing, security research, or raw data generation. You can test connectivity with a simple request. Note that we do not support embeddings, images, or audio generation—this is a text-only API. If you need other modalities, you must handle those separately.
Python SDK Integration
Use the official OpenAI Python library to interact with our API. Initialize the client with our base URL and your API key. The library handles serialization and streaming automatically. You can configure parameters like temperature and top_p to control randomness. The SDK will return a response object containing the generated text, token usage, and finish reason. This approach keeps your codebase clean and leverages existing ecosystem tools. Remember that our model ID is uncensored, not gemma-4 or any vendor-specific identifier.
Node.js SDK Usage
For JavaScript developers, the @anthropic-ai/sdk or openai npm packages work seamlessly. Set the baseURL to our endpoint and provide your key. Node.js environments benefit from native streaming support via async iterators. This allows you to process tokens as they arrive, which is crucial for long context windows. Ensure you handle errors gracefully, as network interruptions can occur. The SDK abstracts the HTTP details, letting you focus on prompt engineering and response handling within your application logic.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) for real-time token delivery. Each chunk contains partial text, allowing you to display output incrementally. The final chunk includes the complete token usage statistics and the finish reason. This is essential for applications requiring low latency, such as chat interfaces or live coding assistants. Streaming reduces perceived wait times significantly, especially when generating long responses that can run to the end of the window.
Limits & Quotas
Our API enforces strict rate limits to ensure stability: 300 requests per minute per key and 8 concurrent requests. If you exceed these limits, you will receive a 429 Too Many Requests error. Authentication failures return a 401 status, while insufficient credit triggers a 402 error. The context window supports 100,000 tokens total (prompt + completion), with no separate output cap per request. Errors do not consume credit, and prepaid credit never expires. Manage your concurrency carefully to avoid throttling during high-load scenarios.
cURL
curl https://api.gemmaabliterated.top/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."}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.gemmaabliterated.top/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)Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.gemmaabliterated.top/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);Streaming
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)API facts in one table
Use this table to decide whether the API fits your project before you buy credit.
| Spec | Value |
|---|---|
| Protocol | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Base URL | https://api.gemmaabliterated.top/v1 |
| Authentication | Authorization: Bearer YOUR_KEY |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Context window | 100,000 tokens (prompt + completion together) |
| Streaming | Supported (stream: true), usage included at the end |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| JSON mode | JSON object mode via response_format json_object |
| Concurrency | 8 requests at the same time per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Max body | up to 8 MB per request |
| Rate limit | 300 requests per minute per key |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Free trial | $0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Subscription | paid credit never expires, no subscription |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Account | Google or e-mail and password |
| Key management | one key per account, regenerate any time (the old one stops working) |
Error codes
The type field is stable, the message is for humans. Errors cost nothing.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
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 | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
What happens if I exceed the concurrent request limit?
Your request will receive a 429 status code indicating rate limiting. You must wait for previous requests to complete or reduce the number of simultaneous connections. The limit is 8 concurrent requests per key to ensure consistent performance for all users.
Does the API support function calling?
Yes, you can use the standard tools and tool_choice parameters. The model is optimized to follow tool definitions and return valid JSON structures for function execution. This works identically to the OpenAI format, so no code changes are needed if you are already using function calling.
How is billing calculated for streaming responses?
Billing is based on the total tokens generated in the final response, regardless of streaming. You are charged for input tokens and output tokens at the published rates. Errors and refusals are free, and you only pay for what is actually processed by the model.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.