EN ▾
Create key

Integrate Uncensored Text API: SDK Settings & Checklist

Switching from standard providers to an uncensored text endpoint requires careful configuration to maintain code stability while removing safety filters. This guide walks you through the specific SDK settings, token management, and integration checklist needed to deploy our OpenAI-compatible service effectively.

Developer workspace with laptop showing API code and crypto coin icon

Understanding the Uncensored Model and Endpoint

When integrating with our service, it is essential to understand that we host a single, uncensored open-weight text model. Unlike multi-model platforms, this service does not offer routing between different architectures. You must send the model ID uncensored in your requests to access the specific behavior you are looking for. This model is designed to handle lawful adult, fictional, security-research, or controversial topics without the typical refusal patterns found in other providers.

The API is strictly text-in, text-out. It does not support embeddings, image generation, audio, video, OCR, or fine-tuning. If your application requires these capabilities, you will need to integrate additional services alongside this text API. The base URL for all requests is https://api.aiuncensoredthe.com/v1. Keeping this URL constant ensures that your SDK configurations remain stable across updates.

Our model has a context window of 100,000 tokens, which includes both the prompt and the completion. This is significantly larger than many standard offerings, allowing for deep context retention. However, because the model is uncensored, it may generate longer responses or engage in more verbose conversations. You should monitor your token usage closely, as billing is based on actual token consumption rather than a flat rate.

When comparing this to other vendors, remember that we are an independent service. We do not claim to be an official partner of any major tech company. If you are migrating from a platform like OpenAI or Anthropic, check their documentation for current pricing and limits, as those figures change frequently. Our focus is on providing a reliable, uncensored text endpoint with transparent, prepaid billing.

SDK Configuration and Base URL Setup

To integrate our API, you need to update your SDK configuration to point to our base URL. For OpenAI-compatible SDKs, set the base URL to https://api.aiuncensoredthe.com/v1. This ensures that all requests are routed correctly to our uncensored endpoint. You do not need to change the model name to uncensored in every request if your SDK allows a default model setting, but it is good practice to specify it explicitly for clarity.

Authentication is handled via API keys. You can generate a key immediately after signing up with Google or an email and password. The key is shown right away, so save it securely. When making requests, include the key in the Authorization header. If you receive a 401 error, your key is invalid or missing. A 402 error indicates that you have no credit, and a 429 error means you have hit the rate limit of 300 requests per minute.

Our API supports standard parameters such as temperature, top_p, stop sequences, and seed. These allow you to control the randomness and reproducibility of the output. For example, setting a seed ensures that you get the same response for the same input, which is useful for debugging. The penalty parameters help in reducing repetition, which can be helpful when generating long texts.

Remember that we are an independent service, and our features are specific to this text-only API. We do not offer the full suite of tools that larger vendors might provide. If you need advanced features like function calling or JSON mode, our API supports them. However, always verify the current state of these features in our documentation, as they may evolve. Keep your SDK versions up to date to ensure compatibility with our endpoint.

Streaming and Real-Time Response Handling

Streaming is a critical feature for many applications, allowing you to display responses as they are generated. Our API supports streaming over Server-Sent Events (SSE). When you enable streaming, the usage information is included in the last chunk of the response. This means you can track token consumption in real-time, which is useful for monitoring costs and managing context windows.

To implement streaming, you need to configure your SDK to handle SSE streams. This involves setting up event listeners for the stream events. Each event contains a part of the response, which you can append to a buffer. Once the stream closes, you have the complete response. This method reduces the perceived latency for users, as they see text appear immediately rather than waiting for the entire response to generate.

When using streaming, be aware of the rate limits. You can make up to 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. To avoid this, you can implement exponential backoff in your application logic. This ensures that your application waits appropriately before retrying a failed request. It also helps in managing the load on our servers during peak usage times.

Streaming also allows for better error handling. If a connection drops, you can resume the stream from the last known point. This is particularly useful for long-running conversations or complex tasks. However, keep in mind that our API is text-only. If you need to stream images or audio, you will need to handle those separately. Always test your streaming implementation thoroughly to ensure it handles edge cases like network interruptions gracefully.

Function Calling and JSON Mode Integration

Function calling is a powerful feature that allows the model to generate structured data that can be executed by your application. Our API supports function calling, which means you can define tools and have the model decide which tool to use based on the input. This is essential for building agents that can interact with external systems, such as databases or APIs.

To use function calling, you need to define the functions in your request. Each function should have a name, description, and parameters. The model will return a JSON object indicating which function to call and what arguments to pass. You can then execute the function and feed the result back into the model for further processing. This loop allows for complex, multi-step interactions.

