How to Estimate Uncensored API Token Costs
Developers often worry about unpredictable bills when scaling AI integrations. This guide shows you how to estimate costs using our per-million-token model, ensuring you stay within budget. You will learn to calculate expenses for both input and output tokens clearly.

Understanding the Pricing Model
When building applications with large language models, understanding how token billing works is essential for maintaining predictable operational costs. Our API uses a straightforward metered billing system where you pay only for the tokens processed. This means you are not locked into a monthly subscription or a fixed tier. Instead, your costs scale directly with your usage volume. This approach is particularly useful for indie developers and small teams who want to avoid overpaying for unused capacity.
The pricing structure is divided into two distinct categories: input tokens and output tokens. Input tokens include the text you send to the model, such as your prompt, system instructions, and any context provided. Output tokens are the text generated by the model in response. By separating these two, you can see exactly where your money goes. For example, a complex prompt with long context might have high input costs, while a verbose model response will drive up output costs.
Our API charges $0.15 per one million input tokens. This rate is applied to the total number of tokens in your request. If you send a request with 50,000 tokens, you are charged for that specific amount. The model id you send is uncensored, and this price applies to all requests made to this endpoint. There are no hidden fees for the API itself, and the base URL for these requests is https://api.ollamauncensored.cc/v1.
Output tokens are priced at $0.50 per one million tokens. Since the model generates text, the cost of the response can sometimes exceed the cost of the input. This is normal behavior for LLMs. By knowing both rates, you can estimate your total spend based on the expected length of your prompts and the expected length of the model's responses. This transparency allows you to budget accurately without surprise charges at the end of the month.
Calculating Input Token Costs
Input tokens form the foundation of every request you make to the API. These tokens represent the data you send to the model, including your system prompt, user messages, and any historical conversation context. Estimating input costs requires you to understand how text is converted into tokens. While the exact tokenizer details may vary, the billing is based on the total count of tokens sent in the request body.
To calculate the cost of input tokens, you divide the total number of input tokens by one million and then multiply by $0.15. For instance, if your application sends 100,000 input tokens in a day, the calculation is (100,000 / 1,000,000) * $0.15. This results in a very small fraction of a cent, demonstrating how affordable it is to send large amounts of context. This low rate makes it feasible to include extensive system instructions or long documents in your prompts without breaking the bank.
It is important to note that the context window for our API is 100,000 tokens. This limit includes both the prompt and the completion together. If your input tokens approach this limit, you must ensure there is enough room for the model's response. Exceeding this window will result in an error, but you will not be charged for the failed request. This safety feature helps you manage your token budget effectively by preventing accidental overages due to context overflow.
When planning your integration, consider the length of your system prompts. A detailed system prompt can consume a significant portion of your context window. However, since the input rate is low, you can afford to be verbose in your instructions. This ensures the model understands the task clearly, leading to better outputs. The key is to balance the detail in your prompt with the need to preserve space for the model's response.
Calculating Output Token Costs
Output tokens are generated by the model in response to your input. These tokens represent the text the model produces, which can vary in length depending on the complexity of the task and the model's behavior. Output tokens are priced at $0.50 per one million tokens, which is higher than the input rate. This reflects the computational cost of generating text. Understanding output costs is important because they can accumulate quickly if the model produces long responses.
To estimate output costs, you divide the total number of output tokens by one million and multiply by $0.50. For example, if the model generates 50,000 output tokens, the cost is (50,000 / 1,000,000) * $0.50. This calculation helps you forecast your monthly spend based on expected response lengths. If your application requires detailed explanations or long-form content, the output costs will be higher than for short, concise answers.
You can control output length by using parameters like max_tokens or by setting stop sequences. This allows you to cap the amount of text the model generates, helping you manage costs. For instance, if you only need a short summary, you can set a limit on the output tokens. This ensures you do not pay for unnecessary text. It is a good practice to test your prompts to see how long the responses typically are before scaling up your usage.
Streaming responses can also help you monitor output costs in real-time. When using streaming over SSE, you receive usage information in the last chunk. This allows you to see the total token count for a request as it completes. You can use this information to adjust your application logic or to log costs for each request. This transparency helps you identify patterns in your usage and optimize your prompts for efficiency.
Budgeting for High-Volume Usage
For developers running high-volume applications, predicting monthly costs is essential for financial planning. Since our API does not have a subscription fee, your costs are purely variable. This means you pay only for what you use. To budget effectively, you should estimate your daily token usage and multiply it by the number of days in the month. This gives you a baseline for your expected spend.
Start by analyzing your typical requests. Estimate the average number of input and output tokens per request. Then, multiply this by the number of requests you expect to make daily. For example, if you expect 10,000 requests per day, with 1,000 input tokens and 500 output tokens each, you can calculate the daily cost. This method provides a clear picture of your potential expenses.
It is also important to consider the trial credit available to new accounts. Every new account receives $0.50 of trial credit, which allows you to test the API without immediate payment. This is useful for verifying your integration and estimating costs before committing to a larger budget. The trial credit does not expire, so you can use it whenever you are ready to start production usage.
When scaling up, monitor your usage closely. Our API charges by real token usage, and errors are free. This means you only pay for successful completions. If you encounter rate limits or other errors, you do not lose credit. This feature protects your budget from unexpected spikes in error rates. By tracking your usage and adjusting your prompts, you can keep costs predictable even as your application grows.
Payment Methods and Top-Ups
Our API supports crypto-only payments, which simplifies the billing process for international developers. You can top up your account using USDT on the TRC20 network or USDC on the Base network. These are stablecoins, which means their value is pegged to the US dollar, reducing the risk of volatility affecting your balance. You can add any whole amount from $20 to $500 per transaction.
There is no minimum deposit requirement other than the $20 floor, and no maximum limit per transaction. This flexibility allows you to add funds as needed. If you top up $50 or more, you may receive bonus credit ranging from +5% to +15%. This bonus is added to your account immediately, giving you more value for your money. It is a good strategy to top up larger amounts to maximize your bonus credit.
Credit never expires, so you can top up your account whenever it is convenient. This is useful for developers who want to maintain a consistent balance without worrying about monthly renewals. Since there are no monthly fees, you can keep a small balance and top up as needed. This pay-as-you-go model is ideal for projects with variable usage patterns.
When you run out of credit, the API will return a 402 error. This indicates that you have no funds left. You can then top up your account to resume service. The key is shown immediately upon signup, and you can use it to make requests as long as you have credit. This straightforward payment system ensures you can focus on building your application without dealing with complex billing cycles.
When This API Is Not the Right Choice
While our API is excellent for text generation, it may not be the right choice for every project. It is a hosted, open-weight text model that serves uncensored content. If your application requires image generation, audio processing, or video creation, this API will not meet your needs. It does not support embeddings, OCR, or fine-tuning. You should verify that your use case aligns with text-only generation before integrating this service.
Additionally, if you need a model with specific benchmark scores or certifications, this API may not fit your requirements. We do not claim SLA percentages, SOC2, HIPAA, or ISO certifications. If your industry requires strict compliance or guaranteed uptime, you may need to look for a provider that offers these guarantees. Our service is focused on providing uncensored text generation without these enterprise-level assurances.
If you require model routing or the ability to switch between different models dynamically, this API is not suitable. It serves only one uncensored open-weight text model with the id uncensored. There is no model routing capability. If your application needs to test multiple models or switch based on performance, you will need a different solution.
Finally, if you prefer traditional payment methods like credit cards, PayPal, or bank transfers, this API may not be convenient for you. We accept only crypto payments. If you are not comfortable with cryptocurrency transactions, you might find the top-up process less intuitive. However, for developers who are familiar with crypto and want a simple, uncensored text API, this service is a strong option.
Addressing Common Developer Questions
Developers often ask about handling rate limits and errors in their integrations. On Reddit, users discuss how to manage 429 errors when making high-volume requests. One common question is whether the API retries the whole completion or if the client sees a truncated response. In our case, if a 429 error occurs mid-stream, the whole completion is retried. This ensures that you do not lose data due to rate limiting. You can implement logic in your client to handle these retries gracefully.
Another frequent topic is the difference between local and hosted models. Users often compare our hosted API with local Ollama setups. While local models offer privacy and offline capabilities, our hosted API provides scalability and ease of use. You do not need to manage hardware or GPU resources. This makes it ideal for developers who want to focus on their application logic rather than infrastructure management.
Users also inquire about the trial credit and how to get started. Every new account receives $0.50 of trial credit, which is enough to test the API thoroughly. You can sign up with Google or email and password, and your key is shown immediately. This allows you to start making requests without any financial commitment. It is a great way to verify that the API meets your needs before topping up your account.
Finally, developers ask about the context window and how to manage long conversations. Our API supports a 100,000-token context window, which is quite large. This allows for extensive conversations and long documents. However, you should still monitor your token usage to ensure you do not exceed the limit. By understanding these common questions, you can build more reliable and efficient integrations with our API.
Frequently asked questions
How do I calculate the cost of a request?
Divide the input tokens by one million and multiply by $0.15, then divide the output tokens by one million and multiply by $0.50. Add these two values to get the total cost for that request.
What payment methods are accepted?
We accept USDT on the TRC20 network and USDC on the Base network. Credit cards, PayPal, and bank transfers are not supported.
Does the trial credit expire?
No, the $0.50 trial credit given to new accounts never expires. You can use it whenever you are ready to start using the API.
What happens if I run out of credit?
The API will return a 402 error indicating you have no credit. You can top up your account with crypto to resume service.
More guides
- Ollama API Key: Do You Need One and Where to Get It
- LangChain Ollama Set URL: Point It at a Hosted API
- Ollama API Base URL: Switch to a Hosted Endpoint
- Uncensored DeepSeek: setup, costs and alternatives
- Integrating the Uncensored Ollama API with Python
- Troubleshooting 429 Errors and Rate Limits in Uncensored Ollama API