- Uncensored AI Generator
- Uncensored AI Generator API Documentation
Uncensored AI Generator API Documentation
Integrate the uncensored AI generator into your pipeline using standard OpenAI-compatible endpoints. This guide covers authentication, request formats, and client SDKs for programmatic text generation.
Base URL and Authentication
The API base URL is https://api.uncensoredaigenerator.cc/v1. Authenticate every request by including your API key in the Authorization header. Your key is generated instantly upon signup via Google or email. The API key is single-tenant; issuing a new key invalidates the previous one. Keep your key secure and pass it in the header for all subsequent requests.
First Request
Send a POST request to /v1/chat/completions with the model ID "uncensored". The request body must contain the messages array. The model processes text input and returns text output. Ensure your request body does not exceed 8 MB. This endpoint handles all text generation tasks, including creative writing and script generation.
curl https://api.uncensoredaigenerator.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
Use the official OpenAI Python library to interact with the API. Configure the client with your base URL and API key. The library handles JSON serialization and HTTP requests automatically. This approach simplifies integration into existing Python pipelines and allows you to leverage standard SDK features like retries and pagination.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredaigenerator.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 SDK Integration
The Node.js SDK follows the same configuration pattern. Import the library and initialize the client with your credentials. This method is ideal for server-side applications and backend services. You can send completion requests and process the text responses directly within your Node environment.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredaigenerator.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);
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns data incrementally via Server-Sent Events (SSE). This reduces perceived latency for real-time applications. Token usage statistics are included in the final chunk of the stream. Monitor the stream to handle partial responses gracefully.
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
The context window is 100,000 tokens total, with no separate output cap. You are limited to 300 requests per minute and 8 concurrent requests per key. HTTP 401 indicates an invalid key. HTTP 402 means your prepaid credit is exhausted. HTTP 429 signals you have exceeded the rate limit. Errors do not consume your credit.
Specs at a glance
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 |
| Authentication | Authorization: Bearer YOUR_KEY |
| Base URL | https://api.uncensoredaigenerator.cc/v1 |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Context window | 100,000 tokens (prompt + completion together) |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| SSE streaming | Supported (stream: true), usage included at the end |
| Structured output | JSON object mode via response_format json_object |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max body | up to 8 MB per request |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | 8 requests at the same time per key |
| Rate limit | 300/min per key |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output 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 |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Account | 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) |
Error reference
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Status | Type | Reason |
|---|---|---|
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 | 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 do I top up my credit?
Top-ups are processed by crypto (USDT on TRC20, USDC on Base). You can deposit any whole amount between $20 and $500. Credit never expires once added to your account.
Is there a free trial?
Yes, new users get $0.50 of trial credit valid for 7 days, one per person. Claim this credit with one click on your API key page. No credit card is required to sign up and receive the trial credit.
What content is blocked?
The API applies a hard content limit that always blocks sexual content involving minors. All other lawful adult, fictional, or controversial topics are permitted without refusal.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.