EN ▾

Uncensored LLM API for NSFW Applications

Get API key

Integrating Uncensored Text APIs: A Developer Checklist

Engineers often seek reliable ways to integrate uncensored language models into their applications. This guide provides a tested checklist for SDK configuration, prompt formatting, and handling text-only responses using our hosted service.

Developer desk with laptop and code, representing API integration

Understanding the API Endpoint Structure

When integrating an uncensored LLM API, the first step is understanding the endpoint structure. Our service provides a hosted, OpenAI-compatible chat-completions API. The base URL for our API is https://api.unfilteredchatbot.cc/v1. This URL is the foundation for all your API calls. You will interact with endpoints such as POST /v1/chat/completions for generating text and GET /v1/models for listing available models.

The API serves one uncensored open-weight text model. To use this model, you must specify the model ID as "uncensored" in your requests. The API is text-in, text-out, meaning it processes text input and returns text output. It does not support embeddings, image generation, audio, video, OCR, fine-tuning, or model routing. Keeping this scope in mind helps you design your application architecture correctly.

Understanding the endpoint structure is important for smooth integration. You need to ensure that your SDK is configured to send requests to the correct base URL. This ensures that your requests are routed to our uncensored model. The simplicity of the endpoint structure allows for easy integration into various programming languages and frameworks.

By focusing on the text-only capabilities, you can optimize your application for performance. The API is designed to handle text generation efficiently. This makes it suitable for applications that require continuous text output, such as chatbots or content generation tools. Always verify the endpoint URLs in your code to avoid any routing issues.

Configuring the SDK for Uncensored Responses

Configuring the SDK is the next critical step in the integration process. Our API supports standard parameters such as temperature, top_p, stop sequences, seed, and penalties. These parameters allow you to fine-tune the model's responses. For example, you can adjust the temperature to control the randomness of the output. A higher temperature results in more creative and varied responses.

The API also supports function calling, which enables your application to interact with external tools. This feature is useful for building agents that can perform actions based on the model's output. You can define tools in your SDK configuration and pass them to the API. The model will then decide when to call these tools based on the context of the conversation.

JSON mode is another important feature to consider. This mode ensures that the model's output is valid JSON, which is essential for parsing responses in your application. You can enable JSON mode in your SDK configuration to enforce this format. This reduces the need for additional parsing logic in your code.

Streaming over Server-Sent Events (SSE) is supported for real-time responses. This allows you to receive tokens as they are generated, providing a smoother user experience. You can configure your SDK to handle streaming responses, which is particularly useful for chat interfaces. The usage information is included in the last chunk of the stream, helping you track token consumption.

Crafting Effective Prompts for Uncensored Models

Crafting effective prompts is essential for getting the desired output from an uncensored LLM. The model does not refuse lawful adult, fictional, security-research, or controversial topics. This means you can design prompts that explore these areas without the model shutting down the conversation. However, there is a hard content limit: the model will refuse requests involving sexual content with minors.

To get the best results, your prompts should be clear and specific. Avoid ambiguous language that might confuse the model. Since the model is uncensored, you can be more direct in your requests. This can lead to more nuanced and detailed responses. Experiment with different prompt structures to see what works best for your use case.

System prompts can also be used to guide the model's behavior. You can set a system prompt that defines the role of the model, such as an uncensored assistant. This helps the model understand the context of the conversation. For example, you might set a system prompt that instructs the model to respond to any topic without restriction.

Testing your prompts is an ongoing process. Try different variations and observe the model's responses. This helps you refine your prompts for better accuracy and relevance. The uncensored nature of the model allows for more experimental prompt engineering, giving you more flexibility in how you interact with the API.

Handling Text-Only Responses and Errors

Handling text-only responses is straightforward with our API. The API returns text output, which you can process in your application. Since the API does not support images, audio, or video, you need to ensure that your application is designed to handle text exclusively. This simplifies the frontend development process, as you do not need to manage multimedia content.

Error handling is also an important aspect of integration. The API returns specific error codes for different scenarios. A 401 error indicates an invalid key, while a 402 error means you have no credit. A 429 error indicates that you have exceeded the rate limit of 300 requests per minute per key. Handling these errors gracefully ensures a smooth user experience.

