Uncensored API Documentation
Start using the uncensored llm api in minutes with our OpenAI-compatible endpoints. This guide covers authentication, basic requests, and streaming for your integration.
https://api.uncensoredsearch.cc/v1uncensored
Base URL and Authentication
Interact with the uncensored api by pointing your client to https://api.uncensoredsearch.cc/v1. The service supports standard OpenAI SDKs, requiring only a base URL and API key configuration. Authentication uses the Authorization header with a Bearer token. Generate your key on the Get API Key page via Google or email; no phone number is needed. Each account holds one active key, replaced when you generate a new one.
First Request
Send a POST request to /v1/chat/completions with the model ID uncensored. The model accepts text input and returns text output. It is an open-weight model tuned for minimal refusals, distinct from GPT or Llama. Use the official SDKs or raw HTTP. Ensure you have prepaid credit in your account before sending requests.
curl https://api.uncensoredsearch.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
Use the standard OpenAI Python package to integrate the uncensored ai api. Set the base URL to our endpoint and provide your API key. The client handles serialization and retries automatically. This approach is ideal for backend services or scripts requiring straightforward text completion. The model ID remains uncensored for all calls.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredsearch.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
Integrate with Node.js using the openai package. Configure the client with our base URL and your API key. This setup allows you to include the uncensored api in web servers or Node applications. The SDK manages the request lifecycle, allowing you to focus on prompt logic. Remember that the underlying model is specific to our hosted service.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredsearch.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
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE), delivering tokens as they are generated. Token usage statistics appear in the final chunk. Streaming reduces perceived latency for large outputs. This feature works identically across all supported SDKs and raw HTTP clients.
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
Output has no separate cap, and if max_tokens is unspecified, the response can run to the end of the window. The context window is 100,000 tokens total. Limits include 300 requests per minute and 8 concurrent requests per key. If the API key is invalid, you receive a 401 error. If credit is insufficient, the request fails; if the rate limit is exceeded, you receive a 429 error. Request bodies must not exceed 8 MB.
Questions and answers
How do I pay for the uncensored api?
Credit is topped up by crypto, specifically USDT (TRC20) or USDC (Base). Payments range from $20 to $500, with bonus credit for larger amounts. PayPal is not accepted.
What is the context window size?
The context window is 100,000 tokens, counting both the prompt and the completion. There is no separate output cap.
Does the trial credit expire?
Yes, the $0.50 trial credit is valid for 7 days from account creation. Claim this credit with one click on your API key page. Regular prepaid credit never expires.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
API specifications
Use this table to decide whether the API fits your project before you buy credit.
| Item | Value |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Model | uncensored |
| Authentication | Bearer token in the Authorization header |
| Base URL | https://api.uncensoredsearch.cc/v1 |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Context window | 100,000 tokens (prompt + completion together) |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| JSON mode | JSON object mode via response_format json_object |
| SSE streaming | Supported (stream: true), usage included at the end |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max body | 8 MB request body |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | 8 requests at the same time per key |
| Rate limit | 300/min per key |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| Credit expiry | no monthly fee; paid credit does not expire |
| Trial credit | $0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Keys | one active key per account; a new key replaces the old one |
| Sign-in | sign in with Google or with e-mail + password |
When a request fails
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 | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | balance is empty — top up, requests resume at once |
403 | content_blocked | refused by the content policy |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |