Unrestricted LLM API Documentation | Unrestricted LLM (unrestrictedllm.top)
Get started with the Unrestricted LLM API by authenticating with your key and sending a chat completion request. This guide covers the essential endpoints, streaming, and error handling for immediate integration.
Base URL and Authentication
Our API follows the OpenAI compatible structure, allowing you to use existing SDKs with minimal changes. The base URL is https://api.unrestrictedllm.top/v1. To authenticate, include your API key in the Authorization header as a Bearer token. You can generate a key instantly by signing in with Google or email on the Get API key page. The key is displayed immediately and can be replaced if needed. There is no monthly subscription; you pay per token with prepaid credit that never expires.
First Request
Send a POST request to /v1/chat/completions with the model ID uncensored. The model is an open-weight variant tuned for uncensored responses, distinct from GPT or Llama. It accepts standard parameters like temperature and top_p. Errors and refusals do not consume your token balance, making it cost-effective for development. Ensure you set the Content-Type to application/json. The request body must stay under 8 MB.
Python SDK Integration
Use the official OpenAI Python library to interact with the API. Configure the client with the custom base URL and your API key. The model ID is uncensored. This setup allows you to leverage familiar methods like chat.completions.create(). The API supports function calling and JSON mode, enabling structured output or tool usage within the same uncensored context. Streaming is supported via the stream parameter for real-time token delivery.
Node SDK Integration
The JavaScript SDK works similarly. Initialize the client with the base URL https://api.unrestrictedllm.top/v1 and your key. Call chat.completions.create with the model uncensored. This approach is ideal for server-side applications or Node.js environments. You can handle responses asynchronously. The API does not offer embeddings or image generation, keeping the focus purely on text completion. Check the Pricing page for token costs.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial content. Token usage details are provided in the final chunk of the stream. This is useful for real-time applications where displaying tokens as they generate improves user experience. The uncensored model handles streaming efficiently without losing context within the 100k window.
Limits, Errors, and Context
The context window is 100,000 tokens total (prompt + completion). There is no separate output cap (if max_tokens is unset, the response can run to the end of the window). Rate limits are 300 requests per minute and 8 concurrent requests per key. Common errors include 401 (invalid key), 402 (insufficient credit), and 429 (rate limit exceeded). Credit is prepaid and does not expire. Prompts are not used for training. No card is needed for the $0.50 trial. Claim this credit with one click on your API key page.
cURL
curl https://api.unrestrictedllm.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
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedllm.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.unrestrictedllm.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
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)API facts in one table
Use this table to decide whether the API fits your project before you buy credit.
| Item | Value |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Model | uncensored |
| Base URL | https://api.unrestrictedllm.top/v1 |
| API key | Authorization: Bearer YOUR_KEY |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| JSON mode | JSON object mode via response_format json_object |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max context | 100,000 tokens, input and output combined |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Streaming | Supported (stream: true), usage included at the end |
| Max body | up to 8 MB per request |
| Parallel requests | up to 8 in parallel per key |
| Rate limit | 300/min per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Credit expiry | paid credit never expires, no subscription |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| 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 |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Sign-in | Google or e-mail and password |
| Keys | one active key per account; a new key replaces the old one |
Error codes
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| HTTP | Type | What to do |
|---|---|---|
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 | sexual content involving minors — refused, not billed |
404 | not_found | only /v1/chat/completions and /v1/models exist |
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 this API support fine-tuning?
No, the API does not offer fine-tuning jobs. It serves a single uncensored large language model. You can control behavior via parameters like temperature and system prompts, but you cannot train a custom version of the model through this endpoint.
How do I top up my credit?
Credit is topped up by crypto (USDT on TRC20, USDC on Base). Minimum top-up is $20, maximum $500. You can add $50 or more for bonus credit. Credit never expires.
What is the context window size?
The total context window is 100,000 tokens, including both the prompt and the completion. There is no separate output cap. If you do not specify max_tokens, the response can run to the end of the window.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Get API key