API Documentation for the Uncensored Text Engine
Start generating uncensored text prompts for your media pipeline in minutes. This guide covers the essential endpoints, authentication, and client libraries needed to integrate our OpenAI-compatible engine into your existing workflows.
Base URL and Authentication
Our API follows the standard OpenAI chat-completions structure, making it easy to swap into existing projects. Use https://api.unrestrictedimagegenerator.top/v1 as your base URL. You authenticate using a Bearer token passed in the Authorization header. Obtain your key from the dashboard; each account holds one active key at a time. If you generate a new key, the previous one becomes invalid immediately. This ensures tight control over your uncensored text engine without the complexity of managing multiple tokens for a single pipeline.
First Request
Send a simple text request to test the connection. The model ID is uncensored. This endpoint processes your input and returns text output without standard corporate refusals for lawful adult or controversial topics. Ensure your content remains within legal bounds, as sexual content involving minors is strictly blocked. Use this step to verify your API key and base URL configuration before scaling up to larger prompt engineering tasks.
curl https://api.unrestrictedimagegenerator.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 SDK Integration
Use the official openai Python package to interact with the API. Set the base URL and API key in your client configuration. This allows you to leverage familiar methods like chat.completions.create() for generating text. The response structure matches OpenAI's format, making it straightforward to parse JSON responses or extract specific fields for your media pipeline scripts. This approach minimizes boilerplate code and lets you focus on prompt logic.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedimagegenerator.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 SDK Integration
For JavaScript or TypeScript environments, the openai npm package provides seamless integration. Initialize the client with your base URL and key. You can then call the chat completions endpoint just like any other OpenAI-compatible service. This is ideal for web servers or Node.js scripts that need to generate metadata, captions, or post-processing text instructions on the fly. The synchronous nature of standard requests makes debugging easier during initial development phases.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedimagegenerator.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 Responses
For low-latency applications, enable streaming by setting stream: true. The API returns data in Server-Sent Events (SSE) format. Each chunk contains a partial response, allowing your application to display text as it is generated. This is particularly useful for interactive tools or when generating long-form content where immediate feedback improves the user experience. Monitor the final chunk for token usage statistics to track your credit consumption accurately.
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
Monitor your request limits to avoid service interruptions. The API enforces a limit of 300 requests per minute per key, with a maximum of 8 concurrent requests. If you exceed these limits, you will receive a 429 error. Authentication failures return a 401 error, while insufficient credit results in a 402 error. The context window supports up to 100,000 tokens total, with no separate output cap. Keep your prompt bodies under 8 MB to ensure smooth processing.
API facts in one table
If your tool speaks the OpenAI API, these are the details that matter.
| Parameter | Details |
|---|---|
| API format | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Base URL | https://api.unrestrictedimagegenerator.top/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| API key | Bearer token in the Authorization header |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Max context | 100,000 tokens, input and output combined |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| JSON mode | response_format: {"type": "json_object"} |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Requests per minute | 300/min per key |
| Max body | 8 MB request body |
| Concurrency | up to 8 in parallel per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| 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 |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Subscription | no monthly fee; paid credit does not expire |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Keys | one key per account, regenerate any time (the old one stops working) |
| Sign-in | Google or e-mail and password |
When a request fails
The type field is stable, the message is for humans. Errors cost nothing.
| 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 | 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 handle concurrent requests?
You can send up to 8 requests simultaneously per API key. If you need more parallel processing, consider distributing your load across multiple accounts or keys, though each account is limited to one active key at a time.
What happens if I run out of credit?
Requests will return a 402 error indicating insufficient funds. Your prepaid credit does not expire, so you can top up at any time using USDT (TRC20) or USDC (Base) to resume service. Errors and refusals do not consume credit.
Is the 8 concurrent limit strict?
Yes, the system enforces a maximum of 8 simultaneous active requests per key. Exceeding this may result in 429 rate limit errors. Plan your pipeline concurrency accordingly to avoid interruptions during high-volume generation tasks.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.