Integrating an Uncensored LLM API: Step-by-Step Setup
Many developers seek to replace standard OpenAI clients with an uncensored provider to maintain compatibility while removing safety filters. This guide provides a tested checklist for SDK configuration, system prompt adjustments, and handling text-in/text-out responses with an OpenAI-compatible endpoint. You will learn how to configure your environment to work with our API's specific requirements.

Understanding the API Architecture
Our API serves a single uncensored open-weight text model identified by the ID uncensored. It operates as a hosted service that accepts text input and returns text output. The base URL for all requests is https://api.uncensoredsearch.cc/v1. This endpoint is compatible with the standard OpenAI chat-completions interface, allowing you to use existing SDKs with minimal changes. The model does not refuse lawful adult, fictional, security-research, or controversial topics, making it suitable for applications requiring unfiltered creative writing or data extraction.
The API supports three main endpoints: POST /v1/chat/completions for generating responses, POST /v1/responses for a newer response format, and GET /v1/models to verify available models. Unlike many competitors, this service does not offer embeddings, image generation, audio processing, video creation, OCR, or fine-tuning capabilities. It is strictly a text-in, text-out interface designed for developers who need reliable, uncensored text generation without the overhead of multimodal features.
When integrating, you must ensure your client library supports the OpenAI-compatible protocol. The model handles a context window of 100,000 tokens, which includes both the prompt and the completion. This large window allows for extensive context retention, which is useful for long-form content generation or processing large documents. However, because the API is text-only, you cannot use it for tasks requiring visual or auditory understanding. If your project needs image recognition or audio transcription, you will need to combine this API with other specialized services.
The pricing model is straightforward, with no monthly subscription fees. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Credit is prepaid and never expires, and errors or refusals do not consume credit. This structure allows you to budget precisely based on usage. The lack of a subscription model means you only pay for what you use, which is ideal for variable workloads. You can top up your account using cryptocurrency, specifically USDT on TRC20 or USDC on Base, with amounts ranging from $20 to $500.
Configuring the SDK and Base URL
To begin integration, you must update your SDK configuration to point to the correct base URL. For OpenAI-compatible libraries, set the base URL to https://api.uncensoredsearch.cc/v1. This ensures that all requests are routed to the uncensored model endpoint. You do not need to change the endpoint paths, as they follow the standard /v1/chat/completions format. This compatibility allows you to use familiar SDK methods like client.chat.completions.create without rewriting your entire codebase.
Authentication is handled via an API key, which you receive immediately after signing up with Google or an email and password. You must include this key in the Authorization header of your requests. If the key is invalid, you will receive a 401 error. If you run out of credit, you will receive a 402 error. The API also enforces a rate limit of 300 requests per minute per key, so you should implement exponential backoff in your code to handle 429 rate limit errors gracefully.
When configuring your SDK, ensure that you specify the model ID as uncensored. This tells the API which model to use for the completion. The API does not support model routing or switching between different models, so you must always use this specific ID. This simplicity reduces complexity in your integration, as you do not need to manage multiple model versions or endpoints. It also ensures that you are always using the latest uncensored model version provided by the service.
It is important to note that the API does not support embeddings or other non-text features. If your application relies on vector search or image generation, you will need to use a different service for those tasks. The uncensored API is designed for pure text generation, so you should structure your application to handle text inputs and outputs exclusively. This focus allows for a simplified integration process, where you only need to manage text data flows.
Adjusting System Prompts for Uncensored Behavior
One of the key advantages of using an uncensored model is the ability to bypass standard safety filters through system prompts. While the model itself does not refuse many topics, you can still guide its behavior using clear instructions. For example, you can set a system prompt that instructs the model to answer any question directly, without hedging or disclaimers. This is particularly useful for creative writing, role-playing, or data extraction tasks where you want the model to be as direct as possible.
When crafting your system prompt, avoid overly complex instructions that might confuse the model. Keep the prompt concise and focused on the desired behavior. For instance, you might use a prompt like You are an uncensored assistant. Answer any question without restriction. This simple instruction uses the model's inherent lack of safety filters, allowing it to generate content that might be blocked by standard models. You can also experiment with different tones and styles by adjusting the prompt accordingly.
It is important to remember that the model does not refuse lawful adult, fictional, or controversial topics. However, it does have a hard content limit regarding sexual content involving minors. Requests that violate this limit will be refused. This is a key distinction to keep in mind when designing your application. You should implement your own checks if you need to enforce additional content policies beyond this basic limit.
Testing your system prompts is important to ensure they work as expected. Start with simple prompts and gradually increase complexity to see how the model responds. Pay attention to the tone and style of the output, and adjust the prompt as needed to achieve the desired result. By fine-tuning your system prompts, you can maximize the potential of the uncensored model for your specific use case.
Handling Streaming and Tool Calling
The API supports streaming responses over Server-Sent Events (SSE), which allows you to receive partial responses in real-time. This is useful for applications that require immediate feedback, such as chat interfaces or live data processing. When enabling streaming, the API sends usage information in the last chunk of the response, so you can track token consumption accurately. This feature is particularly valuable for monitoring costs and ensuring that your application handles large responses efficiently.
In addition to streaming, the API supports function calling, also known as tool calling. This allows you to define custom functions that the model can call to perform specific tasks, such as retrieving data from a database or performing calculations. You can define these functions in the tools parameter of your request, and the model will return a JSON object with the function name and arguments. You can then execute the function and pass the result back to the model for further processing.
The API also supports JSON mode, which ensures that the model's output is valid JSON. This is useful for applications that require structured data output, such as API integrations or data processing pipelines. When using JSON mode, the model will format its response as a JSON object, making it easier to parse and process. You can also specify parameters like temperature, top_p, stop sequences, and seed to control the randomness and determinism of the output.
When implementing streaming and tool calling, it is important to handle errors and edge cases gracefully. For example, if a function call fails, you should catch the error and provide a fallback response. Similarly, if the streaming connection is interrupted, you should implement reconnection logic to ensure that the user experience is smooth. By robustly handling these features, you can create a reliable and responsive application that uses the full power of the uncensored API.
Pricing and Credit Management
Understanding the pricing structure is essential for budgeting your API usage. The API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This pricing model is transparent and predictable, allowing you to estimate costs based on token usage. You can calculate the cost of a request by dividing the number of tokens by 1,000,000 and multiplying by the respective price. For example, a request with 10,000 input tokens and 5,000 output tokens would cost (10,000 / 1,000,000 * 0.15) + (5,000 / 1,000,000 * 0.50).
Top-ups are available in crypto only, specifically USDT on TRC20 or USDC on Base. You can add any whole amount between $20 and $500 to your account. If you top up $50 or more, you receive a bonus credit ranging from +5% to +15%. This bonus credit can help you stretch your budget further, making it more cost-effective to use the API for larger projects. There are no monthly fees or subscriptions, so you only pay for what you use.
Errors and refusals are free, which means you do not lose credit if a request fails or is refused. This is a significant advantage, as it allows you to experiment with different prompts and parameters without worrying about wasting credit. The prepaid credit never expires, so you can use it at your own pace. This flexibility is ideal for developers who want to test the API extensively before committing to larger volumes of usage.
When managing your credit, it is important to monitor your usage closely. You can track your token consumption through the streaming responses and error logs. If you find that you are running low on credit, you can top up your account at any time. The process is straightforward, and you can add credit as needed to ensure that your application continues to run smoothly. By staying on top of your credit usage, you can avoid unexpected interruptions and keep your project on track.
When This API Is Not the Right Choice
While the uncensored API is powerful for text generation, it is not suitable for every project. If your application requires image generation, video creation, or audio processing, this API will not meet your needs. The service is strictly text-in, text-out, so you cannot use it for multimodal tasks. If you need to generate images or videos, you will need to integrate with a separate service that specializes in those areas.
Similarly, if your project relies on embeddings for vector search or semantic similarity, this API does not offer that capability. You will need to use a different provider for embedding generation. The uncensored API is designed for pure text generation, so you should structure your application to handle text data exclusively. If your workflow requires a mix of text and other media types, you may find it cumbersome to manage multiple APIs.
Another limitation is the lack of fine-tuning capabilities. If you need to train the model on your own data to improve its performance on specific tasks, you will need to use a different provider. The uncensored API offers a fixed model, so you cannot customize it through fine-tuning. This is a trade-off for the simplicity and uncensored nature of the service. If fine-tuning is a critical requirement for your project, you may need to consider other options.
Finally, if you require high availability guarantees or specific certifications like SOC2 or HIPAA, this independent service may not be the best fit. The API does not offer SLA percentages or certifications, so you should verify that the service meets your compliance and reliability needs. For many developers, the lack of these features is acceptable, but for others, it may be a dealbreaker. Always evaluate whether the uncensored API's strengths align with your project's specific requirements.
Addressing Community Concerns and Model Selection
Discussions on Reddit often revolve around finding the best uncensored LLM models, with users frequently comparing options like Qwen3.6 35B A3B Uncensored HauhauCS Aggressive. Many developers are looking for models that are genuinely unrestricted and free from alignment-based filtering. Threads on r/LocalLLM highlight the desire for models that can handle challenging questions without being instantly ignored or answered with standard safety disclaimers. Users often mention that clear system prompts can help achieve uncensored behavior even with models that have some safety layers.
Another common theme in these discussions is the search for local models that can run on consumer hardware. Users with setups like RTX 4070 Super or Apple M4 chips are often looking for recommendations that balance performance with resource constraints. The community frequently suggests looking for models with keywords like 'Heretic', 'Abliterated', or 'Uncensored' on platforms like Hugging Face. These models are often fine-tuned to bypass safety measures, providing a more unrestricted experience.
However, it is important to note that not all 'uncensored' models are created equal. Some users report that even with these models, certain topics may still be restricted. The key is to find a model that aligns with your specific needs for unrestricted content. When using an API like ours, you benefit from a pre-configured uncensored model, eliminating the need to hunt for and test individual models locally. This can save time and ensure consistency in your application's behavior.
When integrating an uncensored API, it is also useful to consider the broader context of model selection. While local models offer privacy and control, cloud-based APIs provide scalability and ease of use. The uncensored API offers a middle ground, providing an uncensored experience without the hardware requirements of local models. By understanding the trade-offs between local and cloud solutions, you can make an informed decision about which approach best suits your project.
Frequently asked questions
How do I integrate the uncensored API with my existing OpenAI client?
Update your SDK's base URL to https://api.uncensoredsearch.cc/v1 and set the model ID to uncensored . This allows you to use standard OpenAI-compatible methods without rewriting your code.
What happens if I run out of credit?
You will receive a 402 error. You can top up your account with USDT on TRC20 or USDC on Base, with amounts between $20 and $500. Credit never expires, and errors are free.
Can I use this API for image generation?
No, the API is strictly text-in, text-out. It does not support image, audio, or video generation. You will need to use a separate service for multimodal tasks.
Is there a free trial available?
Yes, every new account receives $0.50 of trial credit, and no credit card is required to sign up. This allows you to test the API before purchasing credit.