EN ▾
Get your key

Integrate Uncensored AI Bot API: SDK & Settings Checklist

Developers often struggle with configuring OpenAI-compatible endpoints for custom applications. This guide outlines the precise integration steps and essential settings to ensure your text-in, text-out bot runs smoothly without unnecessary bloat.

Holographic developer interface showing code and token counters on a dark background

Understanding the Base Configuration

Integrating our API begins with pointing your SDK to the correct base URL. The endpoint structure follows the standard OpenAI compatibility layer, which means you can use familiar client libraries without rewriting your entire codebase. The base URL for all requests is https://api.uncensoredaibot.com/v1. This single endpoint handles chat completions, responses, and model information. You do not need to manage multiple domains or subdomains for different features.

When initializing your client, you must specify the model ID as "uncensored". This tells the service which uncensored open-weight text model to route your request to. Unlike other providers that might offer multiple model versions, this API serves one specific model optimized for minimal refusal. The model ID is a string value, so ensure your code passes it exactly as written.

The API supports both the POST /v1/chat/completions and POST /v1/responses endpoints. These endpoints handle the actual text generation. The GET /v1/models endpoint allows you to verify available models, though currently, only the uncensored model is active. This simplicity reduces the complexity of your integration logic, as you do not need to handle model routing or versioning logic.

Keep in mind that this service is independent and not affiliated with any major tech vendor. When you see references to OpenAI in documentation, it refers to the compatibility layer, not our ownership. Always verify your integration against the current API documentation for the most accurate endpoint details.

Essential SDK Parameters and Settings

Once your base connection is established, you need to configure the generation parameters. The API supports streaming over Server-Sent Events (SSE), which is important for real-time user experiences. When streaming, usage information is provided in the last chunk of the response. This allows you to track token consumption in real-time without waiting for the entire response to finish.

You can control the output quality and randomness using parameters like temperature, top_p, stop sequences, and seed. The temperature parameter adjusts the creativity of the model, while top_p filters the token pool. The stop parameter allows you to define specific strings that terminate the generation, which is useful for maintaining consistent formatting in your application.

JSON mode is available for structured data extraction. This ensures the model outputs valid JSON, which is essential for integrating with databases or other software systems. Additionally, you can use penalties to discourage repetitive or undesirable patterns in the output. These parameters give you fine-grained control over the text generation process.

Remember that the context window is 100,000 tokens, covering both the prompt and the completion together. This large window allows for extensive context handling, but you should still monitor your token usage to stay within your prepaid credit limits. Efficient prompt engineering can help you maximize the utility of this window.

Managing Credits and Payments

Pricing for this API is straightforward and based on actual token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Errors and refusals are free, so you are not charged for failed requests. There is no monthly subscription fee, and prepaid credit never expires. This model is ideal for developers who want predictable costs without recurring billing surprises.

Top-ups are processed exclusively via cryptocurrency. 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 from $50 or more, you receive bonus credit ranging from 5% to 15%. This bonus structure rewards larger investments and provides extra value for your integration.

New accounts start with $0.50 of trial credit, requiring no credit card. This allows you to test the API thoroughly before committing to a larger top-up. The key is shown immediately upon signup, so you can begin integrating right away. Keep your API key secure, as it is the only way to access your credit and make requests.

Rate limits are set at 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. Plan your integration to handle these limits gracefully, perhaps by implementing exponential backoff in case of rate limiting. This ensures your application remains responsive even during peak usage.

Handling Errors and Refusals

Understanding error codes is important for a reliable integration. A 401 error indicates an invalid API key, which means you should check your credentials. A 402 error signifies that you have no credit left, requiring a top-up to resume service. A 429 error means you have hit the rate limit of 300 requests per minute. These errors are standard and should be handled with appropriate retry logic in your code.

Refusals are free, so you do not lose credit if the model refuses a request. This is particularly useful for testing content filters or experimenting with different prompts. The only hard content limit is on sexual content involving minors. Requests containing such content are refused, but other controversial or adult topics are generally accepted, reflecting the uncensored nature of the model.

When troubleshooting, always check your API key first, then your credit balance, and finally your rate limit status. This systematic approach helps you identify the issue quickly. You can also use the GET /v1/models endpoint to verify that your connection is active and that the model is available.

Remember that errors do not incur charges, so you can experiment freely. This flexibility allows developers to test edge cases and refine their prompts without financial risk. Use this to your advantage to optimize your integration before deploying it to production.

