Budgeting for Unrestricted AI Text API Costs
Predicting monthly expenses for high-volume text generation requires understanding token economics. This guide shows developers how to calculate input and output volumes using our specific pricing structure.

Understanding Token-Based Pricing
Most API services charge based on the number of tokens processed rather than a flat fee per request. Our API follows this model, charging $0.15 per one million input tokens and $0.50 per one million output tokens. This means the cost scales directly with the volume of text you send and receive. Understanding this distinction is important for accurate budgeting, as a single request can contain thousands of tokens depending on the complexity of your prompts and the length of the model's response.
Input tokens include the system instructions, the user prompt, and any conversation history sent with the request. Output tokens are the words the model generates in response. Since the model id is always "uncensored," the pricing remains consistent regardless of the specific uncensored capabilities you utilize. The price does not change based on the model's internal architecture or the quality of the text, only on the quantity of tokens processed.
Errors and refusals are free, which can help offset costs in scenarios where the model rejects a request due to the hard content limit on sexual content involving minors. However, successful requests are always billed. This structure rewards efficient prompt engineering, as shorter, more precise prompts reduce input costs. Developers should monitor their token usage closely to avoid unexpected charges.
It is important to note that the context window is 100,000 tokens for both prompt and completion combined. If you are sending very long documents, you must ensure your input tokens do not exceed this limit. Exceeding the context window will result in an error, but since errors are free, you will not be charged for the failed attempt. This allows for safe testing of large inputs without financial risk.
Calculating Input and Output Volumes
To estimate your monthly costs, you need to track the number of tokens sent and received. Start by analyzing your typical use case. For example, if you are building a chatbot, calculate the average length of user messages and the average length of model responses. Multiply these averages by the expected number of requests per month to get your total token volume.
Use the formula: (tokens divided by 1,000,000) times the per-million price. For input, multiply the total input tokens by $0.15 / 1,000,000. For output, multiply the total output tokens by $0.50 / 1,000,000. This gives you the cost for each category. Sum these two values to get the total cost for your estimated volume. This method provides a clear picture of your expenses without needing to track every single request.
Consider the impact of streaming. When using streaming over SSE, usage is reported in the last chunk. This means you can track usage in real-time if your application supports it. However, for budgeting purposes, the total token count remains the same whether you stream or not. The billing is based on the total tokens processed, not the method of delivery.
Keep in mind that the API supports function calling and JSON mode. These features can increase the length of your prompts due to the additional JSON schema definitions. Factor in the size of your function definitions when calculating input tokens. Similarly, if you are generating structured data, the output tokens might be longer than natural language responses. Account for these variations to ensure your budget is accurate.
Planning Crypto Top-Ups and Bonuses
Our API requires prepaid credit, which is charged by real token usage. You can top up your account using crypto only, specifically USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. This range allows for flexible budgeting, whether you need a small boost or a larger reserve for high-volume usage.
One of the key benefits of our pricing model is the bonus credit available for larger top-ups. If you top up $50 or more, you receive a bonus ranging from +5% to +15%. This bonus credit is added to your account and can be used for future requests. It effectively reduces your cost per token, making larger top-ups more economical for heavy users.
Since errors and refusals are free, you can use your trial credit or small top-ups to test the API without fear of wasting money on failed requests. The trial credit of $0.50 for new accounts is a good way to start. You do not need to add a credit card to access this trial, which makes it easy to evaluate the API's performance before committing to a larger top-up.
Remember that paid credit never expires. This means you can top up when prices are favorable or when you anticipate high usage, and the credit will remain available for as long as you need it. There are no monthly fees or subscriptions, so you only pay for what you use. This flexibility is ideal for developers who have variable workloads.
When Our API Is Not the Right Choice
While our API is excellent for text generation, it is not a universal solution for all AI needs. It is a hosted, OpenAI-compatible chat-completions API serving one uncensored open-weight text model. It does not support embeddings, image generation, audio or video generation, OCR, or fine-tuning. If your project requires any of these capabilities, our API alone will not suffice.
For example, if you need to generate images from text prompts, you would need a different service that supports image generation. Similarly, if you need to convert speech to text or vice versa, our API does not handle audio. In these cases, you might need to integrate multiple APIs to build a complete solution. Our API can handle the text parts of these workflows, but you will need other tools for the non-text components.
Also, consider the context window limit of 100,000 tokens. If your use case involves processing documents larger than this limit, you may need to implement chunking strategies or use a service with a larger context window. While 100,000 tokens is quite large, it is not infinite. Ensure your documents fit within this limit or plan for how to handle larger inputs.
Finally, if you need real-time model routing or access to multiple models, our API serves only one uncensored model. If your application requires switching between different models based on the task, you would need a service that offers model routing. Our API is designed for simplicity and consistency, providing a single, high-quality uncensored model for all your text needs.
Addressing Common Developer Questions
Developers often discuss the trade-offs between free and paid services, especially when looking for high-performance models. Threads on r/LocalLLaMA highlight concerns about latency and the availability of free tiers. While some users find value in free, local solutions, they often face limitations in speed and ease of use. Our API offers a hosted solution with consistent performance, eliminating the need to manage local infrastructure.
On r/ZaiGLM and r/Qwen_AI, users discuss the challenges of running large models on free TPUs, such as limited slots and long wait times. Our API provides immediate access without the need to wait for a TPU slot. This is particularly useful for developers who need reliable, low-latency responses for their applications. The paid model ensures that your requests are processed promptly, regardless of the load on the server.
Discussions on r/LovingOpenSourceAI and r/LocalLLM often revolve around the complexity of setting up local models. Our API simplifies this by providing a simple API key and standard endpoints. You can start sending requests immediately after signup, without the need to install dependencies or configure hardware. This ease of use is a significant advantage for developers who want to focus on building their application rather than managing infrastructure.
Another common question is about the reliability of free APIs. Users on r/codex discuss the risks of using free tiers, such as rate limiting and potential lockouts. Our API offers a predictable pricing structure with no monthly fees, reducing the risk of unexpected charges. The prepaid credit model ensures that you only pay for what you use, providing financial predictability for your projects.
Optimizing Costs with Efficient Prompts
One of the most effective ways to reduce costs is to optimize your prompts. Since input tokens are charged at $0.15 per million, reducing the length of your prompts can significantly lower your expenses. Use concise system instructions and avoid unnecessary repetition in your prompts. A well-crafted prompt can achieve the same result with fewer tokens.
Consider using the seed parameter to ensure reproducibility. This can help you test different prompt variations without incurring additional costs for each test. By finding the optimal prompt structure, you can minimize the number of tokens required for each request. This is particularly useful for applications that send many similar requests.
Use the stop parameter to control the length of the output. If you only need a specific part of the response, you can set the stop parameter to halt generation early. This reduces the number of output tokens, which are charged at $0.50 per million. Be careful not to set the stop parameter too early, as it might truncate the response before it is complete.
Monitor your usage regularly to identify patterns that can be optimized. If you notice that certain types of requests are consistently expensive, look for ways to simplify them. For example, if you are sending long documents, consider chunking them into smaller parts. This can help you stay within the context window limit and reduce the complexity of each request.
Integrating with Your Application
Integrating our API into your application is straightforward, thanks to its OpenAI-compatible endpoints. You can use the standard SDKs or HTTP libraries to send requests to https://api.unrestrictedaitools.com/v1. The base URL is consistent with other OpenAI-compatible services, making it easy to switch between providers if needed.
Support for streaming over SSE allows you to display responses in real-time, improving the user experience. The usage information is included in the last chunk, so you can track token usage as the response is generated. This is useful for applications that need to display the model's output progressively.
Function calling and JSON mode are supported, allowing you to integrate the API with your existing data structures. You can define functions in your prompt and receive structured responses that can be easily parsed by your application. This is particularly useful for building agents that need to interact with other tools or databases.
Parameters like temperature, top_p, stop, seed, and penalties are available for fine-tuning the model's behavior. Experiment with these parameters to find the best balance between creativity and accuracy for your specific use case. The ability to control these parameters gives you greater flexibility in how the model generates text.
Frequently asked questions
How do I calculate the cost of a request?
Multiply the number of input tokens by $0.15 per million and the number of output tokens by $0.50 per million. Sum these values to get the total cost. Errors and refusals are free.
What payment methods are accepted?
We accept USDT on TRC20 and USDC on Base. The minimum top-up is $20 and the maximum is $500. Credit cards and PayPal are not accepted.
Does the trial credit expire?
No, paid credit never expires. The $0.50 trial credit is available for new accounts without a credit card.
Can I use this API for image generation?
No, this API serves only one uncensored open-weight text model. It does not support image, audio, or video generation.