EN ▾
Get API key

Integrating an Uncensored Text API: SDK Setup and Checklist

Developers often seek a straightforward text-in, text-out solution for uncensored chatbots without the overhead of managing large models. This guide walks you through integrating our API, configuring SDKs, and verifying your setup with a practical checklist.

Server rack with glowing blue lights and floating text streams representing an AI text API

Understanding the API Architecture

Our service provides a hosted, OpenAI-compatible chat-completions API that serves one specific uncensored open-weight text model. The model identifier you must send is uncensored. This design simplifies integration because you do not need to manage model routing or select from multiple options. Text goes in, and text comes out, making it ideal for chatbots, roleplay engines, and content generation pipelines.

The base URL for all requests is https://api.uncensoredaichatbot.top/v1. You will interact with three primary endpoints: POST /v1/chat/completions for generating responses, POST /v1/responses for newer response formats, and GET /v1/models to verify available models. Unlike complex platforms, we do not offer embeddings, image generation, audio processing, video creation, OCR, or fine-tuning capabilities. This focus ensures stability and speed for text-based applications.

When integrating, remember that this is an independent service. It is not an official product of any major tech company, nor does it serve another vendor's model. If you are comparing it to other services, check that vendor's own documentation for their current prices and limits. Our API stands on its own with a clear set of features tailored for developers who need reliable, uncensored text generation.

The architecture is designed for ease of use. You send a JSON payload with your messages and receive a stream of tokens or a complete response. The system handles the heavy lifting of inference, allowing you to focus on building your application logic. This simplicity reduces the learning curve for new developers while providing the power needed for advanced use cases like complex roleplay or detailed content creation.

Authentication and Key Management

To start using the API, you need an API key. You can sign up by continuing with Google or using an email and password combination. Once registered, your API key is shown immediately, allowing you to begin testing right away. This key is essential for authenticating your requests and tracking your usage. Keep it secure, as it provides access to your account and credits.

Errors related to authentication are straightforward. A 401 status code indicates an invalid key, meaning you should check that you are sending the correct key in the Authorization header. A 402 status code means you have no credit left, and a 429 status code indicates you have hit the rate limit. Understanding these codes helps you troubleshoot issues quickly without needing deep support.

The rate limit is set at 300 requests per minute per key. This is a generous limit for most applications, but you should monitor your usage if you are building a high-traffic service. If you exceed this limit, your requests will be temporarily blocked until the window resets. This ensures fair usage and maintains performance for all users on the platform.

Remember that the key is tied to your account, so if you lose it, you may need to regenerate it. Always store your key in environment variables or a secure configuration file, never in your source code. This practice prevents accidental exposure if you share your code or push it to a public repository. Secure key management is the first step in a reliable integration.

Payment and Credit System

Our pricing model is straightforward and based on actual usage. You pay $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, meaning errors and refusals are free. There is no monthly subscription fee, and your paid credit never expires. This pay-as-you-go model is ideal for developers who want to control costs and avoid wasting money on unused credits.

To add funds, you must use cryptocurrency. We accept USDT on the TRC20 network or USDC on the Base network. You can top up with any whole amount between $20 and $500. If you top up with $50 or more, you receive a bonus credit ranging from +5% to +15%. This bonus incentivizes larger deposits and provides extra value for your money. Note that we do not accept credit cards, PayPal, or bank transfers, so ensure you have a crypto wallet ready.

Every new account starts with $0.50 of trial credit, requiring no credit card. This allows you to test the API thoroughly before committing to a purchase. The trial credit is a great way to verify your integration and ensure the uncensored model meets your needs. If you run out of credits, your requests will return a 402 error until you top up.

Since payments are crypto-only, transactions are fast and borderless. You do not need to worry about international fees or currency conversion issues. Just send the required amount to the provided address, and your credits are added to your account. This system ensures transparency and fairness, with no hidden fees or surprise charges. It is a modern approach to billing that fits the decentralized nature of many AI projects.

SDK Configuration and Parameters

Integrating the API is easy because it follows the OpenAI standard. You can use any OpenAI-compatible SDK, such as the Python or JavaScript libraries, by pointing them to our base URL. The model ID you must specify is uncensored. This compatibility means you can reuse existing code and libraries, reducing development time. The SDK handles the JSON formatting and request signing, making the process smooth.

The API supports several useful parameters to customize your responses. You can set the temperature for creativity, top_p for diversity, stop sequences to halt generation, and a seed for reproducibility. Additionally, you can use penalties to adjust token probabilities. These parameters give you fine-grained control over the output, allowing you to tune the model for specific tasks like creative writing or precise data extraction.

Function calling and JSON mode are also supported. Function calling allows the model to generate structured data that your application can parse, which is useful for building agents or tools. JSON mode ensures the output is valid JSON, making it easier to integrate with front-end applications or databases. These features expand the utility of the API beyond simple chat, enabling more complex interactions.

