Integrating the Uncensored Image API: A Developer Checklist
Many developers seek reliable text generation for applications requiring unfiltered content. This guide outlines the essential steps for integrating our API, ensuring you handle keys, limits, and payloads correctly. We focus on practical implementation details that matter for production systems.

Understanding the API Scope and Endpoints
Before integrating, it is important to understand that our API serves a single uncensored open-weight text model. The model identifier you must send is uncensored. This is a text-in, text-out service. You will not find embeddings, image generation, audio processing, or video capabilities here. There is no OCR, fine-tuning, or model routing available. The base URL for all requests is https://api.uncensoredimage.top/v1.
The primary endpoints you will interact with are POST /v1/chat/completions for generating text and POST /v1/responses for response formats. You can also use GET /v1/models to verify available models. Keep in mind that this is a hosted service, so you do not need to manage server infrastructure for the model itself. All processing happens on our servers.
When designing your application, ensure your client library supports the OpenAI-compatible format. This allows you to use familiar SDKs if you are already familiar with OpenAI's structure. However, remember that the underlying model is distinct. You are interacting with a specific uncensored model, not a generic placeholder. This distinction affects how the model responds to prompts and handles context.
Always verify the model ID in your requests. Sending the wrong model ID or trying to access non-existent features like embeddings will result in errors. The API is designed to be straightforward: you send a prompt, and you receive a text response. There are no complex routing rules or multiple model versions to choose from. This simplicity reduces the cognitive load during integration.
Authentication and Key Management
Authentication is handled via API keys. You can sign up using Google or an email and password combination. Upon signup, your API key is shown immediately. It is essential to store this key securely in your environment variables or secret manager. Never expose your key in client-side code or public repositories. The key is tied to your account and controls your access to the service.
If you receive a 401 error, it indicates an invalid key. This could mean the key is incorrect, expired, or not properly formatted. Double-check the key string for any typos or extra spaces. If the issue persists, regenerate the key from your dashboard. A valid key is required for all requests, including those that might fail due to other reasons like rate limits.
Keep your keys separate from your application logic. Use a .env file or a similar mechanism to load the key at runtime. This practice prevents accidental leakage and makes it easier to rotate keys if necessary. Since there is no subscription model, your access is tied to the key and the credit balance associated with it.
Remember that the key is your primary identifier. There are no user accounts with complex permissions or roles. The key grants full access to the endpoints defined in the API. Treat it like a password. If you suspect it has been compromised, generate a new one immediately. The simplicity of the key system means that security relies entirely on your handling of the key.
Handling Rate Limits and Errors
Our API enforces a limit of 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. This limit is per key, so if you have multiple keys, each has its own limit. It is important to implement retry logic with exponential backoff in your application. This prevents overwhelming the API during peak usage and helps you recover gracefully from temporary spikes.
Other common errors include 402, which indicates no credit is available. Since the service is prepaid, you must ensure your account has sufficient funds. Errors and refusals are free, so a 402 error means you have exhausted your prepaid credit. You will need to top up before you can make further requests. This model ensures that you only pay for actual usage.
When implementing error handling, distinguish between transient errors and permanent ones. A 429 error is transient and can be resolved by waiting. A 401 error is permanent until the key is corrected. A 402 error requires a top-up. Your application should log these errors and alert the user or admin appropriately. This helps in diagnosing issues quickly.
Do not assume that a 429 error means the API is down. It simply means you have hit the rate limit. Implementing a queue or a delay mechanism can help manage this. For example, if you are processing a large batch of prompts, space them out to stay within the 300 requests per minute limit. This ensures a smooth user experience without hitting the cap frequently.
Payment Methods and Credit Management
Payments are accepted via cryptocurrency only. You can top up using USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. Any whole amount within this range is accepted. This crypto-only approach eliminates the need for card processing fees and bank transfers, making the process faster and more direct.
You can also receive bonus credit when you top up. If you top up $50 or more, you may receive a bonus ranging from +5% to +15%. This bonus is added to your account and can be used for future requests. The bonus credit never expires, just like the prepaid credit. This is a significant benefit for users who plan to use the API extensively.
There are no monthly fees or subscriptions. You pay only for the tokens you use. The pricing is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Errors and refusals are free, so you are not charged for failed requests. This pay-as-you-go model is ideal for developers who want to control their costs precisely.
New accounts receive $0.50 of trial credit, with no card required. This allows you to test the API without any financial commitment. The trial credit is sufficient for a small number of requests, giving you a taste of the service. You can use this to verify your integration before making a larger top-up. The trial credit is also non-expiring, so you can use it at your own pace.
Payload Formatting and Parameters
The API supports streaming over Server-Sent Events (SSE). This allows you to receive tokens as they are generated, providing a better user experience for real-time applications. The usage information is included in the last chunk of the stream. This is useful for tracking token consumption in real-time. You can parse the stream to update your UI as the model generates text.
You can also use function calling with tools. This allows the model to call specific functions based on the prompt. This is useful for building agents or applications that need to interact with external systems. The API supports JSON mode, which ensures the output is valid JSON. This is essential for integrating with other systems that expect structured data.
Several parameters are available to control the model's behavior. You can set the temperature for randomness, top_p for nucleus sampling, and stop sequences to halt generation. The seed parameter allows you to reproduce results. Penalties can be applied to discourage certain tokens. These parameters give you fine-grained control over the output quality and style.
When formatting your payload, ensure that the model ID is set to uncensored. The context window is 100,000 tokens, which includes both the prompt and the completion. This is a large context window, allowing for complex prompts and long responses. However, be mindful of the token count to stay within your budget. Use the parameters to optimize the output for your specific use case.
When This API Is Not the Right Choice
While our API is powerful for text generation, it is not the right choice for every project. If you need image generation, audio processing, or video creation, this API will not meet your needs. It is a text-only service. Do not expect to generate images or transcribe audio using this endpoint. If your application requires multimodal capabilities, you should look for a different solution.
Similarly, if you need embeddings for vector search, this API does not provide that feature. The model outputs text, not vectors. If your use case involves semantic search or recommendation engines that rely on embeddings, you will need to integrate a separate embedding service. The simplicity of our API means it focuses on text generation, not a full suite of AI tools.
If you require fine-tuning of the model to fit your specific domain, this API does not support that. You cannot train the model on your data. You can only prompt it. If you need a model that has been trained on your specific dataset, you should consider a provider that offers fine-tuning services. Our model is a general-purpose uncensored model, not a custom-tuned one.
Finally, if you need a service with a strict SLA or certifications like SOC2 or HIPAA, this may not be the best fit. We do not claim specific SLA percentages or certifications. If your application requires high availability guarantees or compliance with specific regulations, you should verify these requirements with your legal team and choose a provider that meets those standards. Our API is designed for flexibility and uncensored output, not for enterprise-grade compliance.
Addressing Community Questions and Use Cases
Developers often ask about the best uncensored models for specific tasks. In discussions on Reddit, users frequently compare different models for generating realistic or anime-style content. For example, threads on r/StableDiffusion often discuss models like Chroma1-HD for photorealism. While our API is text-based, the principles of prompt engineering apply. Users want to know how to get the best results from an uncensored model.
Another common question is about handling graphic content. Users on r/teenagers have discussed the presence of heavily graphic uncensored images and the moderation responses. This highlights the importance of understanding what 'uncensored' means. Our model does not refuse lawful adult or controversial topics. However, it does have a hard limit on sexual content involving minors. Requests violating this are refused. This is a key distinction for developers building applications for different age groups.
Users also inquire about the difference between uncensored models and standard ones. In r/StableDiffusion, users note that many modern models focus on realism. Our model is designed to be less restrictive, allowing for a wider range of creative outputs. This is particularly useful for developers building chatbots or content generators that need to handle diverse topics without excessive filtering.
Finally, users often ask about the technical aspects of integration. Questions about SDK settings and error handling are common. By following this checklist, you can ensure a smooth integration. The key is to understand the limitations and capabilities of the API. It is a text-only, uncensored model with a large context window. Use it for what it is best at, and look elsewhere for other features. This approach ensures you get the most value from the service.
Frequently asked questions
How do I top up my account?
You can top up using USDT on TRC20 or USDC on Base. The minimum amount is $20 and the maximum is $500. Credits are added immediately upon confirmation.
What happens if I run out of credit?
You will receive a 402 error. Errors and refusals are free, but you cannot generate new text until you top up. Your trial credit never expires, and paid credit also never expires.
Can I use this API for image generation?
No, this API is text-only. It serves a single uncensored text model. If you need images, you should look for a provider that specializes in image generation.
Is there a rate limit?
Yes, the limit is 300 requests per minute per key. If you exceed this, you will get a 429 error. Implement retry logic with backoff to handle this gracefully.