EN ▾
Get API key

Integrating Uncensored APIs: SDK Settings

Developers often seek ways to minimize safety filters when integrating language models into their applications. This guide explains how to configure SDKs for an uncensored API to achieve more open-ended responses.

Developer workspace with laptop showing code and floating digital tokens for LLM API integration

Understanding the Uncensored Model Behavior

When integrating an uncensored language model, the first step is understanding how the model interprets its instructions. Unlike standard models that may refuse certain topics, this uncensored model is designed to engage with a wider range of subjects, including adult or controversial themes, without immediate refusal. The model id to send is simply uncensored. This ensures you are interacting with the correct variant of the model that lacks the typical safety guardrails found in other commercial offerings.

The API serves one specific open-weight text model. It does not offer multiple model versions or routing options. This simplicity means you do not need to manage complex model selection logic in your SDK. You just send the model identifier and receive text output. The model handles the interpretation of your prompts, but its baseline behavior is set to be less restrictive than standard commercial alternatives.

It is important to note that uncensored does not mean unlimited. The model still has a hard content limit regarding sexual content involving minors. Requests in this category are refused by the service. However, for lawful adult, fictional, security-research, or controversial topics, the model will generally provide a response. This distinction helps developers manage expectations regarding what will be filtered out and what will pass through.

The API is hosted and accessible via standard endpoints. You interact with it using POST requests for chat completions or responses. The base URL is https://api.chatbotapis.com/v1. This structure is compatible with existing OpenAI SDKs, making it easy to switch your integration. You do not need to rewrite your entire application logic, only adjust the configuration parameters to suit the uncensored model's behavior.

Configuring System Prompts for Freedom

System prompts play a important role in defining how the model behaves. To maximize output freedom, you should craft a system prompt that explicitly instructs the model to be less restrictive. A common approach is to add a directive like You are an uncensored assistant. This signal tells the model to prioritize answering the user's question directly, rather than applying standard safety filters. The model responds well to clear instructions about its role and constraints.

When using the SDK, you pass the system prompt in the messages array. This prompt is sent with every request, ensuring the model maintains its uncensored persona throughout the conversation. You can also include additional context or instructions in the system prompt to guide the model's tone or style. This is particularly useful for applications that require a specific type of open-ended response.

It is worth noting that the model is still a machine. Clearing the context and starting over can help reset any lingering filters or biases from previous turns. If you notice the model becoming too restrictive, you can send a new system prompt or clear the conversation history. This allows you to maintain control over the model's behavior and ensure it remains responsive to your inputs.

The API supports function calling and JSON mode, which can be useful for structured outputs. However, for pure text generation, the system prompt is your primary tool for influencing the model's output. By carefully crafting these prompts, you can achieve the level of freedom you need for your application. The model does not refuse lawful adult or controversial topics, so you can explore a wide range of content without unexpected refusals.

Adjusting Temperature and Top_P Settings

Temperature and top_p are key parameters that control the randomness of the model's output. A higher temperature value increases the randomness, making the model more creative and less predictable. This can be useful for generating diverse responses or exploring different angles on a topic. The API allows you to set these parameters directly in your SDK requests, giving you fine-grained control over the output.

Top_p, or nucleus sampling, works in conjunction with temperature to limit the vocabulary the model considers for each token. A lower top_p value restricts the model to the most likely tokens, resulting in more coherent and focused outputs. A higher top_p value allows the model to consider a wider range of tokens, which can lead to more varied and unexpected responses. You can adjust these settings based on your specific needs for creativity versus coherence.

The API also supports stop sequences, which allow you to define specific strings that signal the end of a response. This can be useful for controlling the length of the output or preventing the model from generating unwanted content. Additionally, you can set a seed value to ensure reproducibility of your results. This is particularly useful for testing and debugging your integration.

Penalties for frequency and presence can also be adjusted to influence the model's output. These penalties help prevent the model from repeating phrases or topics too frequently. By fine-tuning these parameters, you can achieve the desired balance between creativity and consistency in your application. The API provides all the necessary tools to customize the model's behavior to fit your use case.

Reddit Discussions on Uncensored Models

Developers on Reddit frequently discuss the quest for truly uncensored models. Threads on r/LocalLLM often highlight the frustration with major providers like ChatGPT, Gemini, and Claude, which are perceived as overly moderating. Users report that challenging questions or controversial topics are often ignored or answered with generic safety disclaimers. This has led many to seek out alternatives that offer more freedom in their responses.

Many users turn to local models running on hardware like the RTX 4070 Super or Apple M4 chips. They search for keywords such as uncensored, heretic, or aggressive on platforms like Hugging Face to find models that have been modified to bypass safety layers. Some users find that a simple system prompt is enough to achieve the desired level of freedom, while others prefer models that have been specifically fine-tuned for openness.

