EN ▾

Uncensored LLM API for developers.

Get API key

Estimating API Costs for Uncensored Text Generation

Developers often ask how to budget for high-volume, uncensored text generation without hidden fees. This article teaches you to calculate token usage and estimate costs using a standard pricing model, helping you plan your project's financial requirements before integration.

Server rack with glowing blue light and floating digital tokens representing API costs

Understanding the Pricing Model

The foundation of budgeting for our API lies in understanding the per-million token rates. Our service charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This model is straightforward and predictable, allowing you to forecast expenses based on your expected token volume. Unlike some competitors that charge per request or per model, our pricing is consistent across all interactions with the uncensored model.

It is important to note that this pricing applies only to successful token processing. Errors and refusals are free of charge. This means that if a request fails due to a network issue or if the model refuses a request due to content policy, you are not billed for those tokens. This feature can significantly reduce costs for applications with high variability in input quality or content sensitivity.

The prepaid credit system ensures that you only pay for what you use. There are no monthly subscriptions or hidden fees. Your credit never expires, so you can top up when needed and use the balance over time. This flexibility is ideal for projects with fluctuating usage patterns, as you are not locked into a fixed monthly cost regardless of actual usage.

When estimating your budget, focus on the token count rather than the number of requests. A single request can consume hundreds or thousands of tokens depending on the complexity of the prompt and the length of the response. By tracking token usage, you can get a precise view of your costs and avoid surprises in your billing.

Calculating Token Usage

To estimate costs accurately, you need to understand how tokens are counted. Tokens are the basic units of text that the model processes. A token can be a word, a part of a word, or even a single character. The context window of our API is 100,000 tokens, which includes both the prompt and the completion. This large window allows for extensive conversations and complex data processing without losing context.

When you send a request, the input tokens are the tokens in your prompt. The output tokens are the tokens in the model's response. To calculate the cost, you divide the total number of tokens by 1,000,000 and multiply by the respective price per million tokens. For example, if you use 500,000 input tokens and 200,000 output tokens, the cost would be calculated using the $0.15 and $0.50 rates respectively.

It is helpful to use a tokenizer to estimate the token count of your prompts before sending them to the API. This can help you predict the cost of each request more accurately. Many programming languages have libraries that can tokenize text, making it easy to integrate this calculation into your application's workflow.

Keep in mind that the token count can vary depending on the language and format of your input. For instance, JSON or XML structures may consume more tokens than plain text due to the additional characters. By monitoring your token usage over time, you can identify patterns and optimize your prompts to reduce costs.

Budgeting for High-Volume Usage

For developers running high-volume applications, budgeting becomes a critical task. The prepaid credit system allows you to control your spending by topping up only when necessary. You can add credit in amounts ranging from $20 to $500, with bonus credit available for larger top-ups. This flexibility helps you manage cash flow and avoid overpaying for unused credit.

When planning for high-volume usage, consider the peak times when your application will be most active. You might need to top up your credit before these periods to ensure uninterrupted service. Since errors and refusals are free, you can also use this time to test your application with different prompts without incurring additional costs.

It is also wise to monitor your token usage regularly. If you notice that your token consumption is higher than expected, you can investigate the cause. This might involve optimizing your prompts or reducing the length of your responses. By keeping a close eye on your usage, you can make informed decisions about when to top up your credit.

Another strategy is to use the streaming feature to process responses in real-time. This can help you manage the flow of data and reduce the memory footprint of your application. Streaming also allows you to start processing the response as soon as it begins, which can improve the user experience for your end users.

When Our API Is Not the Right Choice

While our API is excellent for uncensored text generation, it may not be the right choice for every project. If your application requires image, audio, or video generation, our API does not support these capabilities. We focus solely on text-in, text-out interactions, so if you need multimodal outputs, you will need to look elsewhere.

Similarly, if you require embeddings for semantic search or fine-tuning for specific tasks, our API does not offer these features. We provide a standard uncensored model without the ability to fine-tune or route to different models. This makes our API ideal for applications that need a consistent, unfiltered text response without the complexity of model management.

If you need on-premises deployment for data privacy or security reasons, our hosted service might not meet your needs. We do not offer on-premises options, so if data residency is a critical factor, you may need to consider other providers. Additionally, if you require an SLA or certifications like SOC2 or HIPAA, our service does not currently offer these guarantees.

