Unrestricted Search API Documentation
Get your text API key and make your first request in under two minutes. This guide covers the exact endpoints, pricing, and limits you need to integrate our uncensored LLM into your application.
Authentication and Base URL
The Unrestricted Search API uses standard OpenAI-compatible authentication. You will receive a single API key upon signup, which you can generate via Google or email on the Get API key page. Store this key securely; it is the only credential required to access the service.
All requests must be sent to the base URL: https://api.unrestrictedsearch.top/v1. Ensure your client library or HTTP client is configured with this exact endpoint. The API key is passed in the Authorization header as a Bearer token. There is no need for complex OAuth flows or secondary credentials.
Your First Request
Send a standard chat completion request using the uncensored model ID. This model is tuned to answer without content refusals for lawful adult use, making it ideal for NSFW API workflows. The endpoint accepts POST requests with a JSON body containing the message history.
Below is a cURL example demonstrating a basic text generation request. Replace YOUR_API_KEY with the key shown after signup.
curl https://api.unrestrictedsearch.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."}]
}'The response returns the generated text in the choices[0].message.content field. Errors during processing do not consume credit, ensuring you only pay for successful outputs.
Python SDK Integration
Use the official OpenAI Python SDK to interact with the API. Configure the client with the base_url and api_key to route requests to our servers. The SDK handles serialization and response parsing automatically.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedsearch.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)This approach is recommended for backend services or scripts where you need reliable, synchronous communication. The SDK supports all standard parameters like temperature and top_p for controlling creativity.
Node.js SDK Integration
For JavaScript environments, the OpenAI Node.js SDK works identically to the Python version. Set the baseURL to our endpoint and provide your key. This is suitable for server-side rendering or API endpoints in Node.js applications.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedsearch.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);Remember that the model ID must be set to uncensored. The SDK returns a Promise that resolves to the completion object, allowing you to handle responses asynchronously in your event loop.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream, delivering tokens as they are generated. This reduces perceived latency for end-users in chat interfaces.
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)Note that token usage statistics (input/output counts) are included in the final chunk of the stream. This allows you to track costs accurately in real-time without waiting for the full response to complete.
Limits, Errors, and Context
The API enforces a rate limit of 300 requests per minute and allows 8 concurrent requests per key. The request body must not exceed 8 MB. The context window is 100,000 tokens total, with no separate output cap.
Common errors include 401 (invalid key), 402 (insufficient credit), and 429 (rate limit exceeded). Credit is charged per token usage; errors are free. The model refuses sexual content involving minors, which is the only hard content limit applied.
Technical reference
The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.
| Item | Value |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Authentication | Bearer token in the Authorization header |
| Base URL | https://api.unrestrictedsearch.top/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Max context | 100,000 tokens, input and output combined |
| Structured output | JSON object mode via response_format json_object |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | up to 8 in parallel per key |
| Rate limit | 300/min per key |
| Request size | up to 8 MB per request |
| 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 |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Credit expiry | no monthly fee; paid credit does not expire |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| 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 | uncensored for adults; the only hard rule: no sexual content involving minors |
| Account | Google or e-mail and password |
| Keys | one active key per account; a new key replaces the old one |
HTTP errors
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Code | Type | Meaning |
|---|---|---|
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 | balance is empty — top up, requests resume at once |
403 | content_blocked | sexual content involving minors — refused, not billed |
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
Does the API support image or audio generation?
No. This is a text-only API. It serves one uncensored large language model for text input and output. There are no embeddings, image, audio, or video generation endpoints available.
How do I top up my credit?
Top-ups are made by crypto (USDT on TRC20, USDC on Base). You can deposit any whole amount between $20 and $500.
Is the trial credit valid forever?
No. New users get $0.50 of trial credit, one per person, valid for 7 days. Claim this credit with one click on your API key page. Regular prepaid credit never expires, but the trial credit is a one-time offer per person with no card required.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.