EN ▾
Get API key

Uncensored API for developers

per 1M input tokens
$0.15
Output tokens / 1M
$0.50
token context
100,000
trial credit
$0.50
requests per minute
300
unrestrictedsearch.com

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.

ItemValue
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
EndpointsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.unrestrictedsearch.com/v1
Modeluncensored
AuthenticationBearer token in the Authorization header
JSON moderesponse_format: {"type": "json_object"}
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Context window100,000 tokens, input and output combined
StreamingYes — server-sent events; the last chunk carries token usage
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrencyup to 8 in parallel per key
Request size8 MB request body
Rate limit300/min per key
How you payprepaid credit, charged by real token usage; errors and refusals are free
Credit expiryno monthly fee; paid credit does not expire
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Token pricesinput $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 managementone active key per account; a new key replaces the old one
AccountGoogle or e-mail and password
Content policyuncensored 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.

CodeTypeMeaning
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditout of credit; add credit and retry
403content_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busymodel 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.

Get API key