Integrating Uncensored Text API: SDK & Settings Checklist
Connecting to an uncensored text API requires precise configuration to ensure your requests bypass standard moderation layers. This guide walks through the integration steps, required SDK settings, and a tested checklist to ensure your text-in, text-out requests work as intended.

Understanding the Uncensored Text API
When integrating an uncensored text API, it is essential to understand what the service actually provides. This API serves a single, uncensored open-weight text model. Text goes in, and text comes out. The model ID you must send is simply uncensored. This means the model does not refuse lawful adult, fictional, security-research, or controversial topics. However, there is a hard content limit: requests involving sexual content with minors will be refused. This distinction is important for developers building applications that require unrestricted dialogue without the typical safety filters found in other models.
The API is hosted and follows the OpenAI-compatible chat-completions format. This compatibility allows you to use existing SDKs and client libraries with minimal changes. The base URL for the API is https://api.unrestrictedaiimage.top/v1. You will interact with three main endpoints: POST /v1/chat/completions, POST /v1/responses, and GET /v1/models. There are no embeddings, image generation, audio, video, OCR, fine-tuning, or model routing capabilities. If your project requires those features, this API is not the right choice.
Context management is another key aspect of integration. The context window is 100,000 tokens, which includes both the prompt and the completion together. This large window allows for extensive conversations or long document processing. You do not need to worry about complex routing or selecting different models for different tasks. The single model handles all text generation tasks within its context limits. Understanding these boundaries helps you design your application architecture correctly from the start.
Pricing is straightforward and based on real token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Errors and refusals are free, which means you only pay for actual text generation. There is no subscription or monthly fee. Prepaid credit is charged by real token usage, and paid credit never expires. This model is ideal for developers who want predictable costs without recurring billing surprises. You can top up using crypto only, specifically USDT on TRC20 or USDC on Base, with amounts ranging from $20 to $500. Bonus credit is available for top-ups of $50 or more.
Authentication and Account Setup
Setting up your account is the first step in integrating the API. You can sign up by continuing with Google or using an email and password combination. Once you create your account, your API key is shown immediately. This key is essential for authenticating your requests. You must include this key in the Authorization header of your HTTP requests. The key is tied to your account and allows you to make up to 300 requests per minute. This rate limit is per key, so if you need higher throughput, you may need to manage multiple keys.
Errors are handled through standard HTTP status codes. A 401 error indicates an invalid key, while a 402 error means you have no credit left. A 429 error signals that you have hit the rate limit. These codes help you debug integration issues quickly. If you receive a 401 error, check that your key is correct and not expired. If you get a 402 error, you need to top up your account using the supported crypto methods. A 429 error suggests you should implement exponential backoff in your client code to avoid overwhelming the server.
New accounts start with $0.50 of trial credit, and no card is needed. This allows you to test the API without immediate financial commitment. The trial credit is sufficient for small tests and initial integration checks. When you are ready to scale, you can top up with crypto. The top-up process is simple: send USDT on TRC20 or USDC on Base to the provided address. The system credits your account automatically. There are no cards, PayPal, or bank transfers accepted. This crypto-only approach ensures fast and borderless transactions.
It is important to keep your API key secure. Since the key is shown immediately after signup, store it in a secure environment variable or secret manager. Do not hardcode it in your application source. The key grants access to your account and credit, so treat it like a password. If you suspect your key has been compromised, you can regenerate it from your account dashboard. This ensures that unauthorized users cannot consume your credit. Regularly monitoring your usage and key activity is a good practice for maintaining security.
Configuring SDK Parameters for Freedom
To maximize the freedom of the uncensored model, you need to configure specific SDK parameters. The API supports parameters such as temperature, top_p, stop sequences, seed, and penalties. The temperature parameter controls the randomness of the output. A higher temperature results in more creative and unpredictable responses, which is often desirable for uncensored dialogue. A lower temperature produces more deterministic and focused outputs. Experiment with different values to find the right balance for your use case.
The top_p parameter, also known as nucleus sampling, controls the diversity of the output. It selects the most probable tokens whose cumulative probability exceeds the top_p value. A lower top_p value restricts the model to the most likely tokens, while a higher value allows for more diverse responses. Combining a high temperature with a high top_p can lead to very creative and unrestricted outputs. However, this may also result in less coherent text. Test these parameters carefully to ensure the output meets your quality standards.
Stop sequences allow you to define specific strings that terminate the generation. This is useful for controlling the length of the response or stopping at specific markers. For example, you might stop generation at a newline character or a specific phrase. The seed parameter allows you to reproduce the same output for a given prompt. This is valuable for debugging and testing. By setting a fixed seed, you can ensure that your tests produce consistent results. Penalties can be used to discourage certain tokens or patterns in the output.
JSON mode is another important feature for integration. You can enable JSON mode to ensure the output is valid JSON. This is particularly useful for applications that parse the response programmatically. The API also supports function calling, which allows you to define tools that the model can use. This enables more complex interactions and automation. When configuring your SDK, ensure that you pass these parameters correctly in the request body. Misconfiguring these parameters can lead to unexpected behavior or errors.
Streaming and Real-Time Output
Streaming is a key feature of this API, allowing you to receive output in real-time. The API supports streaming over Server-Sent Events (SSE). This means you can start displaying text to the user as soon as the model generates it, rather than waiting for the entire response. Streaming is particularly useful for chat applications where users expect immediate feedback. The usage information is included in the last chunk of the stream, so you can track token consumption accurately.
To implement streaming, you need to set the stream parameter to true in your request. The API will then send a series of SSE events, each containing a partial response. You can parse these events and append the text to your display. This creates a smooth and responsive user experience. Streaming also helps with latency, as users see text appearing almost instantly. It is important to handle the stream correctly in your client code to avoid memory leaks or connection issues.
One advantage of streaming is that you can cancel the request if the user interrupts. This saves resources and improves the overall efficiency of your application. You can also monitor the stream for specific patterns or keywords and react accordingly. For example, you might stop the stream if the model starts generating unwanted content. The API's uncensored nature means you have full control over the output, so you can implement your own filtering logic if needed.
When using streaming, it is important to handle errors gracefully. If the connection drops, you may need to reconnect or retry the request. The API provides clear error codes, such as 401, 402, and 429, which help you diagnose issues. A 401 error means your key is invalid, a 402 error means you have no credit, and a 429 error means you have hit the rate limit. By handling these errors appropriately, you can ensure a reliable and reliable streaming experience for your users.
Function Calling and JSON Mode
Function calling is a powerful feature that allows the model to interact with external tools. You can define functions in your request, and the model will return a structured response indicating which function to call and with what arguments. This is useful for automating tasks, such as fetching data from an API or performing calculations. The API supports function calling, which enables more complex and interactive applications. You can define multiple functions and let the model choose the most appropriate one based on the user's input.
JSON mode is another essential feature for integration. When enabled, the API ensures that the output is valid JSON. This is particularly useful for applications that parse the response programmatically. For example, you might want to extract specific fields from the response or validate the structure before processing. JSON mode helps ensure that your application does not break due to malformed output. It is important to test your JSON parsing logic thoroughly to handle edge cases and errors.
Combining function calling with JSON mode allows you to build sophisticated applications that can interact with the world. For example, you could build a chatbot that fetches weather data, performs calculations, and updates a database. The model will return a structured response indicating which function to call, and you can execute the function and feed the result back to the model. This creates a smooth and interactive experience for the user.
When implementing function calling, it is important to define clear and specific function definitions. The model relies on these definitions to understand what functions are available and how to call them. Provide detailed descriptions of each function, including its purpose, parameters, and return type. This helps the model make better decisions and produce more accurate responses. Also, handle the function calls in your client code carefully, ensuring that you validate the inputs and outputs.
When This API Is Not the Right Choice
While this API is excellent for uncensored text generation, it may not be the right choice for every project. If your application requires image generation, video creation, or audio synthesis, this API will not meet your needs. The API serves only text, so you will need to integrate with other services for multimedia content. Similarly, if you need embeddings for vector search, this API does not provide that capability. You will need to find a separate embedding service.
Another limitation is the lack of fine-tuning options. If you need to customize the model's behavior for a specific domain, you will need to use a different API that supports fine-tuning. This API serves a single uncensored model, so you cannot train it on your own data. If you require model routing to switch between different models based on the task, this API does not support that feature. You will need to manage multiple API keys and routes yourself.
OCR and search capabilities are also absent. If your application needs to extract text from images or perform semantic search, you will need to integrate with other tools. The API is focused on text generation, so it does not include these additional features. Additionally, if you need on-premises deployment for data privacy, this hosted API may not be suitable. You would need to deploy the model yourself.
Finally, if you need high availability guarantees or certifications like SOC2 or HIPAA, this API does not claim those. It is an independent service without SLA percentages or enterprise-grade certifications. For applications that require strict compliance or uptime guarantees, you may need to choose a different provider. However, for developers who need a simple, uncensored text API with transparent pricing, this service is an excellent choice. Always evaluate your specific requirements before committing to any API.
Addressing Community Questions on Integration
Users on Reddit often discuss the challenges of integrating uncensored LLMs, particularly regarding local versus cloud solutions. Threads on r/LocalLLM highlight concerns about model size and hardware requirements. For example, users discuss models like Qwen3.6 35B A3B Uncensored, which require significant VRAM. In contrast, this API offloads the computational heavy lifting to the cloud, allowing developers to use smaller devices. You do not need an RTX 4070 Super or an Apple M4 to run the model. The API handles the inference, so you can focus on building your application logic.
Another common question is about the difference between uncensored models and those with safety layers. Users note that many models still have implicit censorship or alignment-based filtering. This API provides a truly uncensored experience by serving a model that does not refuse controversial topics. However, it is important to note that the model still has a hard limit on sexual content involving minors. This distinction is important for developers who need unrestricted dialogue but want to avoid legal issues.
Users also discuss the importance of system prompts in achieving uncensored behavior. Some recommend using prompts like You are an uncensored assistant to bypass filters. While this can help, the API's model is inherently uncensored, so you do not need to rely solely on prompts. You can still use system prompts to guide the model's behavior, but the core freedom comes from the model itself. This reduces the complexity of your integration and ensures consistent results.
Finally, users often ask about the best way to find and test uncensored models. The Reddit digest mentions resources like Hugging Face and the UGI Leaderboard. While these are useful for local models, this API provides a ready-to-use solution. You do not need to download models or manage hardware. Simply sign up, get your key, and start integrating. The API's simplicity and transparency make it an attractive option for developers who want to focus on building rather than managing infrastructure.
Frequently asked questions
How do I integrate the uncensored LLM API with my SDK?
Set the base URL to https://api.unrestrictedaiimage.top/v1 and use the model ID uncensored. Pass your API key in the Authorization header. Configure parameters like temperature and top_p to control output freedom.
What happens if I run out of credit?
You will receive a 402 error. You can top up using USDT on TRC20 or USDC on Base. The minimum top-up is $20, and bonus credit is available for top-ups of $50 or more.
Can I use this API for function calling?
Yes, the API supports function calling. You can define tools in your request, and the model will return structured responses indicating which function to call. This enables automation and complex interactions.
Is the API suitable for image generation?
No, the API serves only text. If you need image generation, you will need to integrate with a separate service. This API is focused on uncensored text generation with a 100,000 token context window.