EN ▾
Get API key

Integrating Uncensored Text API: A Developer Checklist

Connecting a new language model API to your application requires more than just swapping an endpoint. You must account for token limits, streaming behavior, and specific error codes to ensure your app remains stable under load. This guide walks you through the technical steps to integrate our uncensored text API, ensuring your developers can build reliable, filter-free text generation features without unexpected interruptions.

Developer workspace showing code and chat interface with crypto symbols for uncensored AI API integration

Understanding the API Structure and Base URL

Before writing any code, you need to identify the correct base URL and model identifier for our service. The API follows a standard OpenAI-compatible structure, which means you can likely use existing SDKs with minimal configuration changes. The base URL for all requests is https://api.aiuncensoredinfo.com/v1. This is the foundation for all subsequent calls, if you are generating text, checking model status, or retrieving usage data.

The model you will interact with is identified by the string "uncensored". When constructing your API calls, you must explicitly set the model parameter to this value. This ensures that the request is routed to the correct uncensored open-weight text model. Unlike services that offer multiple model variants, our API serves a single text model, simplifying your configuration but requiring you to rely on this specific identifier for all operations.

It is important to note that this service focuses strictly on text-in, text-out capabilities. You will not find endpoints for image generation, audio processing, or video creation here. The API does not support embeddings, OCR, fine-tuning, or model routing. If your application requires those features, you will need to integrate additional services alongside this text API. For now, focus on the core text generation capabilities that this API provides.

When setting up your environment, ensure that your development tools are configured to point to this specific base URL. This prevents any confusion with other providers or local instances. The simplicity of having a single model and a clear base URL reduces the cognitive load during integration, allowing you to focus on how the text is generated and displayed in your application.

Authentication and Key Management

Authentication is handled via API keys, which you can obtain through Google sign-in or by creating an account with an email and password. Upon signup, your API key is displayed immediately, so you must copy it securely before leaving the screen. This key is your primary identifier for all requests to the API. It is important to store this key in your environment variables or secure configuration files, rather than hardcoding it in your source code.

The API uses standard HTTP headers for authentication. You will need to include your API key in the Authorization header of every request. If the key is missing or invalid, the API will return a 401 error. This indicates that you need to verify your key or generate a new one from your dashboard. Keeping your key secure is essential to prevent unauthorized usage of your prepaid credit.

Unlike many services that require monthly subscriptions or credit card on file, our API operates on a prepaid credit system. You do not need to provide payment details upfront to get started. Instead, you can use the trial credit to test your integration. This approach reduces the barrier to entry for developers who want to evaluate the API before committing to a purchase. However, you must manage your credit balance carefully, as service will stop if the balance reaches zero.

When rotating or regenerating keys, ensure that your application updates its configuration immediately. Stale keys will result in 401 errors, which can disrupt your application's functionality. Regularly auditing your API keys and removing unused ones is a good practice to maintain security and control over your account. This is especially important if you are managing multiple development environments or sharing keys among team members.

Configuring the Client for Streaming and JSON Mode

Our API supports streaming responses over Server-Sent Events (SSE), which allows you to receive tokens as they are generated. This is particularly useful for applications that display text in real-time, such as chat interfaces. When enabling streaming, the API sends usage information in the last chunk of the response. This means you can track token consumption as the stream concludes, rather than waiting for the entire response to finish.

In addition to streaming, the API supports JSON mode, which forces the model to output valid JSON structures. This is helpful when you need to extract structured data from the model's responses. You can also configure parameters such as temperature, top_p, stop sequences, and seed to control the creativity and determinism of the output. These parameters allow you to fine-tune the model's behavior to match your application's needs.

Function calling is another key feature that you can integrate into your workflow. By defining tools or functions in your request, you can instruct the model to call specific functions with provided arguments. This enables more complex interactions where the model can trigger actions in your application based on the conversation context. It is essential to validate the function calls on your end to ensure they are safe and correctly formatted.

When implementing streaming, handle the SSE events carefully to avoid memory leaks or incomplete responses. Ensure that your client can gracefully handle disconnections and resume the stream if necessary. This robustness is important for maintaining a smooth user experience, especially in network-unstable environments. By using these features, you can build a dynamic and responsive application that fully utilizes the capabilities of our uncensored API.

Handling Errors and Rate Limits

Understanding how the API handles errors is important for building a resilient application. The API returns specific HTTP status codes to indicate different types of failures. A 401 error means your API key is invalid, while a 402 error indicates that you have no remaining credit. A 429 error signals that you have exceeded the rate limit of 300 requests per minute per key. You must implement logic to handle these errors appropriately, such as retrying with exponential backoff or prompting the user to top up their credit.

Rate limits are enforced to ensure fair usage of the API. If you exceed the 300 requests per minute limit, your requests will be rejected until the window resets. It is important to monitor your request volume and adjust your application's behavior accordingly. You can also implement local rate limiting in your client to prevent overwhelming the API and to provide a better user experience.

Errors and refusals are free, which means you do not lose credit if a request fails or is refused due to content policy. However, the API has a hard content limit regarding sexual content involving minors. Requests containing such content will be refused, but you will not be charged for them. This policy ensures that the API remains suitable for a wide range of applications while maintaining a specific content standard.

