Budgeting AI Text API Costs: A Worked Example
Developers often ask how to predict monthly spend for high-volume uncensored text generation. This article teaches a method to estimate costs using our $0.15/1M input and $0.50/1M output rates, with a concrete calculation example.

Understanding the Pricing Model
Our API uses a straightforward prepaid credit system based on real token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This model ensures you only pay for what you actually use, with no monthly subscription fees or hidden charges. Errors and refusals are free, which can significantly reduce costs for testing and debugging phases.
It is important to note that the context window is 100,000 tokens, covering both prompt and completion together. This means your input tokens and output tokens are combined within this limit. Understanding this window is important for estimating how many requests you can make before hitting the context limit, which indirectly affects your cost efficiency.
Unlike some services that charge per request or per character, our token-based pricing allows for precise cost prediction. You can calculate your expected spend by tracking the number of tokens in your prompts and the resulting completions. This transparency helps you budget accurately for high-volume usage without worrying about unexpected fees.
The prepaid credit system also means that your paid credit never expires. You can top up whenever you need to, with no pressure to use all your credits within a specific timeframe. This flexibility is ideal for developers who have fluctuating usage patterns or who want to lock in costs for future projects.
Calculating Costs with Token Counts
To estimate your monthly spend, you need to track the number of tokens in your prompts and the resulting completions. Let's consider a concrete example where you send 500,000 input tokens and receive 200,000 output tokens in a month. Using our pricing, the cost for input tokens would be calculated as (500,000 / 1,000,000) * $0.15, and the cost for output tokens would be (200,000 / 1,000,000) * $0.50.
This method allows you to predict costs accurately without relying on fixed dollar amounts. For instance, if you send 1,000,000 input tokens, the cost is $0.15. If you receive 1,000,000 output tokens, the cost is $0.50. By breaking down your usage into token counts, you can see exactly how much each part of your API calls contributes to your total spend.
It is also helpful to monitor your usage regularly to ensure you are staying within your budget. Our API provides detailed usage statistics, which can help you identify patterns and optimize your requests. For example, if you notice that your output tokens are consistently high, you might consider adjusting your prompt engineering to reduce the length of the completions.
Additionally, you can use the trial credit of $0.50 to test your integration before committing to a larger top-up. This allows you to verify your token counting logic and ensure that your cost estimates are accurate. Once you are confident in your calculations, you can proceed with a larger top-up to support your production workload.
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 you need features like image generation, audio processing, or video creation, our API does not support these capabilities. In such cases, you might need to integrate with other services that specialize in those areas.
Similarly, if you require embeddings for semantic search or fine-tuning for specific tasks, our API does not offer these features. You would need to look for a provider that supports these advanced functionalities. Our API is designed for text-in, text-out scenarios, so it is best suited for applications that rely on pure text generation.
Another consideration is the context window. Our API supports a 100,000-token context window, which is quite large but may not be sufficient for extremely long documents or complex multi-turn conversations. If your use case involves processing very long texts or maintaining a large amount of context, you might need a provider with a larger context window.
Finally, if you need real-time audio or video processing, our API is not the right choice. Our service is focused on text generation, so it does not include capabilities for handling multimedia content. For projects that require a combination of text and multimedia, you might need to use multiple APIs or find a provider that offers a broader range of features.
Addressing Reddit Community Questions
Developers often ask about the best models for local setups with limited VRAM. For example, users with an RTX 3060 Ti and 16GB VRAM might wonder which models are suitable. While our API is hosted, the principles of token efficiency still apply. You can optimize your prompts to reduce token usage, which is beneficial regardless of if you are using a local or hosted model.
Another common question is about the reliability of AI text generators. Users have expressed concerns about the accuracy and consistency of outputs. Our API provides a stable and reliable service, with a focus on uncensored text generation. You can trust that your requests will be processed consistently, without the variability that might occur with local models.
Some users also ask about the differences between various AI text generators. While there are many options available, our API offers a unique combination of uncensored content and straightforward pricing. You can compare our features with other providers by checking their documentation for current prices, limits, and features.
Additionally, users have discussed the importance of testing different models to find the best fit for their needs. Our API allows you to experiment with different parameters, such as temperature and top_p, to fine-tune the output. This flexibility helps you achieve the desired results for your specific application.
Top-Up and Payment Methods
Our API supports top-ups via cryptocurrency only, specifically USDT on TRC20 or USDC on Base. You can top up any whole amount from $20 to $500. This range allows you to choose an amount that fits your budget and usage needs. There are no minimum or maximum limits beyond this range, giving you flexibility in how you manage your credits.
For top-ups of $50 or more, you receive bonus credit ranging from 5% to 15%. This bonus is added to your account immediately after the top-up is confirmed. It is a great way to get more value for your money, especially if you plan to use the API extensively. The bonus credit is charged at the same rate as your regular credits, so you can use it for any request.
It is important to note that we do not accept credit cards, PayPal, or bank transfers. All payments must be made using the specified cryptocurrencies. This method ensures fast and secure transactions, with no need for third-party payment processors. You can top up your account at any time, and the credits will be available immediately.
Additionally, we offer a trial credit of $0.50 for every new account, with no card needed. This allows you to test the API without committing to a top-up. You can use the trial credit to explore the API's features and verify your integration before making a larger investment.
Managing Rate Limits and Errors
Our API has a rate limit of 300 requests per minute per key. This limit is designed to ensure fair usage and prevent abuse. If you exceed this limit, you will receive a 429 error, indicating that you have hit the rate limit. You can manage your rate limits by spacing out your requests or using multiple API keys if you have a high-volume workload.
Other common errors include 401 for an invalid key and 402 for no credit. A 401 error indicates that the API key you are using is invalid or expired. A 402 error indicates that you do not have enough credit to cover the request. In both cases, you can resolve the issue by checking your API key or topping up your account.
It is also important to handle errors gracefully in your application. You can implement retry logic to handle temporary errors, such as rate limits, and provide feedback to users when a request fails. This helps ensure a smooth user experience, even when errors occur.
Additionally, you can monitor your API usage to identify any patterns or issues. Our API provides detailed logs and statistics, which can help you track your usage and identify any areas for improvement. By monitoring your usage, you can optimize your requests and reduce costs.
Optimizing Your API Usage
To optimize your API usage, it is helpful to understand the parameters available, such as temperature, top_p, stop, seed, and penalties. These parameters allow you to control the behavior of the model and tailor the output to your needs. For example, you can use the temperature parameter to control the randomness of the output, or the stop parameter to define when the model should stop generating text.
Another way to optimize your usage is to use streaming over SSE (Server-Sent Events). This allows you to receive the output in real-time, which can improve the user experience for applications that require immediate feedback. Streaming also allows you to process the output as it is generated, which can be useful for applications that need to display the output incrementally.
Function calling and JSON mode are also useful features for integrating the API with other systems. Function calling allows you to define functions that the model can call, which can be useful for applications that need to interact with external APIs or databases. JSON mode allows you to receive the output in a structured JSON format, which can be easier to parse and process.
Finally, it is important to test your integration thoroughly before deploying it to production. You can use the trial credit to test your integration and verify that it works as expected. Once you are confident in your integration, you can proceed with a larger top-up to support your production workload. By following these best practices, you can ensure that your API usage is efficient and cost-effective.
Frequently asked questions
How do I calculate the cost of a request?
Calculate the cost by dividing the number of input tokens by 1,000,000 and multiplying by $0.15, then do the same for output tokens with $0.50. Sum the two values to get the total cost.
What happens if I exceed the rate limit?
You will receive a 429 error. You can resolve this by spacing out your requests or using multiple API keys to distribute the load.
Can I use credit cards to top up?
No, we only accept USDT on TRC20 or USDC on Base for top-ups. There are no options for credit cards, PayPal, or bank transfers.
Is there a trial credit for new accounts?
Yes, every new account gets $0.50 of trial credit with no card needed. This allows you to test the API before making a top-up.