EN ▾
Get API key

Integrating an Uncensored Text API: A Step-by-Step Checklist

Connecting to an uncensored text API requires understanding the specific configuration needed for raw text output. This guide provides a practical checklist for developers to integrate the service into their pipelines, ensuring smooth text-in and text-out operations.

Developer desk with laptop showing uncensored API code and digital text streams

Understanding the API Scope and Model

Before diving into code, it is essential to understand what this service actually provides. The API serves a single, uncensored open-weight text model identified by the ID uncensored. It is a hosted solution that accepts text input and returns text output, making it ideal for applications that need raw, unfiltered conversational responses without the overhead of multimodal processing.

The service operates on a straightforward text-in, text-out principle. You do not need to worry about image generation, audio processing, or video rendering. This simplicity allows developers to focus entirely on the logic of their application and the quality of the text responses. The model does not impose standard safety refusals on lawful adult, fictional, or controversial topics, which is the primary reason many developers seek out this specific uncensored endpoint.

When integrating, you will interact with standard OpenAI-compatible endpoints. The base URL for all requests is https://api.unfilteredaiimage.cc/v1. This consistency means that if you are already familiar with the OpenAI SDK structure, you can adapt your existing code with minimal changes. The model ID you must send in your requests is simply uncensored, which tells the server which uncensored model to invoke for your specific query.

It is important to note that this is an independent service and not an official partner of any major AI vendor. While it uses a compatible format, the underlying model and its behavior are unique to this provider. Developers should check the vendor's own documentation for any updates on model versions or specific behavior changes, as the uncensored nature of the model means it may respond differently to edge cases compared to standard commercial models.

Setting Up Authentication and Credits

Authentication for this API is handled via API keys, which are generated immediately upon signup. You can create an account using Google or by providing an email and password. Once registered, your API key is shown right away, allowing you to start making requests without delay. This key is your primary method of access, and you must include it in the authorization header of every request you send to the server.

The pricing model is straightforward and based on real token usage. The cost is $0.15 per million input tokens and $0.50 per million output tokens. Unlike subscription-based services, there are no monthly fees or recurring charges. You pay only for what you use, and any prepaid credit never expires. This pay-as-you-go structure is particularly appealing for indie builders and developers who want to control their costs precisely without committing to a fixed monthly budget.

Top-ups are processed exclusively through cryptocurrency. You can add funds using 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 with $50 or more, you receive a bonus credit ranging from +5% to +15%. This crypto-only payment method ensures fast processing and avoids the fees associated with traditional payment gateways like credit cards or PayPal.

Errors and refusals do not incur charges, which is a significant advantage for developers testing their prompts. If you send a request that results in a 401 (invalid key), 402 (no credit), or 429 (rate limit) error, you are not charged for those tokens. This allows you to experiment with different prompt structures and parameters without worrying about accumulating costs from failed or rejected requests. The trial credit of $0.50 for new accounts also provides a risk-free way to test the integration before committing to a larger top-up.

Configuring Request Parameters and Streaming

When making requests to the API, you can utilize a variety of standard parameters to fine-tune the model's output. These include temperature, top_p, stop sequences, seed, and various penalties. The temperature parameter allows you to control the randomness of the output, while top_p helps in selecting the most likely tokens based on a cumulative probability threshold. Using a seed ensures that you can reproduce the same response for the same input, which is useful for testing and debugging.

Streaming is supported via Server-Sent Events (SSE), allowing you to receive the response in chunks as it is generated. This is particularly useful for applications that need to display text to users in real-time, such as chat interfaces. The usage information, including token counts, is included in the last chunk of the stream, so you can accurately track your credit usage without needing to make additional requests to fetch the final count.

Function calling is also supported, enabling you to define tools that the model can invoke. This allows for more complex interactions where the model can trigger specific actions in your application based on the user's input. JSON mode is available, ensuring that the model's output is strictly formatted as valid JSON, which makes it easier to parse and integrate into your backend logic. These features make the API versatile for a wide range of use cases, from simple chatbots to more sophisticated AI agents.

It is important to manage your requests efficiently to avoid hitting the rate limit. The API allows up to 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. To handle this, you should implement retry logic with exponential backoff in your application. This ensures that your service remains responsive even during periods of high traffic or when you are processing large volumes of data.

Handling Context and Token Limits

The API supports a context window of 100,000 tokens, which includes both the prompt and the completion. This large context window allows you to send extensive amounts of information in a single request, making it suitable for applications that need to process long documents or maintain long-term conversations. However, it is important to monitor your token usage closely, as the cost is based on the total number of tokens processed.

To estimate costs, you can use the formula: (tokens divided by 1,000,000) times the per-million price. For input tokens, the rate is $0.15 per million, and for output tokens, it is $0.50 per million. By keeping track of the token counts in your requests, you can predict your expenses and ensure that you have sufficient credit to cover your usage. The prepaid credit system ensures that you never run out of credit unexpectedly, as you can top up at any time.