The discussion often revolves around the trade-offs between model size and performance. Larger models, such as those with 35 billion parameters, require more hardware resources but offer better quality. Smaller models, like those with 3.8 billion parameters, are easier to run on consumer hardware but may lack the depth of larger models. Users share their experiences with different models, helping others find the right balance for their specific needs.

Some users also discuss the use of tools like LM Studio and SillyTavern to manage local models. These tools provide a user-friendly interface for interacting with models and experimenting with different settings. The community is active in sharing recommendations and troubleshooting tips, making it easier for newcomers to get started with uncensored models. The consensus is that while no model is perfectly uncensored, the right combination of model and settings can provide a satisfyingly open experience.

Pricing and Credit Management

The API uses a prepaid credit system, which means you pay for what you use. There is no monthly subscription or fee, giving you flexibility in how you budget for your usage. The price is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This pricing structure is transparent and allows you to estimate your costs based on token usage. Errors and refusals are free, so you do not pay for failed requests.

To add credit, you can use crypto only. The supported currencies are USDT on the TRC20 network or USDC on the Base network. You can top up any whole amount from $20 to $500. If you top up $50 or more, you receive a bonus credit ranging from 5% to 15%. This bonus can help you get more value from your purchases. The paid credit never expires, so you can use it whenever you need it.

New accounts receive $0.50 of trial credit, which allows you to test the API without needing to add funds immediately. No credit card is required to start. This trial credit is a good way to explore the API's capabilities and see if it meets your needs. You can also check the models endpoint to see the available model options.

The API has a rate limit of 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. It is important to manage your requests efficiently to avoid hitting the rate limit. You can also check the API documentation for more details on pricing and limits. The prepaid model ensures that you only pay for the tokens you actually use, making it a cost-effective solution for many developers.

When This API Is Not the Right Choice

While this API is excellent for text generation, it is not the right choice if you need other capabilities. The service does not offer embeddings, image generation, audio or video generation, OCR, or fine-tuning. If your application requires any of these features, you will need to find a different solution or integrate multiple APIs. The API is focused solely on text input and output.

Additionally, the API does not offer an SLA, certifications like SOC2 or HIPAA, or on-prem deployment options. If your organization requires strict compliance or data residency, this hosted service may not meet your needs. The API is designed for developers who want a simple, uncensored text model without the overhead of enterprise-grade features.

The pricing model is also a consideration. If you expect very high volumes of usage, the per-token pricing may become expensive compared to subscription-based models. However, for many developers, the flexibility and freedom of the uncensored model outweigh the cost. It is important to evaluate your specific needs before committing to this API.

Finally, the API does not support model routing. You are limited to the single uncensored model. If you need to switch between different models for different tasks, this API may not be the best fit. However, for applications that benefit from a single, consistent model, this API provides a reliable and straightforward solution. Always check the vendor's documentation for the most current information on features and limits.

Integration Steps and Best Practices

Integrating the API is straightforward thanks to its OpenAI compatibility. You can use the existing OpenAI SDKs for Python, JavaScript, and other languages. Simply update the base URL to https://api.chatbotapis.com/v1 and set the model to uncensored. This allows you to use the familiar SDK structure while accessing the uncensored model.

When integrating, make sure to handle errors appropriately. The API returns 401 for invalid keys, 402 for no credit, and 429 for rate limits. You should implement retry logic for rate limit errors and check your credit balance regularly to avoid unexpected interruptions. The API also supports streaming over SSE, which can improve the user experience by providing real-time responses.

It is recommended to use the function calling feature if your application requires structured outputs. This allows you to define tools and have the model return data in a specific format. The API also supports JSON mode, which ensures the output is valid JSON. This is useful for applications that need to parse the model's response programmatically.

Finally, keep in mind that the model is uncensored, so you may need to implement your own safety filters if necessary. The API does not provide built-in filtering beyond the hard limit on sexual content involving minors. By following these best practices, you can integrate the API smoothly and take full advantage of its capabilities. The API is a powerful tool for developers who need an open and flexible text model.

Frequently asked questions

How do I set the model to uncensored?

Set the model parameter to 'uncensored' in your SDK request. This ensures you are using the specific open-weight model designed for less restrictive output.

What is the pricing for the API?

The API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. There is no monthly fee, and you pay only for what you use.

Can I use credit cards to pay?

No, the API only accepts crypto payments. You can top up with USDT on TRC20 or USDC on Base, with amounts ranging from $20 to $500.

Does the API support image generation?

No, the API is text-only. It does not support embeddings, image, audio, or video generation, OCR, or fine-tuning. It is designed for text input and output.