Switch your client in three lines
Drop our uncensored API into any OpenAI-compatible client with three lines of config. No model routing, no subscriptions, just text generation.
Base URL and Authentication
Configure your client to point at https://api.openrouternsfw.top/v1. Use the model ID uncensored for every request. Authenticate by passing your API key in the Authorization header as a Bearer token. This key is generated immediately after signup via Google or email.
curl https://api.openrouternsfw.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."}]
}'We do not provide embeddings, audio, or image endpoints. If your application requires those, this API is not the right fit. We focus strictly on text generation with an open-weight model tuned for minimal content refusals.
First Request
Send a standard chat completion request. The endpoint accepts messages in the OpenAI format. Our model responds with text generated without typical content filters for lawful adult or creative use.
from openai import OpenAI
client = OpenAI(base_url="https://api.openrouternsfw.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)The response includes standard usage fields. Errors are handled via standard HTTP codes. A 401 indicates an invalid or missing key. A 402 indicates insufficient prepaid credit. We do not offer a free tier, but new accounts receive trial credit.
Streaming Responses
Enable streaming by setting stream: true. The API returns a Server-Sent Events (SSE) stream. Token usage statistics are included only in the final chunk of the stream.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.openrouternsfw.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);This approach reduces perceived latency for long outputs. Ensure your client handles partial responses correctly. We do not support server-side rendering of the full response; the client manages the buffer.
Function Calling and JSON Mode
Use tools and tool_choice for structured data extraction. Enable strict JSON output by setting response_format: {"type": "json_object"}. This ensures the model returns valid JSON without markdown wrappers.
Parameters like temperature, top_p, and seed are fully supported. Adjust presence_penalty and frequency_penalty to control repetition. We do not offer fine-tuning or custom model training.
Token Limits and Rates
The context window is 100,000 tokens total. There is no separate output cap (if max_tokens is unset, the response can run to the end of the window). Request body size is limited to 8 MB.
Rate limits are 300 requests per minute and 8 concurrent requests per key. One key is active per account; a new key replaces the old one. Errors and refusals do not consume credit. Only successful token generation is billed.
Example Request
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)This example demonstrates a streaming request for a creative writing task. The client processes chunks as they arrive. Payment is calculated based on the actual tokens generated in the output. Input tokens are billed at $0.15 per million; output tokens at $0.50 per million. Prepaid credit is charged in real-time.
API facts in one table
Everything the endpoint can and cannot do, in one place — check it before you top up.
| Feature | Support |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.openrouternsfw.top/v1 |
| Model ID | uncensored |
| API key | Authorization: Bearer YOUR_KEY |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| JSON mode | response_format: {"type": "json_object"} |
| Max context | 100,000 tokens, input and output combined |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Streaming | Supported (stream: true), usage included at the end |
| Requests per minute | 300/min per key |
| Request size | 8 MB request body |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | up to 8 in parallel per key |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Subscription | paid credit never expires, no subscription |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| 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 |
| Sign-in | sign in with Google or with e-mail + password |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Key management | one active key per account; a new key replaces the old one |
Error reference
Every error is JSON with a type you can switch on. You are never charged for an error.
| HTTP | Type | What to do |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
How do I top up my credit?
Top-ups are crypto-only via USDT (TRC20) or USDC (Base). Amounts range from $20 to $500. Credits never expire. No cards or PayPal are accepted.
Is this an official OpenAI model?
No. We run an open-weight model on our own servers. It is compatible with the OpenAI API format but is not GPT-4 or any other vendor model. It is tuned for uncensored responses.
What happens if I hit the rate limit?
Requests return a 429 status code. Limits are 300 requests per minute and 8 concurrent connections per key. You can generate a new key to reset the limit, replacing the previous one.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.