EN ▾
Get API key

Unrestricted: Quickstart: Integrate the Uncensored LLM

Get started with the unrestricted API in minutes. This guide covers the base URL, authentication, and the specific endpoints needed for raw text generation without content filters.

Base URL and Authentication

To begin using the unrestricted llm, you need an API key from your dashboard. The base URL for all requests is https://api.unrestricted.cc/v1. This URL is compatible with the official OpenAI SDKs and any client that supports OpenAI-compatible endpoints. Simply set the base_url variable in your client configuration to this value and provide your key in the Authorization header as a Bearer token. The API serves a single model identified as uncensored, which is an open-weight model tuned to answer without standard content refusals for lawful adult use.

First Request

A basic request sends a prompt to the chat completions endpoint. The model returns text directly, avoiding the refusal filters common in consumer wrappers. This makes it an ideal uncensored coding llm for generating code snippets or technical explanations without unnecessary conversational padding. Send a POST request to /v1/chat/completions with your system and user messages. The response will contain the generated text in the choices array.

curl https://api.unrestricted.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

Using the official Python SDK simplifies integration. You only need to point the client to our base URL. This approach works for both simple text generation and more complex prompt structures. The SDK handles JSON serialization automatically, so you can focus on your application logic. Remember that the model ID is always uncensored for this service. This uncensored llm online endpoint is designed for developers who need reliable, programmatic access to unfiltered text outputs.

from openai import OpenAI

client = OpenAI(base_url="https://api.unrestricted.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

For JavaScript and TypeScript environments, the OpenAI Node SDK works with minimal configuration. Initialize the client with your API key and the correct base URL. You can then call the chat completions method just like you would with other OpenAI-compatible services. This flexibility allows you to drop the API into existing codebases without rewriting your HTTP client logic. The response structure matches the standard OpenAI format, ensuring easy parsing of the generated content.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.unrestricted.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

You can enable streaming by setting stream: true in your request. The API returns data as Server-Sent Events (SSE), allowing you to process tokens as they are generated. This is useful for real-time applications or when you want to display progress to the user. The final chunk of the stream contains the token usage statistics. Streaming reduces perceived latency by delivering content incrementally rather than waiting for the full response to complete.

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 supports 100,000 tokens total, with no separate output cap. If you do not specify max_tokens, the response can run to the end of the window. Rate limits are set to 300 requests per minute and 8 concurrent requests per key. Common errors include 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. Errors do not consume your prepaid credit. The request body is limited to 8 MB. These limits ensure stable performance for high-volume API usage.

Technical specifications

Everything the endpoint can and cannot do, in one place — check it before you top up.

SpecValue
CompatibilityOpenAI Chat Completions schema; official openai SDKs work unchanged
MethodsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
Base URLhttps://api.unrestricted.cc/v1
API keyAuthorization: Bearer YOUR_KEY
Structured outputJSON object mode via response_format json_object
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
SSE streamingSupported (stream: true), usage included at the end
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Max context100,000 tokens (prompt + completion together)
Requests per minute300/min per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max bodyup to 8 MB per request
Concurrencyup to 8 in parallel per key
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Billingprepaid credit, charged by real token usage; errors and refusals are free
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Trial credit$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
Subscriptionno monthly fee; paid credit does not expire
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Contentadult content allowed; sexual content involving minors is refused
Keysone active key per account; a new key replaces the old one
Sign-inGoogle or e-mail and password

When a request fails

Errors come back as JSON with a stable type; failed and refused requests are not billed.

HTTPTypeWhat to do
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedrefused by the content policy
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busymodel busy — retry in a few seconds

Questions and answers

Is this the same as the standard OpenAI API?

It uses the same JSON structure and SDK compatibility, but serves a different model. The model is uncensored and does not apply standard content refusals, making it suitable for unrestricted use cases.

How do I handle errors in my code?

Check the HTTP status code. A 401 error means your API key is invalid. A 402 error indicates you need to top up your credit. A 429 error means you have exceeded the rate limit. Errors do not charge your balance.

Can I use this for coding tasks?

Yes. The model is effective as an uncensored coding llm, generating code and technical explanations without filtering based on common content policies. It supports function calling and JSON mode for structured output.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.