JSON mode is another useful feature that ensures the model outputs valid JSON. This is particularly helpful when you need to parse the response programmatically. By setting the JSON mode flag, you constrain the model to output only valid JSON, reducing the need for additional parsing logic. This can improve reliability and reduce errors in your application.

When integrating function calling, test your tools thoroughly. Ensure that the descriptions are clear and accurate, as the model relies on them to make decisions. Also, handle errors gracefully. If a function fails, provide feedback to the model so it can adjust its behavior. Remember that our API is uncensored, so the model may suggest unconventional tools or actions. Always validate the output before executing it in your production environment.

Payment Methods and Credit Management

Our API uses a prepaid credit system charged by real token usage. You can top up your account using crypto only. The accepted currencies are USDT on the TRC20 network or USDC on the Base network. You can add any whole amount between $20 and $500. This range allows for flexibility in managing your budget without requiring large upfront investments.

There is no monthly subscription or fee. You pay only for what you use. Errors and refusals are free, which means you are not charged for tokens that are not generated. This can be cost-effective if your application experiences high rates of rejection or error. Additionally, your paid credit never expires, so you can use it whenever you need it.

For new users, there is a trial offer. Every new account gets $0.50 of trial credit, and no credit card is needed to sign up. This allows you to test the API without any financial commitment. If you add $50 or more, you may receive bonus credit, ranging from 5% to 15%. This bonus is added to your account automatically upon top-up.

When managing your credit, keep an eye on your usage. You can check your balance and usage history in your dashboard. If you run out of credit, you will receive a 402 error. You can then top up your account using the accepted crypto methods. Remember that we do not accept cards, PayPal, or bank transfers. Stick to USDT or USDC for smooth transactions.

When Our API Is Not the Right Choice

While our uncensored text API is powerful, it may not be the right choice for every use case. If your application requires image, audio, or video generation, our API cannot handle those media types. You will need to integrate additional services for those capabilities. Similarly, if you need embeddings for vector search, our API does not provide that feature. You should look for a separate embedding service to complement our text API.

Our API is also text-only. If you need OCR to extract text from images, or if you require fine-tuning to customize the model for your specific domain, our service does not support these features. In these cases, you might need to use a more comprehensive platform that offers a wider range of tools. However, for pure text generation, our API is highly efficient and reliable.

Another consideration is the lack of an SLA or certification. We do not offer SLA percentages, SOC2, HIPAA, or ISO certifications. If your application requires strict compliance with these standards, our API might not meet your needs. Additionally, we do not have named customers or benchmark scores to reference. We are an independent service focused on providing uncensored text generation.

Finally, if you need on-prem deployment, our hosted service may not fit your infrastructure. We offer a cloud-based solution, which is convenient for most developers but may not suit those with strict data residency requirements. In such cases, you might prefer a model that can be downloaded and run locally. However, for most developers seeking an easy-to-integrate, uncensored text API, our service is an excellent option.

Reddit Community Insights and Common Questions

Users on Reddit often discuss the search for truly uncensored LLMs that are free from alignment-based filtering. Many developers are looking for models that can handle controversial topics without the typical safety layers imposed by major providers. Threads on r/LocalLLM highlight the desire for models that are genuinely unrestricted, often mentioning keywords like 'heretic' or 'abliterated' to find suitable options.

Another common theme is the dissatisfaction with the heavy moderation from big providers. Users feel that these providers censor challenging questions and discussions, leading to a less natural conversation experience. They appreciate the ability to reset context or start over to get more honest answers. Our API addresses this by offering a model that does not refuse lawful adult or controversial topics, providing a more open dialogue.

Some users also discuss the hardware requirements for running local models. With GPUs like the RTX 4070 Super or Apple M4, users balance performance with cost. Our API offloads this hardware burden, allowing users to access powerful uncensored models without investing in expensive hardware. This is particularly appealing for developers who want to focus on application logic rather than model optimization.

When comparing our service to local models, it is important to note that we are an independent service. We do not claim to be the best model in terms of benchmarks, but we offer a reliable, uncensored text endpoint. Users can check the documentation of other vendors for current prices and limits. Our focus is on providing a smooth integration experience with a straightforward, prepaid billing model.

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. Credits are added immediately after the transaction is confirmed.

Does the API support function calling?

Yes, our API supports function calling, allowing you to define tools and have the model generate structured data. You can also use JSON mode to ensure the output is valid JSON for easy parsing.

What happens if I run out of credit?

If you run out of credit, you will receive a 402 error. You can then top up your account using the accepted crypto methods. Errors and refusals are free, so you are not charged for tokens that are not generated.

Can I use this API for image generation?

No, our API is text-only. It does not support image, audio, or video generation. If you need those capabilities, you will need to integrate additional services alongside our text API.