Streaming is available over Server-Sent Events (SSE), with usage information included in the last chunk. This allows you to display responses in real-time, improving the user experience. The streaming feature is particularly useful for chatbots where latency matters. By receiving tokens as they are generated, you can reduce the perceived wait time for users. This makes the API suitable for interactive applications where responsiveness is key.

Context Window and Token Limits

Our API supports a context window of 100,000 tokens, which includes both the prompt and the completion. This large window allows for long conversations and detailed context, making it ideal for tasks that require remembering previous interactions. For example, you can feed a large document or a long chat history into the model, and it will retain that information for generating responses. This is a significant advantage for applications like long-form storytelling or complex analysis.

However, keeping track of token usage is important for cost management. Since you pay per token, understanding how many tokens your prompts and responses consume helps you budget effectively. You can estimate costs by dividing the token count by 1,000,000 and multiplying by the per-million price. For input tokens, multiply by $0.15, and for output tokens, multiply by $0.50. This formula helps you predict expenses before they occur.

When working with large contexts, be mindful of the API's limits. While the context window is large, the rate limit of 300 requests per minute still applies. If you are processing many long documents, you may need to batch your requests or adjust your rate limiting strategy. This ensures that your application remains responsive and does not hit the rate limit unexpectedly.

The context window is a powerful feature, but it is not a silver bullet. If your application requires image or audio processing, this API may not be the right choice, as it focuses solely on text. Similarly, if you need fine-tuning or model routing, you might need a different solution. Understanding these limitations helps you choose the right tool for your specific needs.

When This API Is Not the Right Choice

While our API is excellent for text generation, it may not be the best fit for every project. If you need image generation, audio processing, or video creation, this service does not support those features. The API is strictly text-in, text-out, so if your application relies on multimodal inputs or outputs, you will need to look elsewhere. This focus on text ensures high performance and reliability for text-based tasks.

Additionally, if you require fine-tuning or model routing, our API may not meet your needs. We offer a single uncensored model, so you cannot train the model on your specific data or switch between different models for different tasks. If your project demands these advanced features, you might need a more flexible platform. However, for most chatbot and content generation use cases, our API provides all the necessary functionality.

Another consideration is the payment method. Since we only accept crypto, if your team or users prefer credit cards or PayPal, this might be a barrier. The lack of traditional payment options could limit your audience if you are targeting users who are not familiar with cryptocurrency. However, for developers and tech-savvy users, this is often a non-issue.

Finally, if you need strict SLA guarantees or certifications like SOC2 or HIPAA, our service does not currently offer these. We are an independent service focused on providing a reliable, uncensored text API. If your project requires enterprise-grade compliance, you may need to evaluate other options. However, for indie builders and developers who prioritize flexibility and uncensored output, this API is an excellent choice.

Addressing Community Questions on Reddit

Discussions on Reddit often revolve around finding the best uncensored AI tools. Users on subreddits like r/GeminiAI and r/AIToolsAndTips frequently ask for recommendations on uncensored generators. Many threads highlight the difficulty in choosing between the many options available, with users sharing their experiences with different platforms. The consensus often points to the need for a reliable, uncensored text API that is easy to integrate.

Another common topic is the trade-off between model quality and creative freedom. Users on r/WritingWithAI discuss how many uncensored bots either become repetitive or rush into NSFW content too quickly. They seek a solution that can maintain character and provide slow-burn roleplay without losing coherence. Our API addresses this by offering a single, high-quality uncensored model that can be tuned with parameters like temperature and top_p to control the flow of the conversation.

Users also compare our service to other popular tools. While some mention specific vendors or models, the key takeaway is the need for a straightforward, uncensored text API. Our service fits this niche perfectly, offering a simple integration with a large context window and flexible payment options. By focusing on text generation, we provide a stable foundation for developers to build their own unique experiences.

Overall, the community values transparency and reliability. They appreciate services that do not overpromise and deliver on their core features. Our API meets these expectations by providing a clear, uncensored text generation tool with a straightforward pricing model. This approach resonates with developers who want to build reliable applications without dealing with the complexity of multimodal or fine-tuned models.

Frequently asked questions

How do I top up my account?

You can top up your account using USDT on the TRC20 network or USDC on the Base network. The minimum amount is $20, and the maximum is $500. If you deposit $50 or more, you receive a bonus credit ranging from +5% to +15%.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for long conversations and detailed context, making it suitable for complex tasks like long-form storytelling or analyzing large documents.

Can I use the API for image generation?

No, the API is strictly text-in, text-out. It does not support image, audio, or video generation. If you need multimodal capabilities, you may need to combine this API with other tools or look for a different service.

What happens if I run out of credits?

If you run out of credits, your requests will return a 402 error. You can add more credits by topping up with crypto. Errors and refusals are free, so you only pay for actual token usage.