EN ▾
Get API key

Budgeting Text-to-Image API Costs with Unrestricted

Developers often struggle to predict monthly spend for high-volume image generation without surprise bills. This guide teaches a step-by-step method to estimate token usage and calculate exact costs using our text API pricing model.

Developer workspace with monitor showing text-to-image API interface and code

Understanding the Text API Role in Image Generation

When building a text-to-image application, you typically need a language model to refine prompts before sending them to an image generator. Our API provides an uncensored text model that serves as the reasoning engine for your workflow. You send text in and receive text out, which can then be passed to an image generation endpoint. This separation allows you to control the quality of the prompt before it consumes image generation credits.

The base URL for our API is https://api.unrestrictedimagegenerator.com/v1. You interact with it via standard endpoints like POST /v1/chat/completions. This means you can use existing OpenAI-compatible SDKs to integrate our text model into your pipeline. The model ID you must send is "uncensored" to access the specific model we host.

It is important to note that our service is an independent text-only API. We do not handle image, audio, or video generation directly. We also do not offer embeddings, OCR, or fine-tuning. If you need those features, you should check the documentation of other vendors for their current prices and limits. Our focus is purely on providing a reliable, uncensored text generation layer for your applications.

Because we are an independent service, we do not claim to be an official partner of any major AI company. We simply provide a stable endpoint for developers who need uncensored text outputs. This allows you to build applications that can handle controversial or adult topics without the refusals common in other models. The text output from our API is then used to drive the visual generation part of your project.

How to Estimate Token Usage for Your Project

To budget effectively, you must understand how tokens are counted. Our API uses a context window of 100,000 tokens, which includes both the prompt and the completion. This means you can send large prompts and receive long responses without hitting a hard limit quickly. However, you pay for every token used in both directions.

Input tokens are charged at $0.15 per one million tokens. Output tokens are charged at $0.50 per one million tokens. This pricing structure means that long responses will cost more than short ones. You should aim to keep your prompts concise and your model outputs focused to minimize costs. For example, if you send a prompt with 500 tokens and receive a response with 200 tokens, you are charged for 700 tokens.

You can estimate your monthly spend by multiplying your expected monthly requests by the average token count. If you expect 10,000 requests per month, and each request uses an average of 1,000 input tokens and 500 output tokens, you can calculate the total cost. This method helps you avoid surprise bills by giving you a clear picture of your expected usage.

Remember that errors and refusals are free, except for the hard content limit on sexual content involving minors. This means you can test your prompts without worrying about being charged for failed requests. Only successful completions and valid requests incur costs. This feature allows you to iterate on your prompts without financial penalty.

Calculating Costs with the Pricing Model

Our pricing model is straightforward: $0.15 per million input tokens and $0.50 per million output tokens. There are no monthly fees or subscriptions. You pay only for what you use, and your prepaid credit never expires. This makes it easy to budget for small projects or scale up to high-volume applications.

To calculate the cost of a single request, divide the number of tokens by one million and multiply by the respective price. For example, if a request uses 10,000 input tokens, the cost is 0.0015 dollars. If it uses 5,000 output tokens, the cost is 0.0025 dollars. You can sum these values to get the total cost for that request.

For high-volume users, tracking token usage is essential. Our API supports streaming over Server-Sent Events (SSE), which allows you to see usage information in the last chunk of the response. This feature helps you monitor token consumption in real-time and adjust your budget accordingly. You can also use the GET /v1/models endpoint to check the available models and their settings.

When you top up your account, you can use crypto only. The minimum top-up amount is $20, and the maximum is $500. You can pay with USDT on TRC20 or USDC on Base. If you top up from $50, you may receive a bonus credit ranging from +5% to +15%. This bonus can help you stretch your budget further for high-volume projects.

When Our API Is Not the Right Choice

While our text API is powerful, it is not suitable for every use case. If you need image generation, audio processing, or video creation, our API will not handle those tasks directly. You will need to integrate our text output with a separate image generation service. This adds complexity to your workflow but allows you to choose the best image model for your needs.

If you require fine-tuning your own model, our API does not support that feature. You would need to use a different provider that offers fine-tuning capabilities. Similarly, if you need OCR to extract text from images, or embeddings for vector search, our API does not provide these functions. You should check the documentation of other vendors for their current prices and limits for these specific features.

