Gemma NSFW: First request in five minutes
Get your first uncensored Gemma response in minutes with our OpenAI-compatible API. This guide covers authentication, request formats, streaming, and limits for rapid integration.
https://api.gemmansfw.cc/v1
Base URL and Authentication
Start by creating an account via Google or email to generate your API key immediately. No phone number or credit card is required, though you will need to top up with crypto to make requests. Store your key securely and pass it in the Authorization header as a Bearer token. Our base URL is https://api.gemmansfw.cc/v1, which works with standard OpenAI SDKs by simply updating the base URL configuration.
Sending a Completion Request
Send a standard POST request to /v1/chat/completions with your system and user messages. The model identifier is uncensored. This endpoint accepts text in and returns text out, supporting streaming and JSON modes. Ensure you do not exceed the 8 MB request body limit. If your key is invalid, you will receive a 401 error; if you lack funds, you will get a 402 error.
curl https://api.gemmansfw.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."}]
}'
Python SDK Integration
Using the official openai Python package is the fastest way to integrate. Set the base_url to our endpoint and provide your API key. You can adjust parameters like temperature and top_p to control creativity. The SDK handles token counting and streaming automatically if configured correctly. Remember that the model does not support embeddings or image generation, so stick to text completion tasks.
from openai import OpenAI
client = OpenAI(base_url="https://api.gemmansfw.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)
Node.js SDK Setup
For JavaScript environments, initialize the OpenAI client with our custom base URL. This allows you to use familiar await patterns for synchronous requests or stream responses for real-time UI updates. You can configure max_tokens to control output length; if unspecified, the response can run to the end of the window. The Node SDK works seamlessly with our prepaid credit system, charging only for actual token usage.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.gemmansfw.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);
Handling Streaming Responses
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) for real-time token delivery. Token usage statistics are included in the final chunk of the stream. This is ideal for chat interfaces that display text as it is generated. Each stream event contains partial content that you can append to your UI without waiting for the full response.
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)
Limits, Errors, and Context Window
Our API enforces strict limits to ensure stability: 300 requests per minute per key and 8 concurrent requests at the same time. The context window supports 100,000 tokens total (prompt plus completion), and output can run to the end of the window. If you exceed the rate limit, you will receive a 429 error. Credits never expire, and errors do not consume your balance.
Capabilities and limits
If your tool speaks the OpenAI API, these are the details that matter.
| Spec | Value |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Base URL | https://api.gemmansfw.cc/v1 |
| API key | Authorization: Bearer YOUR_KEY |
| Model ID | uncensored |
| Methods | POST /v1/chat/completions · GET /v1/models |
| JSON mode | JSON object mode via response_format json_object |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Context window | 100,000 tokens (prompt + completion together) |
| Streaming | Supported (stream: true), usage included at the end |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Max body | 8 MB request body |
| Rate limit | 300 requests per minute per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | 8 requests at the same time per key |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $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 pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Subscription | paid credit never expires, no subscription |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Sign-in | sign in with Google or with e-mail + password |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Key management | one key per account, regenerate any time (the old one stops working) |
Errors and what to do
Every error is JSON with a type you can switch on. You are never charged for an error.
| Code | Type | Meaning |
|---|---|---|
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 | balance is empty — top up, requests resume at once |
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
How does billing work?
We use a prepaid credit system charged by real token usage. Errors and refusals are free. You can top up with USDT (TRC20) or USDC (Base) in amounts from $20 to $500.
What is the context window limit?
The total context window is 100,000 tokens for prompt and completion combined. There is no separate output cap, and if you do not set max_tokens, the response can run to the end of the window.
Is my data used for training?
No. Prompts are not used for training. We only require an email for your account, and you can sign up without a phone number.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.