Errors and refusals are free, which means you are not charged for failed requests. This is beneficial for testing and debugging. You can make multiple requests to test your integration without worrying about costs. However, you should still monitor your usage to avoid unexpected charges when you run out of credit.

When integrating the API, make sure to implement retry logic for transient errors. This helps in maintaining the reliability of your application. By handling errors effectively, you can provide a reliable experience for your users. The simplicity of the text-only response format makes it easier to integrate into various applications.

Managing Credits and Pricing

Understanding the pricing structure is important for managing your API usage. Our API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Credits are prepaid and charged based on real token usage. The credit never expires, and there is no monthly fee or subscription required. This pay-as-you-go model allows you to scale your usage based on your needs.

Top-ups are accepted in crypto only. You can use USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. If you top up $50 or more, you receive bonus credit ranging from 5% to 15%. This bonus credit provides additional value for your usage. Note that cards, PayPal, and bank transfers are not accepted.

New accounts receive $0.50 of trial credit, which allows you to test the API without any initial investment. This trial credit is a great way to evaluate the API's capabilities before committing to a larger top-up. You can use this credit to make requests and see how the model performs with your specific use case.

Monitoring your token usage is important to avoid running out of credit. The API provides usage information in the last chunk of the streaming response. You can use this information to track your consumption and plan your top-ups accordingly. By managing your credits effectively, you can ensure continuous access to the uncensored model.

When This API Is NOT the Right Choice

While our API is powerful for text generation, it may not be the right choice for all applications. If your application requires image generation, audio processing, or video creation, this API will not suffice. The API is strictly text-in, text-out, so you will need to integrate other services for multimedia capabilities.

Similarly, if you need embeddings for semantic search or vector databases, this API does not support embeddings. You would need to use a separate embedding service. The same applies if you require OCR for text extraction from images or fine-tuning for custom model training.

Applications that rely on model routing to switch between different models for optimal performance will also find this API limiting. Since we serve only one uncensored model, you cannot route requests to different models based on the task. If model routing is a critical feature for your application, you might need to consider other providers.

Additionally, if you require an SLA with specific uptime guarantees or certifications like SOC2, HIPAA, or ISO, this API may not meet your needs. The service does not claim these certifications. For applications with strict compliance requirements, you should verify if this API aligns with your regulatory needs. Always check the vendor's documentation for current features and limits to ensure it fits your specific use case.

Addressing Community Questions on Integration

Developers frequently discuss integration challenges in communities like r/LocalLLM. Many users ask about finding truly uncensored models that are free from alignment-based filtering. Threads often highlight the difficulty of finding models that do not impose artificial safety layers. Our API addresses this by providing a single, uncensored open-weight model that does not refuse lawful adult or controversial topics.

Another common question is how to handle over-moderation from other providers. Users often complain that challenging questions are ignored or answered with generic responses. Our API allows for more direct and nuanced conversations, as it does not have the same level of safety guardrails. This makes it suitable for applications that require genuine, unrestricted dialogue.

Users also inquire about the best models for local use. While our API is hosted, the principles of uncensored generation apply similarly. The model's ability to handle a wide range of topics without refusal is a key feature. Developers can use this to build applications that require high levels of engagement and responsiveness.

Finally, there are questions about the technical aspects of integration, such as SDK configuration and prompt formatting. By following the checklist provided in this article, developers can overcome these challenges. The API's compatibility with standard SDKs and its support for features like function calling make it a versatile choice for integration. Always refer to the vendor's documentation for the most up-to-date information on features and limits.

Frequently asked questions

How do I get started with the uncensored API?

Sign up with Google or email to receive your API key immediately. You can use the $0.50 trial credit to test the API without any initial payment. Visit the site to create your account and start making requests.

What payment methods are accepted for top-ups?

Top-ups are accepted in crypto only, specifically USDT on the TRC20 network or USDC on the Base network. The minimum amount is $20, and the maximum is $500. Cards, PayPal, and bank transfers are not accepted.

Does the API support image or audio generation?

No, the API is text-in, text-out only. It does not support embeddings, image, audio, or video generation, OCR, fine-tuning, or model routing. You will need to use other services for multimedia capabilities.

What happens if I run out of credit?

If you run out of credit, you will receive a 402 error. You can top up your account with crypto to restore access. Errors and refusals are free, so you are not charged for failed requests.