How to Use the Unrestricted AI API
An unrestricted AI API provides a text-completion endpoint that generates responses without content filters, making it ideal for adult, creative, or research use cases where standard models might refuse prompts. This guide explains how to integrate an uncensored LLM API using OpenAI-compatible standards, manage token costs, and handle streaming data effectively.

Updated
What Is an Unrestricted AI API?
Standard large language models often apply content filters that refuse prompts based on specific keywords or topics, even when those topics are lawful. An unrestricted AI API removes these guardrails, allowing the model to generate text based purely on the input provided. This is particularly useful for creative writing, roleplay, or technical tasks where the model might otherwise trigger a refusal for no technical reason.
Our service offers a hosted, OpenAI-compatible endpoint that serves a single uncensored model. It is not a general-purpose platform with multiple model choices or routing algorithms. Instead, it is a focused tool for text generation that prioritizes raw utility. The model is open-weight and tuned to answer without content refusals for lawful adult use cases. It does not use your prompts for training, and it maintains a hard limit against sexual content involving minors.
- Text-Only: No image, audio, or video generation.
- Single Model: One uncensored model, optimized for consistency.
- OpenAI Compatible: Uses standard endpoints for easy integration.
Why Choose Uncensored for Text Generation
Developers often encounter situations where a standard model refuses a prompt due to sensitive keywords, even if the context is benign. An uncensored LLM API eliminates this friction. By removing content filters, you gain full control over the output. This is valuable for applications that require unfiltered creative writing, data extraction from diverse sources, or testing model behavior under edge cases.
Unlike generic platforms that bundle embeddings, image generation, and fine-tuning, this API focuses strictly on text completion. The model runs on dedicated servers and is tuned to avoid unnecessary refusals. However, it is not a magic bullet. You still need to manage context windows and token limits. The API supports a 100,000-token context window, with no separate output cap per request. If you need complex reasoning or multi-modal capabilities, this may not be the right tool. But for direct text generation, it provides a reliable, filter-free experience.
The model is not GPT, Claude, or Gemini. It is a distinct open-weight model designed for this specific use case. This means you get consistent behavior without the variability of model routing or vendor updates affecting your output unexpectedly.
Setting Up Your Unrestricted AI API Key
Getting started is straightforward. You can sign up using Continue with Google or by creating an account with an email and password. No phone number is required. Once registered, your API key is displayed immediately on the dashboard. This key is used to authenticate your requests to the API endpoint.
You can have only one active key per account. If you generate a new key, the old one is invalidated. This simplifies security management. You do not need to enter credit card details to get your key. For new accounts, you receive $0.50 in trial credit valid for 7 days. This allows you to test the API without any financial commitment. Claim this credit with one click on your API key page.
To use the API, you will need the base URL: https://api.unrestrictedsearch.cc/v1. You will send this base URL along with your API key in the authorization header. The model ID you use is simply uncensored. This setup works with any OpenAI-compatible client, making it easy to integrate into existing workflows.
Integration with OpenAI SDKs
Since the API is OpenAI-compatible, you can use the official OpenAI SDKs for Python, Node.js, and other languages. You only need to change the base_url and the api_key in your configuration. The rest of the code remains the same. This includes parameters like temperature, top_p, stop, seed, and penalties.
The API supports standard endpoints such as POST /v1/chat/completions and GET /v1/models. There are no embeddings or fine-tuning endpoints. If you are using a library that expects OpenAI endpoints, it will work out of the box. You can also use cURL for quick tests.
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."}]
}'This compatibility ensures that you can use existing documentation and tools. However, remember that the model ID is uncensored, not gpt-4 or gpt-3.5-turbo. You must specify this ID in your requests. The API does not route between multiple models; it serves the single uncensored model.
Understanding Token Costs and Limits
Pricing is transparent and prepaid. You pay $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free, meaning you only pay for successful responses. There are no monthly subscriptions or hidden fees. Your prepaid credit never expires, so you can top up when convenient.
There are rate limits to ensure fair usage. You can make 300 requests per minute per key, with a maximum of 8 concurrent requests. The request body limit is 8 MB. These limits are strict but sufficient for most development and production use cases. If you exceed the rate limit, you will receive an error response.
To monitor your usage, you can check the token count in the API response. The API returns the number of tokens used in the last chunk of a streaming response. This helps you track costs in real-time. You can also view your balance and usage history on the dashboard.
Crypto Payments and Bonus Credits
Top-ups are processed by crypto (USDT (TRC20) or USDC (Base)). You can top up any whole amount from $20 to $500. This keeps the process simple and global.
We offer bonus credits for larger top-ups. If you top up $50 or more, you receive a +5% bonus. For $100 or more, you get a +10% bonus. This bonus is added to your prepaid credit immediately. Credit does not expire, so you can accumulate a balance over time.
Refunds are not issued for standard usage; credit is non-refundable. However, if you experience a double charge or a technical error, you can request a fix through the Support page. This ensures that you are not penalized for system issues.
Handling Streaming and Function Calls
The API supports streaming responses via Server-Sent Events (SSE). This allows you to receive tokens as they are generated, reducing perceived latency. The token usage is included in the last chunk of the stream. This is useful for applications that display text in real-time, such as chat interfaces.
Function calling is also supported. You can define tools and specify tool_choice to guide the model’s behavior. The API supports JSON mode (response_format: json_object), which ensures the output is valid JSON. This is ideal for structured data extraction or API integrations.
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)Parameters like temperature and top_p allow you to control the randomness and diversity of the output. You can also set seed for reproducible results. These features make the API versatile for various use cases, from creative writing to technical automation.
Privacy and Data Usage
Privacy is a key consideration. Your account only requires an email address; no phone number is needed. Prompts sent to the API are not used for training the model. This means your data remains yours. The API does not retain your prompts indefinitely for model improvement.
The model has a hard content limit: it will refuse requests containing sexual content involving minors. This is the only strict content filter applied. All other lawful adult, fictional, or controversial topics are allowed. This ensures that the API is usable for a wide range of applications without unexpected refusals.
Data is processed securely, and the API does not share your prompts with third parties. The focus is on providing a reliable, uncensored text completion service. You can use the API with confidence, knowing that your data is not being used to train other models or sold to advertisers.
Getting Started with Your Trial
Start by creating an account. You can sign up with Google or email. Your API key is generated immediately. You receive $0.50 in trial credit, valid for 7 days. This is enough to test the API with several requests. Claim this credit with one click on your API key page. No credit card is required.
Use the base URL https://api.unrestrictedsearch.cc/v1 and the model ID uncensored. You can test the API with a simple cURL command or by integrating it into your application. The trial credit allows you to explore features like streaming, function calling, and JSON mode without cost.
If you find the API useful, you can top up by crypto (USDT on TRC20, USDC on Base). The process is simple: select your currency, enter the amount, and send the payment. Your credit is updated automatically. The trial is a great way to experience the uncensored model before committing to a paid plan.
More guides
Questions and answers
Is the uncensored model the same as GPT-4 or Claude?
No, it is a distinct open-weight model run on our servers. It is not GPT, Claude, Gemini, Grok, DeepSeek, Qwen, or Llama. It is tuned specifically to answer without content refusals for lawful adult use.
Do I need a credit card to get an API key?
No. You can sign up with Google or email. New accounts receive $0.50 in trial credit valid for 7 days. Claim this credit with one click on your API key page. No credit card is required to start.
What happens if I get a refund or double charge?
Credit is generally non-refundable and does not expire. However, if you experience a double charge or technical error, you can request a fix through the Support page.
Can I use this API for image or audio generation?
No. The API is strictly for text completion. It does not support embeddings, image, audio, or video generation, or fine-tuning. It serves only the uncensored text model.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.