Estimate AI Cost Per Use with Token Math
Developers often struggle to predict expenses when token usage fluctuates. This guide shows you how to budget accurately using fixed per-million-token rates for input and output. We demonstrate the method with a concrete calculation example to help you estimate costs per use.

Understanding Token-Based Pricing
This site is an independent service and is not affiliated with OpenAI.
When you integrate an AI API, you need to know how billing works before you write code. Our API charges based on token usage rather than a flat fee per request. This means the cost depends on the length of your prompt and the length of the model's response. You pay for what you use, and nothing else.
The model id you send is simply "uncensored". This model does not refuse lawful adult, fictional, or controversial topics. It serves text in and text out. You do not pay for embeddings, images, or audio. You only pay for the text tokens that pass through the system.
Input tokens are the words you send in your prompt. These cost $0.15 per 1 million tokens. Output tokens are the words the model generates. These cost $0.50 per 1 million tokens. The output is often more expensive because it represents the model's effort to generate a response.
Errors and refusals are free. If you send a request that fails or is refused due to the hard content limit on minors, you are not charged. This makes testing cheaper. You can experiment with different prompts without worrying about accumulating costs for failed attempts.
The Calculation Formula
To estimate your cost, you need a simple formula. Multiply the number of tokens by the rate, then divide by one million. The formula is: (tokens divided by 1,000,000) times the per-million price. This gives you the exact cost for that segment of text.
For input, you multiply the input token count by $0.15 and divide by 1,000,000. For output, you multiply the output token count by $0.50 and divide by 1,000,000. Add these two values together to get the total cost for a single request.
This method works because the rates are fixed. You do not need to guess percentages or discounts. The price per million tokens is constant. This stability helps you build reliable budgeting tools into your application.
Remember that the context window is 100,000 tokens. This includes both the prompt and the completion. If your prompt is very long, it uses up part of this window. You can send large documents, but you must stay within this limit. Exceeding it will cause an error, which is free to retry.
Worked Example: Short Response
Let us look at a concrete example. Imagine you send a short prompt that uses 1,000 input tokens. The model generates a short response using 200 output tokens. You want to know the cost of this single request.
First, calculate the input cost. Take 1,000 tokens, divide by 1,000,000, and multiply by $0.15. The result is a very small fraction of a cent. This is the cost for your input.
Next, calculate the output cost. Take 200 tokens, divide by 1,000,000, and multiply by $0.50. This is the cost for the model's generation. Add the input cost and the output cost together. This gives you the total price for this specific interaction.
This example shows that small requests are very cheap. You can run many tests without spending much. The prepaid credit system means you never lose money on unused funds. You can top up whenever you need more.
Worked Example: Long Context
Now consider a more complex scenario. You send a long document with 50,000 input tokens. The model analyzes it and produces a 5,000 token summary. This uses a significant portion of the context window.
Calculate the input cost for 50,000 tokens. Divide by 1,000,000 and multiply by $0.15. This gives you the base cost for reading the document.
Calculate the output cost for 5,000 tokens. Divide by 1,000,000 and multiply by $0.50. Since output is more expensive, this part will be higher than the input cost for the same number of tokens. Add them together for the total.
This example highlights why output cost matters. If you need long summaries, the output tokens add up quickly. You can use the formula to predict these costs before you deploy. This helps you avoid surprise bills when your application scales.
When This API Is Not the Right Choice
Our API is designed for text generation. It does not support image, audio, or video generation. If you need to create visuals or process media, this service is not the right choice. It also does not offer embeddings or vector search.
There is no fine-tuning available. You cannot train the model on your specific data. You can only use the uncensored model as it is. If you need a model trained on your proprietary dataset, you should look elsewhere.
The API also lacks model routing. You cannot switch between different models dynamically. You are locked into the single uncensored text model. If you want to compare different models or use a specific specialized model, this service does not support that.
Finally, there is no on-prem deployment option. The service is hosted. If you need to run the model on your own servers for data privacy, this API is not the right choice. You would need a solution that allows local deployment.
Addressing Reddit Discussions on Pricing
Developers often discuss pricing changes and model costs on Reddit. Threads on r/GithubCopilot mention OpenAI pricing updates and discounts. People talk about how prices drop and how discounts affect their budgets. They discuss whether new models are cheaper or more expensive.
On r/accelerate, users discuss Chinese AI model pricing. They mention that costs are falling and that some models are becoming very affordable. They compare different models and their speeds. The conversation focuses on how cheap intelligence is becoming.
Threads on r/singularity and r/Infographics compare input and output costs. Users argue that token pricing is not the best indicator of value. They note that a cheap model might use more tokens for the same task. This means the actual cost per task might be higher than the rate suggests.
These discussions show that developers are careful about budgeting. They want to know the real cost per use. Our API provides a simple formula to help you calculate this. You can estimate costs accurately without guessing. This transparency helps you make better decisions for your projects.
Managing Your Credits and Limits
You can top up your account with crypto only. The accepted currencies are USDT on TRC20 or USDC on Base. You can add any whole amount from $20 to $500. This gives you flexibility in how you fund your account.
If you top up from $50, you receive bonus credit. The bonus ranges from +5% to +15%. This means you get more tokens for your money. The bonus credit is added to your account immediately.
Your prepaid credit never expires. You can use it whenever you need it. There is no monthly fee or subscription. You only pay for what you use. This makes it easy to budget for sporadic usage.
The API has a rate limit of 300 requests per minute per key. If you exceed this limit, you get a 429 error. You can retry after a short delay. This limit helps ensure fair usage for all users. You can monitor your usage to stay within these limits.
Frequently asked questions
How do I calculate the cost of a request?
Divide the token count 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. Add these values to get the total cost.
What happens if I get an error?
Errors and refusals are free. You are not charged for failed requests or refusals due to content limits. You only pay for real token usage.
Can I use a credit card to pay?
No, top-up is crypto only. You can use USDT on TRC20 or USDC on Base. The amount must be between $20 and $500.
Does my credit expire?
No, prepaid credit never expires. You can use it whenever you need it without a monthly fee or subscription.