What the API removes and what it keeps
An ai model without restrictions sounds like a single feature, but it is really two separate things: the model's own behaviour and the service wrapped around it. On this API the model has been tuned to answer without content refusals for lawful adult use, and there is no moderation layer in front of it deciding that your prompt is too risky to forward.
What it keeps is everything an engineer would want to stay stable. The interface is the OpenAI chat completions format. Authentication is a bearer token. Requests have size and rate limits, and the context window is fixed at 100,000 tokens covering prompt and completion together. The model is text only.
It also keeps one rule that cannot be turned off: no sexual content involving minors. If your project depends on that, it will not work here, and no pricing tier changes it.
So the useful mental model is a normal hosted LLM endpoint with the refusal reflex taken out. Your code does not need to know the difference. Your prompts, however, can stop carrying defensive padding.
It helps to be specific about what you gain operationally. There is no second request to a moderation endpoint before your real call, so no extra round trip and no false positive that blocks a legitimate message. Your error handling stays simple: a response is either an answer or a transport, authentication or limit error. When a request fails or is refused, you are not charged for it, which removes one source of surprise from the invoice.
One model, no routing
Some gateways advertise dozens of models and pick one per request. This service does the opposite. There is a single open-weight model run by an independent provider, and the only model ID is uncensored. It is not the official API of Meta, Mistral, Qwen, DeepSeek, OpenAI, xAI, Google, Anthropic or any other vendor.
That has practical consequences. Output style stays consistent between calls, so prompts you tune today behave the same tomorrow. You cannot A/B test several model families through one key, though, and there is nothing to fall back to if you dislike the writing style. If you need a model comparison, run the other candidates elsewhere and measure with your own prompts.
You can confirm what the server exposes with a model listing request:
curl https://api.unrestrictedaimodel.cc/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"
curl https://api.unrestrictedaimodel.cc/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "uncensored", "messages": [{"role": "user", "content": "Say hello in five words."}]}'
The first call lists the available ID and the second proves the key works. Use exactly that string in the model field; a typo returns an error instead of falling back to some other model.
Wiring it into a Node project
The official OpenAI SDK for JavaScript works if you pass a different base URL. This example reads the key from an environment variable and streams the reply, which is the pattern most chat interfaces use.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.unrestrictedaimodel.cc/v1",
apiKey: process.env.UNRESTRICTED_API_KEY,
});
const stream = await client.chat.completions.create({
model: "uncensored",
stream: true,
stream_options: { include_usage: true },
messages: [
{ role: "system", content: "Answer directly. Do not add disclaimers unless asked." },
{ role: "user", content: "Summarise the strongest arguments against my thesis, even the uncomfortable ones." },
],
});
for await (const chunk of stream) {
const delta = chunk.choices[0]?.delta?.content;
if (delta) process.stdout.write(delta);
}
Streaming runs over server-sent events. The final chunk carries token usage, so you can log the exact count per request. Every response also carries headers worth recording: X-Request-Id for support questions, X-Balance-USD for remaining credit, and the rate-limit headers that report your key's request and concurrency ceilings.
Prompting when the model will not refuse
Removing refusals changes how you should write prompts. Instructions that were once needed to talk a cautious model into cooperating now just waste tokens and sometimes make the output worse.
Drop the persuasion
Skip openers such as "this is for research purposes" or "I am a professional". They are noise. Say what you want, in what format, for which audience.
Be explicit about boundaries you do want
Without a refusal layer, the only guard rails are the ones you write. If your product serves a specific audience, state the tone, topics and length in the system prompt. A companion app might say never to give medical diagnoses. A fiction tool might say to keep violence at a certain level of detail. The model follows these instructions the way any instruction-tuned model does.
Use structured output when you need parsing
JSON mode is supported through response_format: {"type": "json_object"}. Mention the keys you expect in the prompt, since the flag guarantees syntax, not your schema.
import json
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedaimodel.cc/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
model="uncensored",
response_format={"type": "json_object"},
messages=[
{"role": "system", "content": "Return JSON with keys: tone (string), risk_flags (array of strings)."},
{"role": "user", "content": "Classify this forum post: 'Nobody here will tell you the truth about this drug.'"},
],
)
data = json.loads(resp.choices[0].message.content)
print(data["tone"], data["risk_flags"])
Limits you will actually hit
The service has no content filter, but it does have capacity limits, and these are the errors production code needs to handle.
| Key type | Concurrent requests | Requests per minute |
|---|---|---|
| Full key | 8 | 300 |
| Trial key | 2 | 60 |
Past a limit the API answers HTTP 429. The error code tells you why: rate_limited means too many requests in a minute, concurrency means too many at once. On temporary overload you also get a 429 with a Retry-After: 5 header. One detail catches people out: a streamed request holds its concurrency slot until the stream ends, so a slow reader on the client side can starve your other calls.
import time
from openai import OpenAI, RateLimitError
client = OpenAI(base_url="https://api.unrestrictedaimodel.cc/v1", api_key="YOUR_API_KEY")
def ask(messages, tries=4):
for attempt in range(tries):
try:
return client.chat.completions.create(model="uncensored", messages=messages)
except RateLimitError as err:
wait = 5 * (attempt + 1)
print("429, retrying in", wait, "s:", err)
time.sleep(wait)
raise RuntimeError("still rate limited")
The maximum request body is 8 MB. With a 100,000 token window, you are far more likely to run out of context than to hit the body limit.
If you run a queue-based worker, a simple approach is to size the pool to your concurrency limit and let the pool itself act as the throttle. Combine that with a per-minute counter if you expect bursts, since 300 requests per minute on a full key can be reached by eight workers finishing short requests quickly. Log the X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency headers on a sample of responses so your dashboards show the ceilings your key really has.
Tool calling and agents
Tool calling follows the OpenAI format: pass tools and optionally tool_choice, receive tool_calls (also when streaming), and answer them with messages whose role is tool. Agent frameworks that speak the OpenAI protocol can usually be pointed at this base URL without code changes.
A practical tip for agents: set a modest temperature for the step that picks tools and a higher one for the step that writes prose. Pass a fixed seed while debugging so runs are comparable. Keep in mind the concurrency ceiling when your framework fans out parallel sub-agents; eight at once is the limit for a full key, so cap your pool at that number.
The documentation has the full list of supported parameters, including the penalties that are passed through to the model.
When a tool call fails on your side, return the error text as the tool result instead of dropping the turn. The model usually recovers by trying different arguments. Keep tool descriptions short and literal, and name parameters the way you would in a function signature. Vague descriptions cause more bad calls than any sampler setting.
Two more habits pay off with agents. Put a hard cap on the number of loop iterations so a confused run cannot spend your balance, and read the X-Balance-USD header after each call so a long job can stop itself when credit runs low.
Cost and getting started
You pay $0.15 per 1M input tokens and $0.50 per 1M output tokens from prepaid credit. A job that sends 400,000 tokens in and receives 100,000 tokens out costs $0.06 for input and $0.05 for output, so $0.11 in total. Requests that fail or get refused cost nothing, and credit never expires.
The trial is the cheapest way to check fit: after sign-up, one click on the API key page claims $0.50 of credit, valid for 7 days, no card needed. See the pricing page for top-up amounts and bonuses, and get an API key to start. Before you build on it, test the behaviours you care about with real prompts. A model that does not refuse is only useful if its writing, reasoning and format discipline suit your task.
Keep an eye on prompt size, since input tokens are the part you control best. A system prompt of 1,500 tokens sent with every one of 10,000 requests adds 15M input tokens, which is $2.25 at the listed rate. Trimming it by a third saves $0.75 on that run. It is small money, but the habit scales.