Finally, if you are looking for a free unlimited tier, our API is not the best fit. We offer a small trial credit of $0.50, but ongoing usage requires prepaid credit. This model is designed for developers who are willing to pay for high-quality, uncensored text generation without the constraints of a subscription model.

Addressing Community Questions

Developers in communities like r/ollama and r/ChatGPTPro often discuss the best uncensored models available. Many users are looking for models that can handle controversial topics, such as piracy or adult content, without triggering guardrails. Our API addresses this need by providing a model that does not refuse lawful adult, fictional, or controversial topics, making it a strong option for these use cases.

Some users also mention specific models like Qwen3.5 or Venice.ai as alternatives. While these models have their own strengths, our API offers a simple, OpenAI-compatible interface that is easy to integrate. If you are comparing options, it is helpful to check the documentation of other vendors for their current prices and limits, as these can change frequently.

In threads on r/FedJerk and r/manufacturingconsent, users discuss the broader implications of AI without guardrails. They often seek tools that can generate content without the usual restrictions. Our API fits this niche by providing a straightforward text generation service that prioritizes content freedom. This makes it suitable for applications that need to generate diverse and unfiltered content.

When evaluating our API against other options, consider the specific needs of your project. If you need a reliable, uncensored text model with a simple pricing structure, our API is a strong candidate. However, if you need additional features like embeddings or fine-tuning, you may need to combine our API with other tools to meet your requirements.

Integrating with Your Application

Integrating our API into your application is straightforward thanks to its OpenAI-compatible interface. You can use the standard endpoints for chat completions, responses, and models. The base URL for our API is https://api.unrestrictedaimodels.cc/v1, and you can send requests to this endpoint using your API key. This compatibility allows you to use existing libraries and tools that support the OpenAI format.

When integrating, make sure to handle the different response formats correctly. Our API supports streaming over SSE, function calling, and JSON mode. These features allow you to build more dynamic and interactive applications. For example, you can use function calling to enable your application to interact with external tools or services based on the model's output.

It is also important to handle errors and rate limits gracefully. Our API returns specific error codes for invalid keys, insufficient credit, and rate limits. By implementing error handling in your application, you can ensure a smooth user experience even when issues arise. You can also use the seed parameter to get consistent responses for testing purposes.

Finally, consider the security of your API key. Since the key is shown immediately after signup, make sure to store it securely in your application. You can use environment variables or a secrets manager to keep your key safe. This will prevent unauthorized access to your account and ensure that your credits are used only by your application.

Optimizing for Cost and Performance

To optimize your costs and performance, consider using the temperature and top_p parameters to control the randomness of the model's output. Lower values will produce more deterministic responses, which can be useful for tasks that require consistency. Higher values will produce more diverse and creative outputs, which can be beneficial for content generation.

Another way to optimize is to use the stop parameter to limit the length of the response. This can help reduce the number of output tokens and, consequently, the cost. By setting a specific stop sequence, you can ensure that the model stops generating text at a desired point, preventing unnecessary token usage.

You can also use the penalties to influence the model's output. Penalties can help you avoid repetitive or low-quality responses. By adjusting these parameters, you can fine-tune the model's behavior to better suit your application's needs. This level of control allows you to balance cost and quality effectively.

Finally, monitor your API usage regularly to identify areas for improvement. If you notice that certain prompts are consuming more tokens than expected, you can experiment with different phrasing or structure to reduce the token count. By continuously optimizing your prompts and responses, you can maximize the value of your API credits.

Frequently asked questions

How do I calculate the cost of a request?

Divide the total number of tokens by 1,000,000 and multiply by the per-million price. Input tokens cost $0.15 per million, and output tokens cost $0.50 per million. Errors and refusals are free.

What happens if I run out of credit?

If you run out of credit, you will receive a 402 error. You can top up your account with crypto to continue using the API. Your credit never expires, so you can add funds whenever needed.

Does the API support image generation?

No, the API supports only text generation. It does not offer image, audio, or video generation. If you need multimodal outputs, you may need to use a different tool alongside our API.

How do I get started with the API?

Sign up with Google or email to get an API key immediately. You will receive $0.50 of trial credit to start testing. You can then top up with USDT or USDC to continue using the service.