EN ▾
Get API key

Integrating an Uncensored Chatbot API: A Developer Checklist

Developers often seek a reliable method to integrate an uncensored chatbot API into their applications without the friction of complex safety filters. This guide provides a concrete checklist for setting up SDKs, configuring endpoints, and verifying text-in/text-out functionality using our service.

Developer workspace with API code and digital tokens

Understanding the API Base and Endpoints

The foundation of integrating this service lies in correctly identifying the base URL and the available endpoints. Our API is hosted at https://api.uncensoredchatbot.cc/v1, which follows the standard OpenAI-compatible structure. This design allows you to use existing SDKs and client libraries with minimal modification. You will primarily interact with two endpoints for generating content: POST /v1/chat/completions for standard chat interactions and POST /v1/responses for alternative response formats. Additionally, you can use GET /v1/models to verify available model configurations.

It is important to note that this service is strictly text-based. The API does not support embeddings, image generation, audio processing, video creation, or OCR. There is also no fine-tuning capability or model routing feature. If your application requires multimodal inputs or outputs, you will need to handle those parts separately and use our API only for the text generation steps. The model identifier you must send in your requests is simply "uncensored".

When configuring your development environment, ensure that your HTTP client is set to handle JSON payloads efficiently. Since the API uses standard REST conventions, you can use familiar tools like Postman or cURL for initial testing. The consistency of the endpoint structure means that once you understand the authentication and payload format, you can easily switch between different SDKs if needed. This flexibility is important for developers who want to experiment with different client libraries without rewriting their core integration logic.

Always verify the base URL in your production environment to avoid latency issues or connection errors. The service is independent and does not rely on third-party infrastructure for its core text processing. By sticking to the documented endpoints, you ensure that your application remains stable even if the underlying model architecture evolves. This approach minimizes technical debt and keeps your integration clean and maintainable over time.

Authentication and Key Management

Authentication for this API is straightforward, relying on a single API key that you receive upon signup. You can create an account by continuing with Google or by using an email and password combination. Once registered, your API key is shown immediately, allowing you to start testing without delay. This key is the primary mechanism for identifying your requests and tracking usage against your prepaid credit balance.

When making requests, include the API key in the Authorization header. This is a standard practice that most modern SDKs handle automatically. If the key is invalid or missing, the API will return a 401 error. It is essential to store your key securely in your environment variables or secret manager. Avoid hardcoding the key in your source code, especially if you are using version control systems like Git.

The service does not require a credit card or bank account for initial access. Every new account receives $0.50 of trial credit, which allows you to test the API without any financial commitment. This trial credit is perfect for verifying that your integration works correctly before you decide to purchase more credits. You can use this free trial to experiment with different parameters and observe how the model responds to various prompts.

Keep in mind that the API key is tied to your account and its associated credit balance. If you lose access to your account or need to rotate keys, you may need to generate a new one. The service does not offer key rotation features like some enterprise providers. Therefore, treat your API key as a sensitive credential. Regularly review your usage and ensure that only authorized developers have access to the key to prevent unauthorized usage.

Token Management and Pricing Structure

Understanding the pricing model is critical for budgeting your API usage. The service charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. These rates are applied to real token usage, meaning you only pay for the tokens that are actually processed. Errors and refusals are free, which can help reduce costs if your application encounters frequent validation issues.

Credits are prepaid and never expire, providing flexibility for long-term projects. You can top up your account using cryptocurrency, specifically 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 choose to top up with $50 or more, you receive a bonus credit ranging from +5% to +15%, depending on the amount. This bonus structure incentivizes larger purchases and reduces the frequency of top-ups.

It is important to note that the service does not accept credit cards, PayPal, or bank transfers. All payments must be made via crypto. This limitation is part of the service's design to maintain independence and reduce friction for international users. When calculating your budget, consider the token counts of your prompts and expected responses. You can estimate costs using the formula: (tokens divided by 1,000,000) times the per-million price.

The context window for this API is 100,000 tokens, which includes both the prompt and the completion. This large context window allows for extensive conversations and document processing. However, keep in mind that longer contexts may consume tokens faster, affecting your balance. Monitor your usage regularly to ensure that you have sufficient credits for your application's needs. The prepaid model means that your service will stop if you run out of credits, so set up alerts if possible.

Configuring Parameters for Optimal Output

The API supports several parameters that allow you to fine-tune the model's behavior. You can adjust the temperature to control the randomness of the output. A higher temperature results in more creative and varied responses, while a lower temperature produces more deterministic and focused outputs. The top_p parameter allows you to control the nucleus sampling, which can help in generating more coherent text by limiting the pool of potential tokens.

You can also specify stop sequences to halt the generation process when a specific string is encountered. This is useful for controlling the length of responses or ensuring that the model does not continue beyond a desired point. The seed parameter allows you to set a random seed for reproducible results, which is valuable for testing and debugging. Additionally, you can configure penalties to discourage certain types of tokens or phrases in the output.

