Unrestricted Search: API Documentation
Get started with the unrestricted api in minutes. This guide covers authentication, basic text generation, and streaming responses using standard OpenAI-compatible SDKs.
Base URL and Authentication
To use the uncensored ai api, point your client to the base URL https://api.unrestrictedsearch.com/v1. Authentication uses a single API key sent via the Authorization header. Create your key on the Get API key page using Google or email. The key is displayed immediately and never shown again; store it securely.
Unlike services that allow multiple keys per account, this service issues one active key per account. Generating a new key invalidates the previous one. This simplifies rotation but means you must update your configuration whenever you regenerate credentials. No phone number is required for signup.
First Request
Send a standard chat-completions request to test connectivity and quality. The model ID is uncensored. This endpoint accepts text input and returns text output without content filters for lawful adult use. The model is an open-weight variant tuned for high compliance, distinct from GPT, Claude, or Gemini.
curl https://api.unrestrictedsearch.com/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."}]
}'If the response returns a text completion, your integration is working. Ensure your key has sufficient prepaid credit. Errors like insufficient funds or invalid keys return standard HTTP error codes.
Python SDK Integration
Use the official OpenAI Python library. Set the base URL and API key in your client configuration. This approach works with any library that follows the OpenAI chat-completions schema. You can adjust parameters like temperature or top_p to control creativity.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedsearch.com/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 SDK handles serialization automatically. You do not need to manage JSON formatting manually. This uncensored llm api responds to standard parameters, making migration from other providers straightforward for existing codebases.
Node.js SDK Integration
Initialize the OpenAI Node client with the custom base URL. This allows you to use familiar methods like chat.completions.create(). Pass the model ID uncensored in the request body. You can stream responses or receive the full text at once.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedsearch.com/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);Node.js developers benefit from the asynchronous nature of the SDK. Monitor the response for errors to handle network issues gracefully. The uncensored ai api supports standard streaming protocols, ensuring low latency for long outputs.
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 token usage statistics for billing.
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)Streaming reduces perceived latency for users. It is ideal for chat interfaces. Note that the model does not refuse lawful adult or controversial topics, so streaming works seamlessly with unfiltered content. Handle partial tokens carefully to avoid displaying incomplete words.
Limits, Errors, and Context
Your account is limited to 300 requests per minute and 8 concurrent requests. The request body must not exceed 8 MB. 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.
Common errors include 401 (invalid key), 402 (insufficient credit), and 429 (rate limit). Credit never expires, so you can top up by crypto (USDT on TRC20, USDC on Base) at any time. Sexual content involving minors is always blocked. Errors do not consume credit.
Capabilities and limits
If your tool speaks the OpenAI API, these are the details that matter.
| Item | Value |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.unrestrictedsearch.com/v1 |
| Model | uncensored |
| Authentication | Bearer token in the Authorization header |
| JSON mode | response_format: {"type": "json_object"} |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Context window | 100,000 tokens, input and output combined |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | up to 8 in parallel per key |
| Request size | 8 MB request body |
| Rate limit | 300/min per key |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Credit expiry | no monthly fee; paid credit does not expire |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| 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 |
| Key management | one active key per account; a new key replaces the old one |
| Account | Google or e-mail and password |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
HTTP errors
Every error is JSON with a type you can switch on. You are never charged for an error.
| Code | Type | Meaning |
|---|---|---|
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 | request body larger than 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
Does this API support function calling?
Yes. The API supports tools, tool_choice, and JSON mode. You can define functions in the request and the model will return structured arguments. This works with standard OpenAI-compatible clients.
How do I top up my credit?
Payments are by crypto (USDT on TRC20, USDC on Base). Minimum top-up is $20. You receive a 5% bonus for $50+ and 10% for $100+. PayPal is not accepted.
Is there a free tier?
New accounts receive $0.50 of trial credit valid for 7 days. Claim this credit with one click on your API key page. No card is needed. After the trial, you must top up by crypto (USDT on TRC20, USDC on Base) to continue using the API.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.