Integrating Uncensored AI: SDK Setup & Checklist
Connecting a third-party client to an uncensored endpoint requires precise configuration of base URLs and authentication headers. This guide walks you through the essential steps to integrate our text-only API into your workflows, ensuring you can handle streaming responses and function calling correctly.

Understanding the Base URL and Endpoint Structure
Before writing any code, you must establish the correct base URL for your requests. Our API operates at https://api.uncensoredaiplatform.com/v1. This is the root address for all your HTTP calls. When you initialize your SDK or configure your client, point it to this specific domain. Do not attempt to route through other domains or subdomains, as the service is hosted exclusively on this platform. The structure follows standard OpenAI-compatible patterns, which means you can often reuse existing client configurations with minimal adjustment.
The endpoint for chat completions is POST /v1/chat/completions. This is the primary interface for sending text in and receiving text out. You will send your prompts, system instructions, and messages to this URL. The model identifier you must use in your payload is uncensored. This tells the server which uncensored open-weight model to invoke. If you use a different model ID, the request may fail or default to an unexpected behavior.
Another available endpoint is POST /v1/responses. This endpoint serves a similar purpose but may handle response formatting differently depending on your client library. For most standard integration scenarios, the chat completions endpoint is the standard choice. You can also query GET /v1/models to verify available models, though our service currently serves only this single uncensored text model. Keeping these endpoints distinct helps in debugging and routing your requests correctly.
Finally, ensure your client library supports the HTTP methods required. Both chat completions and responses require POST requests. The models endpoint requires a GET request. If your SDK defaults to GET for all operations, you may need to override the method. Correctly setting the base URL and method is the foundation of a stable integration. Without this, even correct API keys will result in connection errors.
API Key Configuration and Authentication
Authentication is handled via an API key passed in the request header. When you sign up using Google or an email and password, your key is displayed immediately. Store this key securely in your environment variables or secret manager. It is important to treat this key as a password. Do not commit it to public repositories or share it in plain text. The key is tied to your account’s prepaid credit and rate limits.
When making requests, include the key in the Authorization header. The standard format is Bearer YOUR_API_KEY. If the key is missing or invalid, the API returns a 401 error. This indicates that the key format is incorrect or the key has been revoked. If you see a 402 error, it means your account has no prepaid credit remaining. Since we do not offer subscriptions, you must top up to continue using the service.
Our top-up process accepts only cryptocurrency. You can deposit USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. There are no credit card or PayPal options. Once you top up, the credit is added to your account and never expires. Errors and refusals do not consume credit, so you can test freely without worrying about accidental charges.
Rate limits are enforced at 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. This is a hard limit to ensure service stability. If your application requires higher throughput, consider implementing exponential backoff in your retry logic. This prevents your application from flooding the server during peak usage. Proper key management and understanding these limits are essential for a smooth integration experience.
Handling Text-Only Responses and Context Windows
Our API is strictly text-in, text-out. You will not receive image, audio, video, or embedding outputs. If your application expects multimodal responses, you must handle the text output separately and perhaps pass it to another service for visualization. This text-only focus means your integration should be designed to process raw text streams. The model does not generate images or audio files directly. This simplifies the parsing logic but requires you to manage any visual or audio components externally.
The context window for this model is 100,000 tokens. This includes both the prompt and the completion. This is a substantial window that allows for long conversations or large document processing. However, you must manage your token usage carefully. The context window is shared between input and output. If your prompt is large, the available space for the response decreases. Monitor your token counts to avoid truncation.
When sending requests, include your messages in the standard format. You can use system messages to set the tone or instructions for the uncensored model. The model does not refuse lawful adult, fictional, security-research, or controversial topics. This makes it suitable for creative writing, role-playing, and research applications. However, there is a hard limit on sexual content involving minors. Requests containing such content will be refused. Ensure your input data complies with this rule to avoid unexpected refusals.
Since there is no fine-tuning or model routing, you always interact with the same uncensored model. This consistency is an advantage for developers who want predictable behavior. You do not need to switch models based on task complexity. The single model handles all text generation tasks. This reduces the complexity of your integration logic. You only need to configure one model ID and one set of parameters. This simplicity is beneficial for rapid prototyping and deployment.
Streaming Responses and Function Calling
For real-time applications, streaming is essential. Our API supports streaming over Server-Sent Events (SSE). When you enable streaming, the response is sent in chunks. The final chunk contains the usage data, including token counts. This allows you to display text to the user as it is generated, improving the perceived performance of your application. You must handle the SSE stream correctly to avoid blocking your main thread.
Function calling, also known as tool use, is supported. You can define tools in your request payload, and the model can return structured data to invoke these tools. This is useful for agentic workflows where the AI needs to interact with external APIs or databases. You must parse the tool calls from the response and execute them. The results are then passed back to the model for further processing. This enables complex, multi-step interactions.
JSON mode is also available. You can force the model to output valid JSON, which is useful for structured data extraction. This ensures that your parser receives well-formed data. You can also set parameters like temperature, top_p, stop sequences, and seed. These parameters allow you to control the creativity and determinism of the model. Adjusting these settings can help you fine-tune the output for specific use cases.
Penalties are available to discourage repetitive or undesirable tokens. You can set penalties for frequency and presence to improve the quality of the generated text. These settings are optional but can be valuable for refining the output. When implementing streaming and function calling, ensure your client library handles partial responses and errors gracefully. This ensures a reliable user experience even when the network is unstable.
Pricing, Credits, and Top-Up Process
Our pricing model is simple and transparent. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. There is no monthly subscription or fixed fee. You pay only for what you use. This pay-as-you-go model is ideal for developers who want to control costs precisely. You can estimate your costs by calculating the token usage of your prompts and responses. The formula is straightforward: tokens divided by 1,000,000 times the per-million price.
Prepaid credit is charged based on real token usage. Errors and refusals are free, meaning you do not pay for failed requests. This is a significant advantage for testing and debugging. You can experiment freely without worrying about incurring charges for unsuccessful calls. The prepaid credit never expires, so you can top up when convenient and use it over an extended period.
To add credit, you must use cryptocurrency. We accept USDT on the TRC20 network and USDC on the Base network. The top-up amount must be a whole number between $20 and $500. There are no partial top-ups or smaller amounts. This restriction simplifies the payment processing but requires you to plan your funding strategy. If you need a smaller amount, you may need to wait until you have enough funds for the minimum top-up.
Bonus credit is available for top-ups of $50 or more. The bonus ranges from 5% to 15%, depending on the amount. This incentivizes larger top-ups and provides more value for your money. Since there are no cards or PayPal options, ensure you have a crypto wallet ready. The top-up process is straightforward once you have the funds. Add the credit to your account, and it is immediately available for use.
When This API Is NOT the Right Choice
While our API is powerful for text generation, it may not be the right choice for every project. If your application requires image generation, audio synthesis, or video creation, this text-only API will not suffice. You would need to integrate additional services to handle multimodal outputs. Similarly, if you need embeddings for vector search, our API does not provide this feature. You must use a separate embedding service.
OCR and fine-tuning are also not supported. If you need to extract text from images or train a custom model on your data, this API cannot help. The model is fixed and uncensored, with no option for fine-tuning. This is a trade-off for simplicity and consistency. If you need a model that can be tailored to your specific domain, you may need a different provider.
Model routing is another limitation. We serve only one uncensored model. If you want to switch between different models based on task complexity or cost, this API does not support that. You are locked into this single model. For applications that require dynamic model selection, this lack of routing may be a drawback.
Finally, if you need an SLA guarantee or certifications like SOC2 or HIPAA, this service does not offer them. We are an independent service without these formal assurances. If your enterprise clients require these certifications, you may need to choose a different provider. Understanding these limitations helps you decide if this API fits your specific needs. It is best suited for developers who need a reliable, uncensored text model without the complexity of multimodal features.
Addressing Common Developer Questions from Reddit
Developers frequently ask about the best free uncensored AI platforms and how to integrate them with tools like Blackbox. On Reddit, users discuss the challenges of building uncensored platforms solo and the importance of positioning. One common question is how to handle character memory and smart responses in role-playing scenarios. Our API supports long context windows, which helps with memory, but you must manage the state in your application.
Another discussion point is the difference between text-only platforms and those with image generation. Users often complain about the inability to import images. Since our API is text-only, you cannot upload images directly. You must handle image processing separately. This is a key distinction to make when choosing a platform. If your users expect multimodal outputs, our text-only API may not meet their expectations.
Users also ask about the quality of the model compared to others. While benchmarks vary, the uncensored nature of the model allows for creative freedom. However, the lack of fine-tuning means the model may not be optimized for specific domains. Developers should test the model with their specific prompts to gauge quality. The community often shares tips on prompt engineering to get the best results.
Finally, there are questions about agentic workflows and linking APIs to tools like Blackbox. Our API supports function calling, which is essential for agentic tasks. You can define tools and have the model invoke them. This enables complex workflows where the AI interacts with external services. Developers should experiment with function calling to see how it fits their use case. The flexibility of the API allows for creative solutions to common integration challenges.
Frequently asked questions
How do I get an API key?
Sign up using Google or email and password. Your API key is displayed immediately after registration. Store it securely and include it in the Authorization header of your requests.
What happens if I run out of credit?
You will receive a 402 error. Since there is no subscription, you must top up using crypto. Top-ups are $20 to $500, and credit never expires. Errors and refusals are free.
Can I use this API for image generation?
No, this is a text-only API. You cannot generate images, audio, or video. You must handle multimodal outputs with separate services. The model outputs text only.
How do I handle streaming responses?
Enable streaming in your client library. The API sends responses over Server-Sent Events (SSE). The final chunk contains usage data. Handle partial responses to display text in real-time.