Uncensored AI Generator API Quickstart
Integrate the uncensored llm api into your adult content pipeline with this OpenAI compatible uncensored endpoint. Get started with standard chat completions, streaming, and precise control over token usage.
Authentication & Base URL
The uncensored ai generator API uses standard Bearer token authentication. Your API key is generated instantly upon signup via Google or email. Store this key securely and pass it in the Authorization header for every request.
All requests must target the dedicated base URL. This ensures you are connecting to our uncensored model infrastructure and not a shared endpoint that might apply different filtering rules.
- Base URL:
https://api.uncensoredaigenerator.top/v1 - Auth Header:
Authorization: Bearer YOUR_API_KEY
No additional configuration is needed for the base URL. The endpoint is designed to work with any client that supports standard OpenAI-compatible routing.
Chat Completions Endpoint
Send text prompts to the POST /v1/chat/completions endpoint. The model id is uncensored. This endpoint handles standard prompt writing, dialogue generation, and text extraction for your pipeline.
The API returns a JSON object containing the generated text. It does not support embeddings, image generation, or fine-tuning. Keep your requests within the 100,000 token context window (input + output combined).
curl https://api.uncensoredaigenerator.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."}]
}'If you encounter errors, note that requests resulting in errors or refusals do not consume your prepaid credit. This allows you to test parameters without financial risk.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text, allowing you to display content in real-time.
The final chunk of the stream includes the full token usage statistics. This is the only point where you can accurately track consumption for your billing records. Streaming is ideal for chat interfaces where latency matters.
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)Handle the stream events efficiently to avoid memory issues. The uncensored model supports streaming without dropping context, ensuring coherent long-form generation.
Parameters for NSFW Content
Control the model's behavior using standard parameters. Use temperature to adjust creativity and top_p for nucleus sampling. Set response_format to {"type": "json_object"} if your pipeline requires structured data.
The model is tuned to answer without content refusals for lawful adult use. However, it strictly blocks sexual content involving minors. This hard limit applies regardless of other parameters. You can use stop sequences to control the end of generation.
Adjust presence_penalty and frequency_penalty to reduce repetition. These settings help refine the output for specific narrative styles or technical descriptions.
Rate Limits & Errors
Each API key is limited to 300 requests per minute and 8 concurrent requests. If you exceed these limits, the API returns a 429 status code. Implement exponential backoff in your client to handle retries gracefully.
Common errors include 401 for invalid keys and 402 when prepaid credit is exhausted. There is no separate output cap, and if max_tokens is unset, the response can run to the end of the window. Request bodies must not exceed 8 MB.
Errors do not consume tokens. If you experience a billing discrepancy, contact support through the provided page. Credit never expires, so you can top up at your convenience.
Model Info
Query GET /v1/models to verify the available model. The primary model is uncensored, an open-weight model hosted on our servers. It is not GPT, Claude, or any other vendor's model.
The context window is 100,000 tokens. This allows for substantial input data, useful for processing large scripts or extracting information from lengthy documents. The model supports function calling via the tools parameter.
Use the seed parameter for reproducible outputs during testing. This is helpful for debugging pipelines before scaling up. The model id remains constant, ensuring stable integration.
Python
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredaigenerator.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.uncensoredaigenerator.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);Capabilities and limits
One table with every limit, feature and price that applies to your key.
| Item | Value |
|---|---|
| API format | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| Base URL | https://api.uncensoredaigenerator.top/v1 |
| API key | Authorization: Bearer YOUR_KEY |
| Max context | 100,000 tokens, input and output combined |
| Streaming | Supported (stream: true), usage included at the end |
| JSON mode | response_format: {"type": "json_object"} |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Concurrency | up to 8 in parallel per key |
| Request size | up to 8 MB per request |
| Rate limit | 300/min per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| 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+ |
| Credit expiry | no monthly fee; paid credit does not expire |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Sign-in | sign in with Google or with e-mail + password |
| Key management | one active key per account; a new key replaces the old one |
Errors and what to do
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | body over 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 video generation?
No. This is a text-only chat-completions API. It handles prompt writing, dialogue, and text post-processing for adult content pipelines. It does not generate images, audio, or video.
How is billing calculated?
Billing is based on real token usage. Input tokens cost $0.15 per 1M, and output tokens cost $0.50 per 1M. Prepaid credit is charged, and errors or refusals are free. Credit never expires.
Can I use the OpenAI Python SDK?
Yes. The API is OpenAI-compatible. You can use the official OpenAI Python SDK by setting the base URL to https://api.uncensoredaigenerator.top/v1 and providing your API key.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.