Function calling and JSON mode are supported, enabling you to integrate the API into more complex applications. Function calling allows the model to generate structured data that can be executed by your application. JSON mode ensures that the output is valid JSON, which is essential for API integrations that require strict data formats. These features enhance the versatility of the API, making it suitable for a wide range of use cases.

Streaming is available over Server-Sent Events (SSE), allowing you to receive tokens as they are generated. This improves the user experience by providing immediate feedback. The usage information is included in the last chunk of the stream, so you can track token consumption in real-time. When configuring your client, ensure that it handles streaming responses correctly to avoid blocking the main thread and to provide a smooth user experience.

Handling Errors and Rate Limits

Effective error handling is important for a reliable integration. The API returns specific HTTP status codes to indicate different types of errors. A 401 error indicates an invalid or missing API key, while a 402 error signifies that you have no remaining credit. A 429 error means you have exceeded the rate limit of 300 requests per minute per key. Understanding these codes allows you to implement appropriate retry logic and user notifications.

Rate limits are enforced to ensure fair usage and maintain service stability. If you exceed the 300 requests per minute limit, your requests will be rejected until the window resets. It is important to monitor your request volume and implement exponential backoff strategies for retries. This prevents overwhelming the API and reduces the likelihood of hitting rate limits during peak usage periods.

When encountering a 402 error, you will need to top up your credit balance before the API can process further requests. Since the service is prepaid, there is no option to continue using the API without credits. Implement a check in your application to verify credit balance before making critical API calls. This proactive approach can prevent unexpected service interruptions.

Errors and refusals are free, which means you do not lose credits if a request fails due to validation issues or content filters. However, the API has a hard content limit regarding sexual content involving minors. Requests containing such content will be refused. Ensure that your application handles these refusals gracefully and provides appropriate feedback to the user. This helps maintain a positive user experience even when the model refuses to generate certain types of content.

When This API Is Not the Right Choice

While this API is powerful for text generation, it may not be the right choice for every project. If your application requires image, audio, or video generation, this API cannot fulfill those needs. You will need to use a different service for multimodal outputs and integrate this API only for the text components. Similarly, if you need embeddings for vector search or fine-tuning for custom model behavior, this service does not offer those features.

The service is also not suitable if you prefer traditional payment methods. Since top-ups are crypto-only, users who prefer credit cards, PayPal, or bank transfers may find the process inconvenient. Additionally, the absence of a free unlimited tier means that you will always incur costs based on usage. If you are looking for a completely free solution with no usage limits, this API may not meet your expectations.

Another consideration is the lack of advanced enterprise features. The service does not offer SLA percentages, certifications like SOC2 or HIPAA, or on-prem deployment options. If your organization requires strict compliance with specific regulations or needs to host the model internally, you may need to look for a different provider. The service is designed for developers and indie builders who value simplicity and uncensored output over enterprise-grade guarantees.

Finally, if you need model routing to switch between different models based on performance or cost, this API only serves one uncensored open-weight text model. You cannot route requests to different models or versions. If your application requires dynamic model selection, you will need to build that logic yourself or use a different API that supports multi-model routing. Always evaluate your specific requirements before committing to this service.

Addressing Common Developer Questions

Developers often ask about the best way to handle memory and context in uncensored chatbots. Many users are looking for a solution that remembers previous interactions without forgetting details after a few messages. Our API supports a large context window of 100,000 tokens, which allows for extensive conversation history. However, the model itself does not have persistent memory across sessions. You must manage the context window in your application by sending the relevant history with each request.

Another common question is whether the API can be used for NSFW discussions without role-playing. The model is uncensored, meaning it does not refuse lawful adult topics, security research, or controversial subjects. You can use it for explicit language and collaboration in creating content without the constraints of traditional safety filters. This makes it suitable for developers who want more freedom in their AI interactions.

Users also inquire about the availability of free trials and the ease of signup. Every new account receives $0.50 of trial credit, which can be used to test the API without any financial commitment. The signup process is simple, allowing you to continue with Google or use an email and password. This low barrier to entry makes it easy for developers to experiment with the API before deciding to purchase more credits.

Finally, developers often ask about the performance and reliability of the API. The service is hosted and designed for high availability, with a rate limit of 300 requests per minute per key. While there are no SLA guarantees, the service is built to handle a significant volume of requests. Users have reported positive experiences with the speed and responsiveness of the API, making it a viable option for production applications.

Frequently asked questions

How do I start using the uncensored chatbot API?

You can start by signing up with Google or an email address to receive your API key immediately. Use the provided base URL and your key to make your first request. The trial credit allows you to test the API without any initial cost.

What payment methods are accepted for top-ups?

The service accepts only crypto payments, specifically USDT on the TRC20 network or USDC on the Base network. Credit cards, PayPal, and bank transfers are not supported. Top-ups range from $20 to $500.

Does the API support image or video generation?

No, the API is strictly for text generation. It does not support embeddings, image, audio, or video generation. You can use it for text-in/text-out tasks, but you will need other services for multimodal content.

What happens if I run out of credits?

If you run out of credits, you will receive a 402 error. You can top up your account using crypto to resume service. Errors and refusals are free, so you do not lose credits for failed requests.