EN ▾
Get API key

Uncensored Image API Cost Calculator: Text-Only Pricing Model

Developers building uncensored image workflows often struggle to budget for high-volume generation when most APIs charge per image. This guide explains how to estimate costs using our text-only API's token-based pricing by calculating the token count of complex prompts required to guide an external image model.

Holographic text prompt transforming into an uncensored anime character on a developer desk

Understanding the Text-Only Pricing Model

When building an application that generates uncensored images, you often need a reliable text API to craft detailed prompts, manage context, or handle post-processing. Our API provides a hosted, OpenAI-compatible chat-completions endpoint that serves a single uncensored open-weight text model. The model ID you send is simply uncensored. This text-in, text-out approach allows you to generate the precise textual instructions needed for your image model without dealing with the overhead of image generation itself.

The pricing structure is straightforward and based on token usage rather than per-image fees. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This means your costs are directly proportional to the complexity and length of your prompts and the responses you receive. Prepaid credit is charged by real token usage, and errors or refusals are free, which helps you manage your budget effectively.

One key feature is the large context window of 100,000 tokens. This allows you to send lengthy prompts or maintain long conversations without losing context, which is important for complex image generation tasks where detailed descriptions are necessary. The context window includes both the prompt and the completion together, giving you ample room for intricate instructions.

It is important to note that this service is text-only. We do not offer embeddings, image generation, audio or video processing, OCR, fine-tuning, or model routing. If you need image generation, you will need to pair our text API with an external image model. This separation allows you to choose the best image model for your needs while using our API for the textual guidance.

Estimating Tokens for Complex Prompts

To calculate your costs, you need to estimate the number of tokens in your prompts. A token is roughly equivalent to a word or a common word fragment. For complex uncensored image prompts, you might include detailed descriptions of characters, settings, lighting, and style. These prompts can be quite long, especially if you are using a model that requires specific formatting or detailed instructions.

Let's consider an example. If you send a prompt that is 1,000 tokens long, and the model responds with 500 tokens, you are using 1,500 tokens in total. To calculate the cost, you divide the total tokens by 1,000,000 and multiply by the respective rates. For the input, you would calculate (1,000 / 1,000,000) * $0.15, and for the output, (500 / 1,000,000) * $0.50. This gives you a clear picture of the cost per request.

For high-volume usage, you might send many such requests. If you send 100 requests per day with similar token counts, you can estimate your daily cost by multiplying the cost per request by 100. This helps you budget for your project and understand how costs scale with usage. Remember that the model does not refuse lawful adult, fictional, security-research, or controversial topics, which can affect the length and complexity of the responses you receive.

It is also worth noting that the model has a hard content limit regarding sexual content involving minors. Requests that violate this limit are refused, and these refusals are free, which can help you save on costs when testing prompts. By understanding how tokens are counted, you can optimize your prompts to balance detail and cost efficiency.

Optimizing Prompts for Cost Efficiency

Optimizing your prompts is key to managing costs. Since our API charges based on token usage, shorter prompts that still achieve the desired result will cost less. However, for uncensored image generation, you often need detailed prompts to get the best results. The challenge is to find the right balance between detail and token count.

One strategy is to use modular prompts. Instead of sending a single massive prompt, you can break it down into smaller parts. For example, you might generate a base description of the character, then add details about the setting, and finally specify the style. This approach can help you manage the context window and reduce the number of tokens needed for each request.

Another strategy is to use the model's parameters to control the output. You can adjust the temperature, top_p, and other parameters to influence the length and creativity of the response. For instance, a lower temperature might result in more concise responses, while a higher temperature might produce more varied and longer outputs. Experimenting with these parameters can help you find the optimal setting for your use case.

Additionally, you can use the stop parameter to limit the length of the output. By setting a stop sequence, you can ensure that the model stops generating after a certain point, which can help control the number of output tokens. This is particularly useful when you have a clear idea of how much detail you need in the response. By optimizing your prompts and parameters, you can reduce costs while maintaining the quality of your image generation workflow.

Integrating with External Image Models

Since our API is text-only, you will need to integrate it with an external image model to generate the actual images. This can be done by sending the text output from our API to the image model as input. The image model will then generate the image based on the text prompt.