When debugging, pay close attention to the error messages returned by the API. They often provide useful information about what went wrong. For example, a 402 error will tell you that you need to add more credit. A 429 error will indicate that you need to slow down your request rate. By handling these errors gracefully, you can ensure that your application continues to function smoothly even when issues arise.

Pricing, Credits, and Payment Methods

The pricing for our API is straightforward: $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. These rates are charged based on real token usage, and prepaid credit is deducted accordingly. Errors and refusals do not incur charges, which can help you manage your budget more effectively. The credit you purchase never expires, so you can use it at your own pace without worrying about expiration dates.

Top-ups can only be made using cryptocurrency. Specifically, you can pay with USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. If you top up $50 or more, you may receive bonus credit ranging from 5% to 15%. This incentive can help you get more value for your money. However, note that credit cards, PayPal, and bank transfers are not accepted, so you must have a crypto wallet to fund your account.

Every new account starts with $0.50 of trial credit, which allows you to test the API without any financial commitment. This trial credit is a great way to evaluate the model's performance and integration ease before making a purchase. If you need more credit, you can top up using your preferred cryptocurrency. The process is simple and straightforward, allowing you to focus on building your application.

When calculating your costs, remember that the prices are per million tokens. This means that for small requests, the cost will be very low. However, for large-scale applications, you should monitor your token usage closely to avoid unexpected charges. You can also set up alerts or dashboards to track your spending and ensure that you have enough credit to sustain your operations.

When This API Is Not the Right Choice

While our API is powerful for text generation, it may not be the best fit for every use case. If your application requires image generation, audio processing, or video creation, this API will not suffice. It is strictly a text-in, text-out service. You will need to integrate additional services to handle multimedia content. Similarly, if you need embeddings for vector search, OCR for document scanning, or fine-tuning for custom model training, you will need to look elsewhere.

The API also does not support model routing, meaning you cannot switch between different models dynamically. It serves a single uncensored open-weight text model. If your application requires access to multiple models with different capabilities, you may need a gateway service that offers model selection. Additionally, if you need an SLA guarantee, SOC2 certification, or on-prem deployment options, this hosted API may not meet your enterprise requirements.

Another consideration is the payment method. Since we only accept cryptocurrency for top-ups, users who prefer traditional payment methods like credit cards or PayPal may find the process less convenient. If your users are not familiar with crypto wallets, you might need to build a layer that handles crypto payments on their behalf. This could add complexity to your integration.

Finally, if you are looking for a free unlimited tier, this API is not the right choice. It operates on a prepaid credit system, and while the trial credit is generous for testing, ongoing usage requires payment. If your application has high volume and low budget, you might want to explore other options that offer free tiers or different pricing models. However, for developers who need reliable, uncensored text generation with flexible crypto payments, this API offers a solid solution.

Addressing Developer Questions from Reddit

Developers on Reddit often discuss the reliability and cost-effectiveness of uncensored LLM APIs. Many users ask whether they should pay for a reliable uncensored API compared to free alternatives. The consensus is that paid APIs offer better stability, faster response times, and fewer interruptions. Our API addresses this by offering a prepaid model with no monthly fees, allowing developers to pay only for what they use. This transparency helps developers budget their projects more accurately.

Another common topic is the ease of integration for new APIs. Developers building apps with different models often look for gateways that simplify key management and usage tracking. While our API does not offer multi-model routing, it provides a straightforward integration with a single model. This simplicity can be an advantage for developers who do not need to switch between models frequently. It reduces the complexity of managing multiple API keys and configurations.

Some users also discuss the specific features of uncensored APIs, such as the ability to handle controversial topics or roleplay scenarios. Our API is designed to be uncensored, allowing for a wider range of content without the strict filters found in other models. This is particularly useful for developers building chatbots, roleplay applications, or content creation tools. The ability to generate text without refusal on lawful adult topics is a key selling point for these use cases.

Finally, developers often compare different APIs based on their pricing and features. While some services offer complex pricing structures, our API keeps it simple with per-token billing. This makes it easy to estimate costs and manage budgets. By focusing on the core text generation capabilities and offering a straightforward payment model, our API appeals to developers who value simplicity and reliability. It is a solid choice for those who want to integrate uncensored text generation without the overhead of complex gateway services.

Frequently asked questions

How do I start using the uncensored API without a credit card?

You can sign up with Google or email and password to receive $0.50 of trial credit immediately. No credit card is required to start testing the API. This allows you to evaluate the model's performance before purchasing more credit.

What happens if I exceed the rate limit?

If you exceed 300 requests per minute per key, the API will return a 429 error. You will need to wait for the rate limit window to reset before making more requests. Implementing exponential backoff in your client can help manage this gracefully.

Can I use my own crypto wallet to top up?

Yes, you can top up using USDT on TRC20 or USDC on Base. The minimum amount is $20, and the maximum is $500. Bonus credit is available for top-ups of $50 or more. You do not need a credit card or PayPal account.

Does the API support streaming responses?

Yes, the API supports streaming over Server-Sent Events (SSE). This allows you to receive tokens as they are generated, which is ideal for chat interfaces. Usage information is provided in the last chunk of the stream.