Integrating Uncensored APIs with Agents
Developers often ask how to link uncensored AI endpoints to agentic frameworks such as Blackbox or custom scripts. This guide provides a tested checklist for configuring SDK settings, handling authentication, and ensuring smooth text-in/text-out communication with third-party agents.

Understanding the Agent Connection
Agentic workflows rely on consistent, low-latency text outputs to function correctly. When integrating an uncensored API, the primary goal is to ensure that the agent receives raw text without unwanted safety filters interfering with the logic. Our API serves a single uncensored open-weight model, which means the agent receives direct text responses without the typical refusal layers found in other models. This makes it ideal for agents that need to process sensitive or controversial topics without interruption.
The base URL for these interactions is https://api.llmsuncensored.com/v1. Agents typically use standard HTTP clients to send POST requests to /v1/chat/completions. This endpoint accepts text input and returns text output, making it compatible with most modern agent frameworks. The simplicity of the text-in, text-out model reduces the complexity of parsing responses, allowing your agent to focus on decision-making rather than error handling.
It is important to note that this service does not support embeddings, image generation, or audio processing. If your agent requires multimodal inputs, you will need to handle those separately. The uncensored API is strictly for text generation. This limitation is not a drawback for text-heavy agentic tasks, such as code generation, creative writing, or data extraction, where the focus is purely on linguistic output.
When connecting to an agent, you must ensure that the model ID sent is exactly "uncensored". This ensures that the agent is talking to the correct model variant. The API is hosted and managed independently, so you do not need to worry about versioning issues that often plague larger platforms. The endpoint remains stable, allowing your agent to run continuously without unexpected model swaps.
Configuring SDK and Authentication
Authentication is handled via API keys, which are displayed immediately upon signup. You can sign up using Google or an email and password combination. Once registered, the key is shown right away, allowing you to configure your SDK instantly. This key must be included in the authorization header of your HTTP requests. Without a valid key, the API will return a 401 error, indicating an invalid key or missing authentication.
The SDK configuration should include the base URL https://api.llmsuncensored.com/v1 and the API key. Most modern SDKs support environment variables for storing keys securely. This is recommended for agentic workflows, where the agent might run in a container or a serverless function. Storing the key in environment variables prevents it from being hardcoded in your source code, reducing the risk of accidental exposure.
It is important to handle authentication errors gracefully. If your agent encounters a 401 error, it should retry the request or alert the user. A 402 error indicates that there is no credit available, while a 429 error signals that the rate limit has been exceeded. These errors are common in agentic loops, so your agent should be designed to back off and retry after a short delay.
The API supports streaming over Server-Sent Events (SSE), which can be useful for agents that need to process text in real-time. The usage information is included in the last chunk of the stream. This allows your agent to monitor token consumption without making additional requests. Streaming is particularly useful for long responses, as it reduces the perceived latency for the user.
Handling Streaming and Function Calling
Streaming is a key feature for agentic workflows, as it allows the agent to start processing text before the entire response is generated. Our API supports streaming over SSE, which is a standard protocol for real-time data updates. When using streaming, the agent receives chunks of text as they are generated. This is particularly useful for tasks that require immediate feedback, such as chat interfaces or real-time data analysis.
Function calling is another important feature for agents. The API supports tools, which allow the agent to call specific functions based on the input. This is useful for agents that need to interact with external systems, such as databases or APIs. The function calling feature is compatible with the standard OpenAI format, making it easy to integrate with existing agent frameworks.
When using function calling, the agent sends a request with the function definitions. The API returns the function call details, which the agent can then execute. This process is repeated until the agent has all the information it needs. The uncensored nature of the model means that the agent can call functions without being restricted by safety filters, allowing for more flexible and powerful workflows.
JSON mode is also available, which forces the API to return valid JSON. This is useful for agents that need to parse the response automatically. The JSON mode ensures that the response is well-formed, reducing the need for error handling in the agent code. This feature is particularly useful for data extraction tasks, where the agent needs to extract specific fields from the response.
Managing Credits and Payments
The API uses a prepaid credit system, which is charged based on real token usage. Errors and refusals are free, which is beneficial for agents that might encounter frequent errors. The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. This pricing model is straightforward and easy to calculate, allowing you to estimate the cost of your agentic workflows accurately.
Top-ups are accepted via crypto only, specifically USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. There is also a bonus credit system for top-ups of $50 or more, ranging from +5% to +15%. This bonus credit can help reduce the cost of your agentic workflows, especially if you are running high-volume tasks.
There is no subscription or monthly fee, and paid credit never expires. This is advantageous for agents that may have sporadic usage patterns. You can top up when needed and use the credit over time without worrying about expiration. The trial credit of $0.50 is also available for new accounts, allowing you to test the API without any initial investment.
When integrating with an agent, it is important to monitor your credit balance. If the credit runs out, the API will return a 402 error. Your agent should be designed to handle this error by alerting the user or initiating a top-up process. This ensures that your agentic workflow continues to run smoothly without unexpected interruptions.
Rate Limits and Error Handling
The API has a rate limit of 300 requests per minute per key. This is a generous limit for most agentic workflows, but it is important to be aware of it if you are running multiple agents or high-volume tasks. If you exceed the rate limit, the API will return a 429 error. Your agent should be designed to back off and retry after a short delay.
It is also important to handle other errors gracefully. A 401 error indicates an invalid key, while a 402 error indicates no credit. These errors can occur for various reasons, such as network issues or configuration errors. Your agent should be designed to retry these errors a few times before giving up.
The uncensored nature of the model means that the API may refuse requests that involve sexual content involving minors. This is a hard limit that cannot be bypassed. If your agent sends a request that triggers this limit, the API will return a refusal. Your agent should be designed to handle these refusals and adjust its input accordingly.
When troubleshooting rate limits, it is useful to monitor the number of requests your agent is making. If you are consistently hitting the rate limit, you may need to optimize your agent's logic or reduce the number of concurrent requests. This can help ensure that your agentic workflow runs smoothly without hitting the rate limit.
When This API Is Not the Right Choice
While our API is excellent for text-based agentic workflows, it may not be the right choice for all use cases. If your agent requires multimodal inputs, such as images or audio, this API will not suffice. The uncensored API is strictly for text generation, so you will need to handle multimodal inputs separately.
Similarly, if your agent requires embeddings for semantic search or clustering, this API does not support embeddings. You will need to use a different service for embeddings and then use the uncensored API for text generation. This separation of concerns can be beneficial, as it allows you to choose the best tool for each task.
Another limitation is the lack of fine-tuning capabilities. If your agent requires a model that has been fine-tuned for a specific task, this API may not be the best option. The uncensored API serves a single open-weight model, which is not fine-tuned for specific tasks. However, this can be an advantage if you want to use the model for a variety of tasks without being locked into a specific fine-tuned version.
Finally, if you require a service with a specific SLA or certification, such as SOC2 or HIPAA, this API may not meet your needs. The service does not claim these certifications, so you should verify if this is a requirement for your agentic workflow. For most developers and indie builders, the uncensored API provides a reliable and flexible solution for text-based tasks.
Addressing Community Questions on Integration
Users on Reddit often ask how to link uncensored AI APIs to agentic frameworks like Blackbox. The general consensus is that it is possible to get it working smoothly, but it requires careful configuration of the SDK settings. People discuss the importance of handling authentication and ensuring that the text-in/text-out communication is smooth. The key is to use the correct model ID and handle errors gracefully.
Another common question is whether it is worth paying for a reliable uncensored API. The general opinion is that it is worth it for developers who need more control over model behavior. The uncensored API offers a straightforward pricing model and a generous rate limit, making it a good choice for agentic workflows.
Users also ask about the best way to handle streaming and function calling. The general advice is to use the SSE streaming feature for real-time updates and the function calling feature for interacting with external systems. This allows the agent to process text efficiently and make decisions based on the output.
Finally, users discuss the importance of monitoring credit usage. Since the API uses a prepaid credit system, it is important to keep track of your balance to avoid unexpected interruptions. The bonus credit system for top-ups of $50 or more is also a popular topic, as it helps reduce the cost of high-volume tasks. Overall, the community finds the uncensored API to be a reliable and flexible solution for agentic workflows.
Frequently asked questions
How do I connect the uncensored API to Blackbox?
Configure your SDK with the base URL https://api.llmsuncensored.com/v1 and your API key. Ensure you send the model ID "uncensored" in your requests. Use the POST /v1/chat/completions endpoint for text-in/text-out communication.
What happens if I run out of credit?
The API will return a 402 error. You can top up using USDT on TRC20 or USDC on Base. Top-ups range from $20 to $500, with bonus credit available for amounts of $50 or more.
Does the API support function calling?
Yes, the API supports function calling (tools) in the standard OpenAI format. This allows your agent to call specific functions based on the input, which is useful for interacting with external systems.
Is there a rate limit for requests?
Yes, the limit is 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. Your agent should be designed to back off and retry after a short delay.