EN ▾

Uncensored LLM API for developers

Get API key

Estimating NSFW API Token Costs

Developers often ask how to calculate the exact spend for high-volume uncensored generation. This article provides a method for estimating budget using our specific per-million-token rates and a worked example.

Digital token counter with crypto coins illustrating API cost estimation

Understanding the Pricing Structure

Our API uses a straightforward prepaid model where you pay only for what you use. The base rates are set at $0.15 per one million input tokens and $0.50 per one million output tokens. This structure means that the cost of generating a response is significantly higher than the cost of sending the prompt. For developers building high-volume applications, understanding this ratio is important for accurate budgeting.

Unlike subscription models, there are no monthly fees or hidden charges. You top up your account with crypto, and the credit is charged against real token usage. This transparency allows you to track exactly how much each interaction costs without worrying about unexpected billing cycles.

It is important to note that errors and refusals do not incur charges. If a request fails due to a network issue or if the content is refused based on our hard limits, you are not billed for those tokens. This feature can significantly reduce your effective spend, especially in scenarios where validation loops are common.

The prepaid credit never expires, which gives you the flexibility to top up when it is convenient. You do not need to worry about losing unused funds if you pause development or wait for a better rate. This stability is beneficial for indie builders who may have irregular development cycles.

The Calculation Formula

To estimate your costs, you can use a simple formula based on token counts. Multiply the number of tokens by the rate per million tokens, then divide by one million. For input tokens, the rate is $0.15, and for output tokens, the rate is $0.50. This method ensures you get a precise estimate without overcomplicating the math.

For example, if you send a prompt with 10,000 tokens, the input cost is calculated by multiplying 10,000 by 0.15 and dividing by 1,000,000. This results in a very small fraction of a cent. However, as you scale to millions of tokens, these fractions add up quickly, making accurate estimation essential for maintaining profitability.

Output tokens are typically more expensive because the model generates more text in response to your prompt. If your application generates long responses, the output cost will dominate your total spend. You should monitor the length of your generated text to keep costs under control.

By using this formula, you can predict your monthly spend based on your expected traffic. This helps you decide when to top up your account and ensures you have enough credit to handle peak usage periods without interruption.

Worked Example: High-Volume Generation

Let us look at a practical example to illustrate how the costs accumulate. Suppose you have an application that processes 100,000 requests per day. Each request involves a prompt of 5,000 tokens and generates a response of 2,000 tokens. This is a common scenario for chatbots or content generators.

First, calculate the daily input cost. You have 100,000 requests times 5,000 tokens, which equals 500,000,000 input tokens per day. Using the formula, you divide 500,000,000 by 1,000,000 and multiply by $0.15. This gives you the daily input spend. You can then multiply this by 30 to get the monthly input cost.

Next, calculate the output cost. The 100,000 requests generate 2,000 tokens each, totaling 200,000,000 output tokens per day. Divide 200,000,000 by 1,000,000 and multiply by $0.50 to find the daily output spend. Again, multiply by 30 for the monthly total.

Adding the input and output costs together gives you the total estimated monthly spend. This method allows you to see exactly how much each component contributes to the bill. It also highlights the impact of output length on your overall budget, encouraging you to optimize your prompts for efficiency.

Optimizing for Cost Efficiency

One of the best ways to reduce costs is to optimize your prompts. Shorter prompts mean fewer input tokens, which directly lowers your spend. However, you must balance brevity with clarity to ensure the model understands your request. A well-crafted prompt can yield better results with fewer tokens.

Another strategy is to manage the length of your responses. If your application does not need long outputs, you can set parameters to limit the maximum token count. This prevents the model from generating unnecessary text, which saves money on the more expensive output tokens.

Additionally, you can use the streaming feature to process responses in real-time. This allows you to stop generation early if the response becomes irrelevant or redundant. By cutting off unnecessary output, you avoid paying for tokens that do not add value to your application.

Finally, keep an eye on your error rates. Since errors are free, a high error rate can actually reduce your average cost per successful request. However, too many errors may indicate a problem with your integration or the quality of your prompts, so monitor this metric closely.

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 developer. If you need features like image generation, audio processing, or video creation, our API does not support these capabilities. You would need to look for a different provider that offers multimodal outputs.

Similarly, if you require fine-tuning your own model or using model routing to switch between different base models, our API does not support these advanced features. Our service focuses on serving one uncensored open-weight model, so if you need access to multiple models or custom training, this service may not meet your needs.

Developers looking for embeddings for semantic search or OCR for text extraction from images will also find our API limited. We provide text in and text out, so if your workflow relies on these specific technical features, you should consider a more comprehensive AI platform.

Additionally, if you need an SLA guarantee or enterprise-level support with dedicated account management, our service may not be suitable. We are an independent service focused on providing a reliable uncensored endpoint, but we do not offer the same level of enterprise support as larger vendors. Check the documentation for other vendors if you need these specific features.

Funding and Top-Up Options

To start using our API, you need to top up your account with crypto. We accept USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. You can choose any whole amount within this range to fund your account.

If you top up $50 or more, you receive bonus credit ranging from 5% to 15%. This bonus is a great way to get more value for your money, especially if you plan to use the API heavily. The bonus credit is added to your account immediately after the transaction is confirmed.

Unlike some services that accept credit cards or PayPal, we only accept crypto for top-ups. This means you do not need to provide sensitive financial information, which can be a privacy advantage for some users. However, it also means you need a crypto wallet to manage your funds.

Your trial credit of $0.50 is available immediately upon signup, allowing you to test the API without any initial investment. This is a good way to verify that the integration works before you commit to a larger top-up. Remember that trial credit is charged at the same rates as prepaid credit.

Monitoring Usage and Limits

Our API has a rate limit of 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. This limit is in place to ensure fair usage and maintain service stability for all users. You can monitor your usage through the API responses, which include usage information in the last chunk of streaming data.

If you need to handle more requests, you can use multiple API keys. Each key has its own rate limit, so using several keys can help you scale your application. Just make sure to distribute your requests evenly across the keys to avoid hitting any single limit.

Errors such as 401 (invalid key) or 402 (no credit) are also important to monitor. A 401 error indicates that your API key is invalid or has been revoked, while a 402 error means you have run out of credit. Both errors are free, so you are not charged for failed attempts, but you should address them quickly to avoid disrupting your application.

By keeping an eye on your usage and limits, you can ensure that your application runs smoothly. You can also use this data to refine your cost estimates and adjust your budget accordingly. Regular monitoring helps you stay on top of your spend and avoid unexpected shortfalls.

Frequently asked questions

How do I calculate the cost of a single request?

Multiply the number of input tokens by $0.15 and the number of output tokens by $0.50, then divide each by 1,000,000. Add the two results together to get the total cost for that request.

Do I pay for failed requests?

No, errors and refusals are free. You are only charged for tokens that are successfully processed and returned, or for tokens in requests that are refused based on content policy.

What happens if I run out of credit?

You will receive a 402 error. You can top up your account with USDT on TRC20 or USDC on Base to restore your credit. The credit never expires, so you can top up whenever you like.

Can I use a credit card to pay?

No, we only accept crypto for top-ups. You can use USDT on the TRC20 network or USDC on the Base network. There are no credit card or PayPal options available.