EN ▾

Uncensored LLM API for developers.

Get API key

Integrating the Uncensored Text API: A Step-by-Step Guide

Developers often seek reliable, uncensored text models that integrate easily with existing workflows. This guide walks you through connecting our API to your application, covering authentication, request structure, and error handling. We focus on practical steps to ensure your integration is reliable and efficient.

Server rack with glowing data streams representing API requests and responses

Understanding the API Endpoint Structure

The foundation of any integration begins with understanding the endpoint structure. Our API provides a hosted, OpenAI-compatible chat-completions interface. This means you can use familiar libraries and SDKs that are designed for OpenAI's format. The base URL for all requests is https://api.unrestrictedaimodels.cc/v1. This consistency allows developers to swap in our service without rewriting significant portions of their code.

When you send a request, you will primarily use the POST /v1/chat/completions endpoint. This endpoint handles the core task of sending text input and receiving text output. It supports a variety of parameters that allow you to customize the model's behavior. These include settings for temperature, top_p, stop sequences, and seeds. You can also enable function calling and JSON mode for more complex interactions.

Another important endpoint is POST /v1/responses, which offers an alternative way to interact with the model. This can be useful for specific use cases where you need a different response format or handling mechanism. Additionally, the GET /v1/models endpoint allows you to retrieve information about the available models. In this case, the model ID to send is simply uncensored. This ensures you are always connecting to the correct uncensored open-weight text model.

It is important to note that this API serves only text. There are no embeddings, image, audio, or video generation capabilities. There is no OCR, fine-tuning, or model routing. Keeping this scope in mind helps you design your application around the specific strengths of the service. By focusing on text-based interactions, you can build efficient and reliable integrations that use the model's core capabilities.

Authentication and Key Management

Authentication is the first step in any API integration. Our service uses API keys for authentication. When you sign up, you can continue with Google or use an email and password. The API key is shown immediately after signup, allowing you to start testing right away. This immediate access reduces friction and lets you begin integration without waiting for email confirmations or additional verification steps.

Keep your API key secure, as it grants access to your account and credit. The key is tied to your account and is used to authenticate each request. If you lose your key, you may need to generate a new one, depending on the platform's key management features. Always store your key in environment variables or a secure configuration file, rather than hardcoding it in your source code.

When making requests, include the API key in the Authorization header. This is standard practice for most OpenAI-compatible APIs. Ensure that the key is sent correctly with each request to avoid authentication errors. If you receive a 401 error, it indicates an invalid key. Check that the key is correct and has not been revoked or expired.

Our service does not require a subscription or monthly fee. You pay for usage based on token consumption. The key is the only credential needed to access the API. There are no additional login portals or complex authentication flows. This simplicity makes it easy to integrate the API into various environments, from local development to production servers.

Sending Requests and Handling Responses

Sending requests to the API involves formatting your input correctly. You need to specify the model ID as uncensored and include your messages in the request body. The messages should be formatted as a list of objects, each containing a role and content. This structure is standard for chat-completions APIs and is well-documented in most SDKs.

Once you send a request, the API returns a response containing the model's output. You can handle this response in various ways depending on your application's needs. For real-time interactions, you can use streaming over Server-Sent Events (SSE). This allows you to receive the model's output incrementally, providing a smoother user experience. The usage information is included in the last chunk of the stream.

If you prefer to receive the entire response at once, you can disable streaming. This is useful for batch processing or when you need to process the entire response before taking action. The response will contain the full text output, along with metadata such as the number of tokens used.

Always check the response status code to ensure the request was successful. A 200 status code indicates success, while other codes indicate errors. Common errors include 402 for no credit and 429 for rate limiting. Handle these errors gracefully in your application to provide a good user experience.

Managing Credit and Pricing

Understanding the pricing model is essential for budgeting your API usage. Our service charges $0.15 per 1M input tokens and $0.50 per 1M output tokens. This pricing is based on real token usage, and errors and refusals are free. There is no subscription or monthly fee, and paid credit never expires. This flexibility allows you to pay only for what you use.

To add credit, you can use crypto payments. The supported currencies are USDT on TRC20 or USDC on Base. You can top up with any whole amount from $20 to $500. There is also a bonus credit program for top-ups of $50 or more, ranging from +5% to +15%. This bonus can help you get more value from your purchases.