Our API is also not ideal if you need a strict SLA or certifications like SOC2 or HIPAA. We do not claim any specific uptime percentages or certifications. If your application requires these guarantees, you should look for a provider that offers them. Our focus is on providing an uncensored, flexible text model for developers who prioritize content freedom over enterprise-grade certifications.

Finally, if you prefer to pay with credit cards or PayPal, our API may not be the best fit. We only accept crypto payments, specifically USDT on TRC20 or USDC on Base. If you need to use traditional payment methods, you should consider other providers. Our service is designed for developers who are comfortable with crypto transactions and want a simple, transparent pricing model.

Addressing Common Developer Concerns

Developers often ask about the reliability of uncensored models and how they handle controversial topics. Our model does not refuse lawful adult, fictional, security-research, or controversial topics. This makes it ideal for applications that need to generate content without the filters found in other models. However, we do enforce a hard limit on sexual content involving minors, which is refused by the model.

Another common question is about the context window. Our API supports a 100,000 token context window, which is quite large. This allows you to send long prompts and receive detailed responses without losing context. This is particularly useful for complex tasks that require a lot of background information. You can use this large context window to provide detailed instructions to the model.

Users also inquire about the availability of trial credits. 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 without any financial commitment. You can use this trial credit to explore the features and see if the API meets your needs before top uping your account.

Finally, developers often ask about the rate limits. Our API allows 300 requests per minute per key. This is a generous limit for most applications, but if you need higher throughput, you may need to use multiple keys. You can also use the streaming feature to handle large responses more efficiently. This helps you stay within the rate limits while still getting the data you need.

Integrating with Your Workflow

Integrating our API into your workflow is straightforward thanks to its OpenAI compatibility. You can use any SDK that supports the OpenAI API format to connect to our service. This means you can reuse existing code and tools, reducing the learning curve for new users. The base URL is https://api.unrestrictedimagegenerator.com/v1, and you can use the standard endpoints for chat completions and model information.

You can also use function calling and JSON mode to structure your outputs. This is useful for applications that need to parse the model's response programmatically. You can set parameters like temperature, top_p, stop sequences, and seed to control the model's behavior. These parameters allow you to fine-tune the output to match your specific needs.

When you sign up, you can continue with Google or use an email and password. Your API key is shown immediately, so you can start using the service right away. You can manage your key and view your usage through the dashboard. This makes it easy to track your spending and manage your account.

Errors are handled with standard HTTP status codes. A 401 error indicates an invalid key, a 402 error means you have no credit, and a 429 error indicates a rate limit has been reached. These clear error messages help you troubleshoot issues quickly. You can also check the GET /v1/models endpoint to see the available models and their settings.

Optimizing for High Volume and Low Cost

To optimize your costs for high-volume image generation, you should focus on minimizing token usage. This means keeping your prompts concise and your model outputs focused. You can also use the streaming feature to monitor token consumption in real-time. This allows you to adjust your workflow if you notice token usage is higher than expected.

Another strategy is to batch your requests. If you have multiple prompts that can be processed together, you can send them in a single request. This can reduce the overhead of multiple API calls and help you stay within your rate limits. You can also use the GET /v1/models endpoint to check the available models and their settings.

When you top up your account, you can take advantage of the bonus credit. If you top up from $50, you may receive a bonus ranging from +5% to +15%. This bonus can help you stretch your budget further for high-volume projects. You can use this bonus credit to test new features or experiment with different prompt strategies.

Finally, remember that errors and refusals are free. This means you can test your prompts without worrying about being charged for failed requests. Only successful completions and valid requests incur costs. This feature allows you to iterate on your prompts without financial penalty. You can also use the trial credit to explore the API without any commitment.

Frequently asked questions

How much does the API cost per token?

The API costs $0.15 per one million input tokens and $0.50 per one million output tokens. There are no monthly fees, and you pay only for what you use.

What payment methods are accepted?

We accept crypto only, specifically USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500.

Is there a trial credit for new users?

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 without any financial commitment.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. This allows you to send large prompts and receive long responses without hitting a hard limit quickly.