EN ▾
Get API key

Switch your client in three lines

Drop your existing OpenAI client configuration into our uncensored endpoint to start generating text without corporate refusals. This quickstart guides you through the three lines needed to switch your base URL and authenticate.

Prerequisites and Base URL

To use this uncensored chat API, you need an API key and an OpenAI-compatible SDK. Sign up on our site to receive your key immediately—no phone verification is required. Our endpoint is fully compatible with standard OpenAI code, meaning you only need to change the base_url and provide your unique key. The model ID to request is uncensored. This is an open-weight model run on our own servers, distinct from GPT, Claude, or other vendor models. It is tuned to answer without filtering for lawful adult content, creative freedom, and security research. We do not offer embeddings, image generation, or fine-tuning. The base URL for all requests is https://api.openrouteruncensored.top/v1.

Authentication and First Request

Authentication is handled via the standard Authorization header. Pass your API key as a Bearer token. This openrouter uncensored endpoint accepts the same format as OpenAI. Below is a cURL example demonstrating a basic completion request. You must include the model field set to uncensored. The system will process your prompt and return text. If you lack credit, you will receive a 402 error. Errors during processing do not consume your prepaid tokens, ensuring you only pay for successful outputs.

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

Using the Python SDK is straightforward. Initialize the client with your key and point it to our base URL. The uncensored model handles text input and output efficiently. You can set parameters like temperature and top_p to control creativity. This approach is ideal for developers who want an openai compatible uncensored experience without rewriting their entire pipeline. The SDK handles JSON serialization automatically. You can also enable stream for real-time token generation. Remember that our model has a 100,000-token context window, allowing for substantial input data.

from openai import OpenAI

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

For JavaScript developers, the Node SDK works identically to the Python version. Configure the client with the baseURL and your API key. Send a completion request with the uncensored model. This is particularly useful for web applications or serverless functions requiring an uncensored chat api that fits into existing OpenAI-compatible workflows. You can define system prompts to guide the model's behavior. The client handles retries and timeouts according to your SDK settings. Ensure your environment variables store the key securely. This method provides a reliable way to integrate uncensored LLM capabilities into your Node.js projects without vendor lock-in.

import OpenAI from "openai";

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

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE). Each chunk contains partial text. The final chunk includes the token usage statistics for billing purposes. This is essential for user experiences that require immediate feedback. Streaming works with both Python and Node SDKs. The uncensored model responds quickly, making it suitable for interactive applications. Note that streaming does not change the pricing model; you are still charged based on total tokens processed. Errors during streaming are handled by the SDK, which will raise an exception if the connection drops or the request fails.

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

Our infrastructure enforces strict limits to ensure stability. You are allowed 300 requests per minute per key and 8 concurrent requests. The request body is limited to 8 MB. If you send an invalid key, you receive a 401 error. A 402 error indicates insufficient credit; top up by crypto (USDT on TRC20, USDC on Base) to continue. A 429 error means you have exceeded the rate limit. The context window is 100,000 tokens total, with no separate output cap per request. If you do not set max_tokens, the response can run to the end of the window. JSON mode and function calling are supported within these limits. Privacy is maintained; prompts are not used for training.

API facts in one table

Use this table to decide whether the API fits your project before you buy credit.

SpecValue
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
AuthenticationBearer token in the Authorization header
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.openrouteruncensored.top/v1
Model IDuncensored
SSE streamingYes — server-sent events; the last chunk carries token usage
Structured outputresponse_format: {"type": "json_object"}
Max context100,000 tokens, input and output combined
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Parallel requestsup to 8 in parallel per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max body8 MB request body
Requests per minute300 requests per minute per key
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Subscriptionno monthly fee; paid credit does not expire
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
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
Key managementone key per account, regenerate any time (the old one stops working)
Content policyuncensored for adults; the only hard rule: no sexual content involving minors
AccountGoogle or e-mail and password

HTTP errors

Every error is JSON with a type you can switch on. You are never charged for an error.

HTTPTypeWhat to do
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
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

How do I top up my credit?

You can top up by crypto (USDT on TRC20, USDC on Base). Payments range from $20 to $500. We offer a 5% bonus for deposits of $50 or more, and a 10% bonus for $100 or more. Credit never expires.

Is there a free trial?

Yes, new users get $0.50 of trial credit valid for 7 days, one per person. Claim this credit with one click on your API key page. No credit card is needed to sign up. You can get your API key immediately after creating your account via Google or email.

What content is blocked?

The model does not refuse lawful adult, fictional, or controversial topics. However, we enforce a hard limit on sexual content involving minors, which is always refused. All other content is processed without corporate-style filtering.

Your key is one form away

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

Get API key