Unrestricted Search: Uncensored LLM API Quickstart Guide
This quickstart guide shows developers how to connect to the unrestricted ai api, send uncensored llm api requests, and handle responses with standard OpenAI-compatible SDKs.
Base URL and Authentication
To begin, you need an API key. Sign up on the Get API key page using Google or email and password; the key is shown immediately. No phone number or credit card is required for the initial trial. Your base URL is https://api.unrestrictedsearch.cc/v1. This works with any standard OpenAI-compatible client. You pass the key in the Authorization header as a Bearer token. The endpoint serves one uncensored large language model with the ID uncensored. It is an open-weight model tuned to answer without content refusals for lawful adult use. It is not GPT, Claude, Gemini, or any other vendor's model.
Sending Requests to /v1/chat/completions
The core endpoint is POST /v1/chat/completions. Text goes in, text comes out. You do not need to specify a model ID in every request if you configure your client to use uncensored by default. The model handles prompt and completion together within a 100,000 token context window. If you do not set max_tokens, the response can run to the end of the window. Errors and refusals are free, so you only pay for real token usage. Use the following example to send your first request.
curl https://api.unrestrictedsearch.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 OpenAI Python SDK is the fastest way to integrate. Set the base_url to our endpoint and provide your API key. The library handles serialization and retries automatically. You can adjust parameters like temperature and top_p to control randomness. The response object contains the generated text in response.choices[0].message.content. This approach works for both simple text generation and more complex conversational flows. It is the recommended method for most backend services.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedsearch.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 developers, the @anthropic-ai/sdk or openai Node packages work with minimal configuration. Pass the baseURL and apiKey options. The API supports standard streaming and non-streaming responses. You can pass an array of message objects to maintain conversation history. The response structure mirrors the OpenAI standard, making migration easy. This is ideal for serverless functions or web applications needing uncensored text completions.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedsearch.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 with SSE
You can enable streaming by setting stream: true. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text. The final chunk includes the full token usage statistics. This is useful for real-time user interfaces. Streaming does not affect pricing; you pay for the total tokens generated. The stream ends when the model completes the response or hits the token limit. Handle stream errors gracefully to ensure your application does not crash.
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)
Token Limits and Parameters
The context window is 100,000 tokens total. Output can run to the end of the window. You can use temperature, top_p, stop, seed, presence_penalty, and frequency_penalty. Function calling and JSON mode are supported. Rate limits are 300 requests per minute and 8 concurrent requests per key. A 401 error means an invalid key. A 402 error means no credit. A 429 error means you hit the rate limit. Credit is prepaid and never expires.
Specs at a glance
A quick checklist for developers: format, limits, features, billing.
| Feature | Support |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| API key | Bearer token in the Authorization header |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Base URL | https://api.unrestrictedsearch.cc/v1 |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Structured output | JSON object mode via response_format json_object |
| Streaming | Supported (stream: true), usage included at the end |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Max context | 100,000 tokens (prompt + completion together) |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Rate limit | 300/min per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Max body | 8 MB request body |
| Parallel requests | up to 8 in parallel per key |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| 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 |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Key management | one key per account, regenerate any time (the old one stops working) |
| Account | Google or e-mail and password |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
When a request fails
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| HTTP | Type | What to do |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | refused by the content policy |
404 | not_found | unknown endpoint |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
What is the uncensored ai api key?
It is a unique string generated when you sign up. It authenticates your requests to the API. You get one key per account; a new key replaces the old one.
Is this the uncensored ai models api for GPT-4?
No. We serve our own open-weight model tuned for uncensored responses. It is not GPT, Claude, or any other vendor's model. Check the vendor's documentation for their specific models.
How do I top up credit?
Pay by crypto (USDT on TRC20, USDC on Base). Amounts range from $20 to $500. PayPal is not accepted. Credit never expires.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.