When This API Is Not the Right Choice

While our API is excellent for text generation, it is not the right choice for every project. If you need image, audio, video generation, embeddings, OCR, or fine-tuning, this API will not meet your needs. The service focuses solely on text-in, text-out capabilities. You cannot use it for multimodal tasks or model routing.

If you require an SLA with specific uptime guarantees, this service does not offer one. Similarly, if you need SOC2, HIPAA, or ISO certifications, this API does not provide them. Developers looking for on-premises deployment options will also find this hosted service unsuitable, as it is a cloud-based solution.

Additionally, if you need a free unlimited tier, this API is not the right fit. It operates on a prepaid credit model, so you must pay for usage. However, the $0.50 trial credit allows you to test the service thoroughly before committing to a paid top-up. This ensures you can evaluate the quality and suitability of the model for your specific use case.

For projects requiring named customer support or benchmark scores, this independent service may not align with your expectations. The focus is on providing a reliable, uncensored text API without the overhead of additional features. If your project demands these extra capabilities, consider other vendors who specialize in those areas.

Addressing Community Questions on Integration

Developers on Reddit often discuss the best ways to integrate uncensored AI tools. Threads on r/GeminiAI and r/AIToolsAndTips highlight concerns about model flexibility and content generation. Users frequently ask how to avoid repetitive outputs or how to maintain character consistency in roleplay scenarios. Our API addresses these needs through its uncensored model and configurable parameters.

On r/WritingWithAI, developers discuss the trade-offs between different chatbots. Some users find that many bots rush to NSFW content or become repetitive. Our API allows you to control the temperature and top_p parameters to fine-tune the output. This gives you the ability to create more nuanced and engaging interactions, whether for storytelling or companion apps.

Users on r/AIJailbreak also share tips on maximizing free or low-cost options. While our API is prepaid, the bonus credit for top-ups over $50 provides significant value. This allows you to experiment extensively without a high initial investment. The absence of subscriptions means you pay only for what you use, which is appealing for indie builders.

When comparing options, users often mention local models or mobile apps. Our API offers a hosted solution with a large context window, which is advantageous for processing long documents or maintaining extensive conversation history. This makes it a strong choice for developers who want the power of a large model without the overhead of local deployment.

Testing and Optimizing Your Integration

To ensure your integration is reliable, start by testing with the $0.50 trial credit. Use this to verify that your API key works and that you can successfully send requests. Check the response format and ensure that streaming and JSON mode are functioning as expected. This initial testing phase helps you identify any configuration issues before you invest in a larger top-up.

Monitor your token usage closely. Since you pay per token, understanding how many tokens your prompts and responses consume is important for budgeting. Use the streaming response to track usage in real-time. This allows you to adjust your prompts or parameters to optimize token efficiency. For example, you might reduce the context window or simplify your prompts to save credits.

Implement error handling for 401, 402, and 429 errors. Ensure your application can gracefully handle rate limits by implementing exponential backoff. This prevents your application from overwhelming the API and ensures a smooth user experience. Additionally, test the refusal behavior to ensure that your application handles refusals correctly without losing credit.

Finally, consider the security of your API key. Since the key is shown immediately upon signup, store it securely in your environment variables or secret manager. Avoid hardcoding the key in your source code. This protects your credit and prevents unauthorized usage. By following these steps, you can build a reliable and efficient integration with our uncensored text API.

Frequently asked questions

How do I start using the uncensored AI bot API?

Sign up with Google or email to receive your API key immediately. You get $0.50 of trial credit to test the service without a credit card. Use the base URL https://api.uncensoredaibot.com/v1 and the model ID "uncensored" to begin making requests.

What payment methods are accepted for top-ups?

Top-ups are accepted only via crypto: USDT on TRC20 or USDC on Base. The minimum amount is $20, and the maximum is $500. You can receive bonus credit of 5% to 15% for top-ups of $50 or more.

Does the API support streaming and JSON mode?

Yes, the API supports streaming over Server-Sent Events (SSE) and JSON mode. Streaming provides usage information in the last chunk, while JSON mode ensures structured output. These features are essential for real-time applications and data extraction.

What are the rate limits for the API?

The rate limit is 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. Plan your integration to handle these limits gracefully, perhaps by implementing exponential backoff in case of rate limiting.