Integrate Uncensored Image Generation via OpenAI-Compatible Text API
Developers often seek a way to add uncensored image capabilities to their apps without training new models. This guide explains how to use our hosted text API to create precise prompts that feed into any image generation backend. You will learn the integration steps, SDK configurations, and how to manage token costs effectively.

Understanding the Text-to-Prompt Workflow
Many developers want to generate images but prefer not to manage heavy model weights locally. The core idea here is to use a text API to write the prompt, then send that text to an image generator. Our service provides the text part. We host a single uncensored open-weight model that understands natural language and outputs structured text. This text becomes the prompt for your image backend.
The process starts with a user request. You send a message to our API endpoint at https://api.uncensoredimagegenerator.cc/v1. The model processes the request and returns a detailed description. This description includes visual elements, lighting, and style. You then take this output and send it to your image model, such as Stable Diffusion or Flux.
This separation of concerns allows you to keep your image generation flexible. You are not locked into one image model. If you want to switch from SDXL to Flux, you only change the image backend. The prompt generation logic remains the same because it comes from our text API. This makes updates easier and reduces technical debt.
Our API supports streaming over SSE. This means you can show the prompt to the user as it is being written. This improves the user experience significantly. Users can see the description forming in real-time. They can also stop the generation if they do like the direction. This feedback loop is important for creative applications.
Integration Steps and SDK Setup
Integrating our API is straightforward because it follows the OpenAI compatible format. You can use any standard SDK that works with OpenAI. The base URL for our service is https://api.uncensoredimagegenerator.cc/v1. You need to configure your SDK to point to this URL. Then, set your API key in the authorization header.
When you make a request, use the POST /v1/chat/completions endpoint. Set the model id to uncensored. This tells the API which model to use. The API accepts parameters like temperature, top_p, and stop sequences. You can adjust these to control the creativity and structure of the output.
For example, if you want a specific format, you can use the JSON mode. This ensures the output is valid JSON. You can then parse this JSON in your code to extract the prompt text. This is useful if your image backend expects a specific structure. It reduces parsing errors and makes the integration more reliable.
Remember to handle errors properly. The API returns standard HTTP status codes. A 401 error means your key is invalid. A 402 error means you have no credit left. A 429 error means you have hit the rate limit. Your code should check these codes and respond appropriately. This ensures a smooth experience for your users.
Managing Costs and Token Usage
Understanding costs is essential for any API integration. Our pricing is simple and transparent. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Credits are prepaid and charged based on real token usage. Errors and refusals do not cost anything.
To top up your account, you can use crypto. We accept USDT on TRC20 or USDC on Base. You can add any whole amount from $20 to $500. If you add $50 or more, you get bonus credit ranging from +5% to +15%. There are no monthly fees or subscriptions. Your credit never expires.
You can track your token usage in the last chunk of the streaming response. This allows you to monitor costs in real-time. You can set limits in your code to stop generation if the cost gets too high. This helps you stay within your budget.
New accounts start with $0.50 of trial credit. No credit card is needed to sign up. You can continue with Google or use an email and password. Your API key is shown immediately after signup. This makes it easy to test the integration without any financial commitment.
When This API Is Not the Right Choice
It is important to know when our API is not the right tool for your project. Our API only generates text. It does not create images, audio, or video. If you need end-to-end image generation in one call, this API is not for you. You will need to build the image generation step yourself.
Our API also does not support embeddings, OCR, or fine-tuning. If you need to search through a database of documents, you will need a different service. Similarly, if you need to extract text from images, you will need an OCR tool. Our service focuses solely on text generation.
Additionally, our API has a hard content limit. It refuses requests involving sexual content with minors. If your application requires handling such content, you may need a different model. Our model is uncensored for lawful adult topics, but it has this specific restriction.
Finally, if you need on-prem deployment or strict SLA guarantees, our hosted service might not fit. We do not offer SOC2 or HIPAA certifications. We are an independent service with no named customers or benchmark scores. If you need enterprise-grade guarantees, you should look for a provider that offers those features.
Addressing Common Developer Questions
Developers often ask about the best models for uncensored image generation. Threads on r/StableDiffusion discuss various finetunes like Chroma1-HD and SDXL. The consensus is that models like Chroma1-HD are excellent for anime and realistic styles. However, our API does not host these image models. We provide the text prompts that feed into them.
Another common question is about free options. Users on r/Grok look for uncensored generators that are free. While our API is not free, it offers a trial credit. You can test the integration without paying. For truly free options, users often look at local installs of ComfyUI.
Some developers ask about male body generation. Threads on r/AIJailbreak mention that some bots struggle with male anatomy. Our text API can generate detailed prompts for male bodies. You can then send these prompts to an image model that handles male anatomy well. This gives you more control over the final output.
Finally, users ask about unfiltered chatbots with image capabilities. Many commercial platforms have heavy filtering. Our API allows you to build your own unfiltered experience. You control the filtering logic. This flexibility is a key advantage for developers who want full control over their content.
Advanced Features and Parameters
Our API supports several advanced features that enhance the quality of the generated prompts. You can use function calling to structure the output. This is useful if you need specific fields in your prompt. You can define tools that the model can call to generate parts of the description.
You can also set a seed for reproducible results. This is useful for testing and debugging. If you get a prompt you like, you can use the same seed to generate similar prompts. This consistency is valuable for maintaining a specific style.
The API supports penalties for repetition. You can adjust the repetition penalty to avoid overly repetitive text. This is useful for generating diverse and creative prompts. You can also set stop sequences to end the generation at a specific point.
Streaming is supported over Server-Sent Events. This allows you to show the prompt as it is being written. You can also check the usage in the last chunk. This helps you monitor costs and performance. You can adjust the parameters dynamically based on the user's feedback.
Testing and Troubleshooting Checklist
Before deploying your integration, run a comprehensive checklist. First, verify that your API key is correct. A 401 error indicates an invalid key. Second, check your credit balance. A 402 error means you have no credit left. Third, monitor your rate limits. A 429 error means you have sent too many requests.
Test the streaming functionality. Ensure that the SSE connection is stable. Check that the usage data is returned in the last chunk. This is important for accurate cost tracking. If the usage data is missing, you might overcharge your users.
Test the error handling. Simulate various error conditions. Check that your code handles 401, 402, and 429 errors correctly. Also, test the case where the model refuses a request. Ensure that the refusal is handled gracefully and does not crash your app.
Finally, test the integration with your image backend. Send a prompt generated by our API to your image model. Verify that the image is generated correctly. Check that the prompt contains all the necessary details. This end-to-end test ensures that the entire pipeline works as expected.
Frequently asked questions
How do I get started with the API?
Sign up with Google or email to get an API key immediately. You receive $0.50 in trial credit with no card required. Use the key to make requests to the /v1/chat/completions endpoint.
What payment methods are accepted?
We accept only crypto payments. You can top up with USDT on TRC20 or USDC on Base. Minimum top-ups are $20, and amounts of $50 or more earn bonus credit.
Can I use this API for image generation?
The API generates text prompts, not images. You send the text output to an image model like Stable Diffusion or Flux to create the final image. It is a text-to-text service.
What happens if I run out of credit?
The API returns a 402 error if you have no credit. You can top up with crypto to restore access. Errors and refusals do not consume credit, so you only pay for successful generations.
More guides
- Uncensored AI App Creator: Build a Streaming Chat App
- Uncensored AI App Builder: Use a Hosted API Backend
- SillyTavern Auto Image Generation With a Text API
- Stable Diffusion API Cost Analysis: Optimizing Text Prompts
- Uncensored Image API Cost Calculator: Text-Only Pricing Model
- Troubleshooting Uncensored Image Prompts