When working with large contexts, it is advisable to chunk your input data if it exceeds the context window. You can send multiple requests with different chunks of data and aggregate the results. This approach allows you to handle very large inputs without hitting the token limit. Additionally, using the seed parameter can help you maintain consistency across different chunks, ensuring that the model's responses are coherent and relevant.

Errors and refusals are free, which means that if a request is rejected due to content filters or other issues, you are not charged for the tokens used in that request. This is particularly useful when testing different prompts or when dealing with unpredictable user inputs. By monitoring your error rates and token usage, you can optimize your application to minimize costs and improve performance.

When This API Is Not the Right Choice

While this uncensored text API is powerful for many use cases, it is not the right choice for every project. If your application requires image, audio, or video generation, this API will not meet your needs. The service is strictly text-based, so you will need to integrate a separate solution for multimodal content. Similarly, if you need embeddings for semantic search or OCR for document processing, this API does not provide those features.

Fine-tuning is another capability that this API does not support. If you need to train the model on your specific dataset to improve its performance on a particular task, you will need to look for a different provider. The uncensored model is ready to use out of the box, but it does not offer the flexibility to customize the model's behavior through fine-tuning. This makes it less suitable for applications that require highly specialized or domain-specific responses.

Model routing is also not available in this service. If you need to switch between different models based on the complexity of the task or the cost efficiency, this API will not allow you to do so. You are locked into the single uncensored model provided. This can be a limitation if you want to experiment with different models or optimize your costs by using a cheaper model for simpler tasks.

Finally, if you require high availability guarantees or certifications such as SOC2, HIPAA, or ISO, this service may not be the best fit. The API does not claim any specific SLA percentages or certifications, and it is an independent service rather than a large enterprise provider. For applications that require strict compliance or guaranteed uptime, you may need to consider a more established vendor. However, for developers who prioritize uncensored text output and flexible pricing, this API offers a compelling alternative.

Addressing Community Questions on Uncensored Models

Developers often discuss the effectiveness of uncensored models in various online communities. On platforms like r/LocalLLM, users share their experiences with different models, such as Qwen3.6 35B A3B Uncensored HauhauCS Aggressive. Many users find that these models provide a more genuine conversation experience compared to heavily moderated alternatives. The consensus is that uncensored models are essential for getting close to real, unfiltered dialogue, especially when dealing with challenging or controversial topics.

Another common theme in these discussions is the issue of self-censorship in large language models. Users note that big providers often impose extensive safety instructions that can lead to overly cautious or repetitive responses. By using an uncensored model, developers can bypass these layers of filtering and get more direct and varied answers. This is particularly valuable for applications that need to handle a wide range of user inputs without triggering false positives in the safety filters.

Some users also explore the use of specific keywords to find uncensored models in tools like LM Studio. Terms such as 'heretic', 'abliterated', and 'aggressive' are often used to identify models that have been modified to reduce safety constraints. While these local models can be powerful, they require significant hardware resources. For developers who prefer a hosted solution, this API offers a similar uncensored experience without the need for managing local infrastructure.

The discussion around uncensored models also highlights the importance of context and prompt engineering. Users often find that clear context and starting over can help mitigate some of the inherent biases in the model. By providing detailed instructions and setting the right tone in the system prompt, developers can guide the model to produce more relevant and accurate responses. This approach can be applied to any uncensored model, including the one provided by this API, to enhance the quality of the output.

Best Practices for Integration and Troubleshooting

When integrating the API, it is important to handle errors gracefully. The API returns specific error codes for different issues: 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. By checking these codes, you can provide meaningful feedback to your users and take appropriate action, such as prompting them to top up their credit or waiting before retrying. This helps in maintaining a smooth user experience even when technical issues arise.

Monitoring your token usage is another best practice. Since the cost is based on token count, keeping track of your usage can help you manage your budget effectively. You can use the usage information provided in the streaming responses to update your internal metrics and alerts. This allows you to set thresholds for credit usage and receive notifications before you run out of funds, ensuring that your service remains uninterrupted.

Testing your integration with a variety of prompts is essential to ensure that the model behaves as expected. You can use the trial credit of $0.50 to experiment with different parameters and settings. This allows you to find the optimal configuration for your specific use case without risking your prepaid credit. Additionally, using the seed parameter can help you reproduce specific responses for testing and debugging purposes.

Finally, it is important to stay updated with any changes to the API or the model. Since this is an independent service, updates may be released frequently to improve performance or add new features. Subscribing to the vendor's documentation or announcements can help you stay informed about these changes. By keeping your integration up to date, you can take advantage of the latest improvements and ensure that your application continues to deliver high-quality uncensored text responses.

Frequently asked questions

How do I top up my credit?

You can top up your credit using USDT on the TRC20 network or USDC on the Base network. The minimum amount is $20, and the maximum is $500. Bonus credit is available for top-ups of $50 or more.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for extensive input data in a single request.

Does the API support image generation?

No, this API is strictly text-based. It does not support image, audio, or video generation. You will need a separate solution for multimodal content.

How are errors handled?

Errors such as invalid keys (401), no credit (402), and rate limits (429) are returned. Errors and refusals are free, meaning you are not charged for tokens used in failed requests.