How to Integrate Uncensored AI API: Step-by-Step Guide
Connecting an uncensored AI API to a custom application requires understanding the specific endpoint structure and authentication methods. This guide walks you through the exact steps to send text and receive text using our OpenAI-compatible service.

Understanding the API Endpoint Structure
Integrating our API begins with recognizing the base URL and the specific endpoints available for interaction. The service operates on a straightforward base URL located at https://api.unrestrictedaimodels.top/v1. This structure ensures that all requests are routed correctly to the uncensored model. Developers should note that the API is designed to be OpenAI-compatible, meaning existing clients or scripts can often be adapted with minimal changes.
The primary endpoint for generating text is POST /v1/chat/completions. This endpoint accepts a JSON payload containing the prompt, model identifier, and various parameters. The model ID to specify is simply 'uncensored'. This single model handles all text generation tasks, eliminating the need for complex model routing logic.
Another available endpoint is POST /v1/responses, which may be used for specific response formats. Additionally, GET /v1/models allows you to verify the available models. It is important to remember that this service does not support embeddings, image generation, audio processing, or video creation. The focus is strictly on text input and text output.
When integrating, ensure your client library supports the standard OpenAI chat completion format. This compatibility allows you to use familiar tools and libraries to interact with the API. The simplicity of the endpoint structure reduces the likelihood of integration errors and speeds up the development process.
Authentication and Key Management
Authentication is handled via an API key that you receive immediately upon signing up. You can create an account using Google or by providing an email and password. The key is displayed right after registration, so save it securely. This key must be included in the Authorization header of every request you make to the API.
Invalid keys will result in a 401 error, indicating that the key is either missing or incorrect. It is important to manage your keys carefully to avoid unauthorized usage. The API does not offer subscriptions or monthly fees, so your access is tied directly to the prepaid credit associated with your account.
If you run out of credit, you will receive a 402 error. Errors and refusals do not consume credit, which is a beneficial feature for testing. The rate limit is set at 300 requests per minute per key. Exceeding this limit will trigger a 429 error, temporarily blocking further requests until the window resets.
To maintain smooth operations, implement error handling in your application to catch these specific status codes. This allows you to inform users about rate limits or insufficient funds without crashing the application. Regularly rotating or regenerating keys can also enhance security, although the API does not specify key rotation policies.
Sending Requests and Handling Parameters
When sending a request to the chat completions endpoint, you must include the model ID 'uncensored' in the payload. The API supports several parameters to control the output, including temperature, top_p, stop sequences, and seed. These parameters allow you to fine-tune the creativity and determinism of the responses.
Temperature controls the randomness of the output. A higher value produces more creative but potentially less coherent text, while a lower value makes the output more focused and predictable. The top_p parameter adjusts the nucleus sampling, further refining the diversity of the generated text.
You can also specify stop sequences to halt generation at specific points. This is useful for controlling the length of the response or stopping at specific delimiters. The seed parameter allows for reproducible results, which is valuable for testing and debugging. Additionally, penalties can be applied to discourage certain tokens from appearing in the output.
Streaming is supported via Server-Sent Events (SSE), allowing you to receive usage information in the last chunk. This feature is ideal for real-time applications where immediate feedback is required. Ensure your client handles streaming responses correctly to provide a smooth user experience.
Context Window and Token Limits
The API has a context window of 100,000 tokens, which includes both the prompt and the completion. This large context window allows for extensive input data, making it suitable for applications that require processing long documents or maintaining long conversations. Developers should be aware that the total token count is the sum of input and output tokens.
Pricing is based on token usage, with input tokens costing $0.15 per million and output tokens costing $0.50 per million. Errors and refusals do not consume tokens, which helps in managing costs during development. It is important to monitor your token usage to avoid unexpected charges, especially when dealing with large inputs.
When designing your application, consider the maximum length of your prompts to stay within the context window. If your input exceeds the limit, the API may truncate the prompt or return an error. Implementing logic to check token counts before sending requests can prevent such issues.
Additionally, the API does not support fine-tuning, so you cannot train the model on your specific data. All requests use the same uncensored model. This simplifies the integration process but limits the ability to customize the model's behavior through training.
Funding Your Account with Crypto
Unlike many services that accept credit cards or PayPal, this API requires crypto payments for top-ups. You can fund your account using USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. This restriction ensures efficient processing of transactions and reduces fees.
Paying with crypto offers a bonus credit for amounts of $50 or more, ranging from 5% to 15%. This bonus can be a significant advantage for developers who need to test the API extensively. The prepaid credit never expires, allowing you to use it at your own pace.
To add funds, navigate to the top-up section of the platform and select your preferred cryptocurrency. Enter the amount you wish to deposit, ensuring it falls within the $20 to $500 range. The system will provide a wallet address for you to send the funds to.
Once the transaction is confirmed on the blockchain, the credit is added to your account. Errors in the transaction process are handled separately, and no credit is deducted for failed attempts. It is advisable to double-check the wallet address and network before sending funds to avoid loss.
When This API Is Not the Right Choice
While the API is powerful for text generation, it may not be the best fit for all projects. If your application requires image, audio, or video generation, this service is not suitable. The API focuses solely on text-in, text-out functionality, so you would need to integrate other services for multimedia needs.
Similarly, if you need embeddings for semantic search or fine-tuning for custom model behavior, this API does not support these features. Developers looking for a comprehensive AI solution that handles multiple modalities might find this service too limited.
Additionally, if you prefer traditional payment methods like credit cards or bank transfers, the crypto-only top-up process might be a barrier. The requirement to use USDT or USDC means you need a crypto wallet and some familiarity with blockchain transactions.
Finally, if you need strict SLA guarantees or certifications like SOC2 or HIPAA, this independent service may not meet those specific compliance needs. It is an uncensored model designed for flexibility rather than enterprise-grade reliability. Evaluate your project's requirements carefully before committing to this API.
Addressing Common Developer Questions
Discussions on Reddit often highlight questions about the best uncensored AI generators and chatbots. Users frequently ask how to choose between different platforms and what features to prioritize. Many developers are interested in tools that offer creative freedom without strict content filters, similar to what this API provides.
Another common topic is the comparison between local and cloud-based solutions. Some users prefer local models for privacy, while others opt for cloud APIs for scalability. This API offers a cloud-based solution that is easy to integrate, making it a strong option for those who want to avoid managing local hardware.
Developers also discuss the importance of context windows and token limits. With a 100,000 token context, this API stands out for its ability to handle large inputs. This is particularly useful for applications that involve processing long documents or maintaining long-term conversations.
Finally, users often ask about pricing and payment methods. The crypto-only payment structure is a unique feature that appeals to those who value privacy and decentralization. However, it may require some learning for those new to cryptocurrency. Understanding these trade-offs helps developers make informed decisions about their integration strategy.
Frequently asked questions
How do I authenticate my requests?
Include your API key in the Authorization header of each request. You receive the key immediately after signing up with Google or email.
What is the cost of using the API?
Input tokens cost $0.15 per million, and output tokens cost $0.50 per million. Errors and refusals are free.
Can I use credit cards to pay?
No, payments are crypto-only. You can use USDT on TRC20 or USDC on Base for top-ups between $20 and $500.
Does the API support image generation?
No, the API is text-only. It does not support image, audio, video, or embedding generation.