When choosing an external image model, consider factors such as quality, speed, and cost. There are many options available, and the best choice depends on your specific needs. For example, some models are better at photorealism, while others excel at anime styles. You might also consider models that are optimized for uncensored content, as our API does not have the same content restrictions.

To integrate the two, you can use a simple script or application that calls our API to generate the prompt, then sends that prompt to the image model. This can be done in real-time or in batches, depending on your workflow. The key is to ensure that the text output from our API is formatted correctly for the image model.

It is also important to consider the latency and throughput of your integration. If you are generating images at a high volume, you might need to optimize your script to handle multiple requests concurrently. This can help you reduce the time it takes to generate images and improve the overall efficiency of your workflow. By combining our text API with a suitable image model, you can create a powerful uncensored image generation system.

When Our API Is Not the Right Choice

While our API is excellent for text-based prompt generation, it might not be the right choice for every use case. If you need a single API that handles both text and image generation, our text-only approach might add complexity to your workflow. In such cases, you might prefer an all-in-one solution that generates images directly from text prompts.

Another scenario where our API might not be ideal is if you need advanced features such as embeddings, fine-tuning, or model routing. Our API focuses on providing a reliable and uncensored text model with a large context window. If you need these additional features, you might need to look for a different provider that offers a more comprehensive set of tools.

Additionally, if you are looking for a service that includes image generation with built-in content filtering, our uncensored model might not fit your needs. Our model does not refuse lawful adult or controversial topics, which is great for creative freedom but might not be suitable for applications that require strict content moderation.

Finally, if you are on a tight budget and need a free tier or a very low-cost option, our prepaid credit model might not be the best fit. While we offer a trial credit of $0.50, you need to purchase credit in crypto to continue using the service. If you prefer a subscription model or a pay-as-you-go option with no upfront cost, you might want to explore other providers. Always evaluate your specific needs before choosing a service.

Addressing Common Developer Questions

Developers often ask about the best models for uncensored image generation and how to handle specific content types. Threads on r/StableDiffusion discuss various models like Chroma1-HD and SDXL, with users sharing their preferences for different styles. While our API does not generate images, it can provide the detailed prompts needed for these models.

Another common question is how to handle male body generation in uncensored images. Users on r/AIJailbreak have noted that some generators struggle with this, but our text API can help by generating precise prompts that specify the desired body type and features. This can improve the accuracy of the generated images.

Developers also ask about the ease of integration and the availability of tools. Our API supports streaming over SSE, function calling, and JSON mode, which can simplify integration into various applications. Additionally, we offer a signup process that is quick and easy, with trial credit available for new accounts.

Finally, users often inquire about the cost-effectiveness of using our API for high-volume generation. By calculating token usage and optimizing prompts, you can keep costs low while maintaining high quality. Our API is designed to be flexible and efficient, making it a good choice for developers who need a reliable text backend for their image generation workflows.

Getting Started with Your Account

To get started with our API, you need to sign up for an account. You can sign up using Google or by providing an email and password. Once you sign up, you will receive an API key immediately, which you can use to make requests. New accounts also receive $0.50 of trial credit, so you can test the API without needing to add payment information.

When you are ready to add more credit, you can top up using crypto. We accept USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. If you top up from $50, you may receive bonus credit, ranging from +5% to +15%. This can help you get more value for your money.

Once you have credit, you can start making requests. The base URL for our API is https://api.uncensoredimagegenerator.cc/v1. You can use the POST /v1/chat/completions endpoint to send prompts and receive responses. The API supports various parameters such as temperature, top_p, stop, and seed, allowing you to customize the output.

If you encounter any issues, you can refer to the error codes. A 401 error indicates an invalid key, a 402 error means you have no credit, and a 429 error indicates that you have hit the rate limit of 300 requests per minute. By following these steps, you can quickly start using our API for your uncensored image generation projects.

Frequently asked questions

How do I calculate the cost of a request?

Divide the input tokens by 1,000,000 and multiply by $0.15, then divide the output tokens by 1,000,000 and multiply by $0.50. Sum these values to get the total cost for the request.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for long and detailed prompts without losing context.

How do I pay for the API?

You can top up your account using crypto, specifically USDT on TRC20 or USDC on Base. The minimum amount is $20, and the maximum is $500.

Is there a free trial?

Yes, every new account gets $0.50 of trial credit, and no credit card is needed to sign up. This allows you to test the API before adding payment information.