Keep in mind that you cannot pay with cards, PayPal, or bank transfers. All payments must be made using the specified cryptocurrencies. This is a key limitation to consider if your organization prefers traditional payment methods. However, for many developers, the ability to use crypto provides a convenient and fast way to fund their accounts.

New accounts receive $0.50 of trial credit, no card needed. This allows you to test the API without any financial commitment. Once the trial credit is exhausted, you will need to top up your account to continue using the service. The credit is charged by real token usage, so you only pay for the tokens you actually consume.

Rate Limits and Error Handling

Our API enforces a rate limit of 300 requests per minute per key. This limit helps ensure fair usage and prevents abuse. If you exceed this limit, you will receive a 429 error. It is important to implement retry logic in your application to handle these errors gracefully. You can use exponential backoff to wait before retrying the request.

Other common errors include 401 for invalid keys and 402 for no credit. Make sure to check your account balance regularly to avoid running out of credit unexpectedly. You can monitor your usage through the API responses, which include token counts. This helps you stay within your budget and avoid unexpected charges.

When handling errors, provide clear feedback to your users. If a request fails due to a rate limit, inform the user that the service is temporarily busy. If the error is due to invalid credentials, prompt the user to check their API key. Good error handling improves the user experience and reduces frustration.

It is also important to handle network errors and timeouts. These can occur due to various reasons, such as network congestion or server issues. Implementing retry logic with exponential backoff can help mitigate these issues and ensure that your application remains reliable.

When This API Is Not the Right Choice

While our API is excellent for uncensored text generation, it may not be the right choice for all use cases. If you need image, audio, or video generation, our service does not support these capabilities. Similarly, if you require embeddings, OCR, or fine-tuning, you will need to look elsewhere. Our API is focused on text-based interactions, so it is best suited for applications that rely on text input and output.

If you need model routing or the ability to switch between different models, our service does not offer this feature. You are limited to the single uncensored open-weight text model. This is a trade-off that some developers may find limiting if they need to experiment with different models or use specific models for different tasks.

Additionally, if you require an SLA with specific uptime guarantees, our service does not provide this. We do not claim SLA percentages, certifications, or on-prem deployment options. If these are critical for your business, you may need to consider other providers. However, for many developers, the lack of these features is not a dealbreaker, especially if they value the uncensored nature of the model.

Finally, if you need a free unlimited tier, our service is not the right choice. We offer a trial credit, but ongoing usage requires payment. If you are looking for a completely free option, you may need to explore other alternatives. However, for those willing to pay for uncensored text generation, our API offers a reliable and flexible solution.

Addressing Common Developer Questions

Developers often ask about the best uncensored models available, especially for local use or self-hosting. Threads on r/ollama discuss various models, with some users recommending specific versions like Qwen3.5. While we do not host local models, our API provides a similar uncensored experience without the need for local infrastructure. This can be appealing for developers who want to avoid the complexity of managing local models.

Another common question is whether there is an AI bot that can discuss topics like piracy or torrents without triggering guardrails. Users on r/ChatGPTPro have discussed this, noting that the act of discussing these topics can trigger restrictions. Our API is designed to be uncensored, allowing for more open discussions on controversial topics. This makes it a suitable choice for developers who want to build applications that can handle a wide range of topics.

Some users also ask about the best sites for uncensored AI. While there are many options, our API stands out for its simplicity and ease of integration. The immediate availability of API keys and the straightforward pricing model make it an attractive option for developers who want to get started quickly.

Finally, developers often inquire about the differences between various uncensored models. While we do not provide benchmark scores or compare our model to others, we offer a reliable and consistent experience. The model is designed to be uncensored, allowing for free-form text generation without the typical restrictions found in other models. This makes it a valuable tool for developers who need flexibility in their applications.

Frequently asked questions

How do I get an API key?

Sign up with Google or email and password. The API key is shown immediately after signup, allowing you to start using the service right away without additional verification steps.

What is the pricing for the API?

The API charges $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free, and there is no subscription or monthly fee.

Can I use credit cards for payment?

No, payments are crypto-only. You can top up with USDT on TRC20 or USDC on Base, with amounts ranging from $20 to $500.

What happens if I run out of credit?

You will receive a 402 error if you have no credit. You can top up your account with crypto to continue using the service. The credit never expires.