Unrestricted AI Generator API Documentation | Unrestricted AI Generator
This quickstart guides you through integrating the uncensored LLM API into your content pipelines. Use the OpenAI-compatible endpoints to generate scripts, captions, or post-processing text for your multimedia workflows.
Base URL and Authentication
The API base URL is https://api.unrestrictedaigenerator.com/v1. You authenticate using a Bearer token in the Authorization header. Create your account via Google or email on the dashboard to receive your key immediately. No phone number is required, and no card is needed for the initial trial credit. The key is tied to your account, and generating a new key replaces the previous one.
Your First Request
Send a standard chat/completions request to test connectivity. The model ID is always uncensored. This endpoint returns raw text without content filters for lawful adult, fictional, or research topics. Ensure your request body includes the model and messages fields.
curl https://api.unrestrictedaigenerator.com/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. Point the client to our base URL and inject your API key. This approach allows you to use familiar Python patterns for building reasoning layers in your scripts. The client handles JSON serialization and response parsing automatically.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedaigenerator.com/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 Integration
For JavaScript environments, use the openai Node.js package. Configure the base URL and API key in the client initialization. This setup is ideal for server-side generation of prompts or post-processing text within your Node applications. The SDK manages the HTTP requests and stream handling efficiently.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedaigenerator.com/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 Server-Sent Events (SSE) with incremental token updates. This is useful for low-latency UIs or real-time script generation. Token usage statistics are included in the final chunk of the stream. You can parse these events to update your interface progressively.
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. Rate limits are 300 requests per minute and 8 concurrent requests per key. Handle specific HTTP errors: 401 indicates an invalid key, 402 means you need more prepaid credit, and 429 signals rate limit exhaustion. Errors and refusals do not consume your credit balance.
Under the hood: specs
Everything the endpoint can and cannot do, in one place — check it before you top up.
| Feature | Support |
|---|---|
| API format | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Base URL | https://api.unrestrictedaigenerator.com/v1 |
| Model | uncensored |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Authentication | Bearer token in the Authorization header |
| Max context | 100,000 tokens (prompt + completion together) |
| Completion length | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Structured output | JSON object mode via response_format json_object |
| Parallel requests | up to 8 in parallel per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Rate limit | 300/min per key |
| Max body | 8 MB request body |
| Subscription | no monthly fee; paid credit does not expire |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Free trial | $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+ |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Key management | one active key per account; a new key replaces the old one |
| Sign-in | sign in with Google or with e-mail + password |
Error reference
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 | out of credit; add credit and retry |
403 | content_blocked | refused by the content policy |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 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
Does this API generate images or audio?
No. This is a text-only chat-completions API. It serves as the reasoning layer for pipelines that use separate tools for image, audio, or video generation. You use this API to generate the text prompts or scripts that drive those other tools.
What happens if I exceed my credit balance?
Requests will return a 402 error. Credit is charged based on actual token usage, and prepaid credit never expires. You can top up using crypto (USDT on TRC20, USDC on Base) directly from your dashboard.
Is the model trained on my data?
No. Your prompts are not used for training. The model is an open-weight model run on our own servers. It is tuned to answer without content refusals for lawful adult use, with a hard limit blocking sexual content involving minors.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.