EN ▾
Get API key

Estimating API Costs: Token Budgeting Guide

Developers building high-volume chat applications often struggle to predict monthly expenses when switching to uncensored models. This guide provides a clear method for estimating costs based on token usage, helping you avoid unexpected bills. By understanding the ratio of input to output tokens, you can forecast your spend accurately.

Digital interface showing token counter and chat bubble for AI cost estimation

Understanding the Pricing Model

Our API uses a straightforward pay-as-you-go model based on token consumption. You are charged $0.15 for every one million input tokens and $0.50 for every one million output tokens. This structure means that the cost of your application depends entirely on the volume of text processed. Errors and refusals do not incur charges, which protects your budget during testing phases.

The model id you send is simply "uncensored". This single identifier routes your requests to our uncensored open-weight text model. There are no hidden fees for model routing or fine-tuning. The base URL for all requests is https://api.uncensoredgpt.cc/v1. You interact with this service through standard endpoints like POST /v1/chat/completions.

It is important to note that we do not offer a free unlimited tier. Every request consumes tokens unless it results in an error. Prepaid credit is charged by real token usage. Your paid credit never expires, so you can top up when convenient. The absence of monthly subscription fees allows you to scale your usage up or down without commitment.

When you integrate this API, you should monitor your token usage closely. The pricing is transparent, but high-volume applications can accumulate costs quickly if not managed. Understanding the difference between input and output costs is important. Output tokens are more expensive, so optimizing your prompts can significantly reduce your bill.

Calculating Input and Output Tokens

To estimate your costs, you need to understand how tokens are counted. A token is a basic unit of text, roughly equivalent to four characters. The context window for our API is 100,000 tokens, which includes both the prompt and the completion. This limit applies to the total tokens sent and received in a single request.

Input tokens include your system prompt, user message, and any conversation history. Output tokens are the generated text from the model. If you send a long prompt with a short response, your input costs will dominate. Conversely, a short prompt with a long response will incur higher output costs. You can use the /v1/models endpoint to verify current model details.

Function calling and JSON mode also consume tokens. When you enable tools or specific formatting, the model processes additional instructions. These tokens count towards your usage just like standard text. Streaming responses over SSE do not change the token count; you are charged for the total tokens generated, regardless of how they are delivered.

Parameters like temperature, top_p, and seed affect the generation process but do not directly change the token count. However, they can influence the length of the output. Higher temperatures may produce more varied and potentially longer responses, increasing output token costs. Testing these parameters helps you balance quality and cost.

Estimating Monthly Spend

Estimating your monthly spend requires projecting your token usage. Start by determining the average number of requests you expect per day. Then, estimate the average token count for each request. Multiply the input tokens by $0.15 per million and the output tokens by $0.50 per million. This gives you the cost per request.

For example, if an average request uses 1,000 input tokens and 500 output tokens, the cost is (1,000 / 1,000,000) * $0.15 for input and (500 / 1,000,000) * $0.50 for output. Sum these values to get the cost per request. Multiply by the number of requests per month to get your total estimated spend. This method provides a clear picture of your budget needs.

Keep in mind that error responses are free. If your application encounters rate limits or invalid keys, those tokens are not charged. This can reduce your overall costs during periods of high traffic or testing. However, you should still account for successful requests in your budget.

Regularly review your usage data to refine your estimates. If your actual costs differ significantly from your projections, adjust your token counts or request volumes. This iterative process helps you maintain accurate financial planning. You can also use the trial credit of $0.50 to test your integration without spending real money.

Optimizing Token Usage

Optimizing token usage is essential for controlling costs. One effective strategy is to minimize the length of your system prompts. Use concise instructions that convey the necessary context without unnecessary detail. This reduces input tokens, which are cheaper but still contribute to the total cost.

Another approach is to manage conversation history. Long chats accumulate tokens quickly. You can trim older messages or summarize previous turns to keep the context window within limits. This helps you stay within the 100,000 token limit while reducing the number of tokens sent in each request.

Using JSON mode can also help. When you request structured output, the model may generate more predictable responses. This can reduce the need for multiple attempts to get the desired format. Fewer attempts mean fewer tokens consumed. Additionally, setting a seed ensures reproducible results, which can help you debug and optimize your prompts more efficiently.

Monitor your usage regularly. The API provides usage information in the last chunk of streaming responses. You can track this data to identify patterns and optimize your application. By focusing on efficiency, you can deliver high-quality responses while keeping your token budget in check.

When Our API Is Not the Right Choice

Our API is designed for text generation only. If you need image, audio, or video generation, this service is not the right choice. We do not offer embeddings, OCR, or fine-tuning capabilities. If your application requires these features, you may need to integrate other tools alongside our text API.

Additionally, if you require strict SLA guarantees or certifications like SOC2 or HIPAA, our API may not meet your needs. We do not claim these certifications, and our service is an independent offering. Check the documentation of other vendors for specific compliance requirements if these are critical for your project.

For applications requiring real-time audio or video processing, our text-only model will not suffice. You would need to handle those aspects separately. Our API excels at generating text responses, but it does not handle multimedia. If your project involves complex multimedia workflows, consider how our text API fits into the broader architecture.

Finally, if you prefer a subscription model with fixed costs, our pay-as-you-go structure might not align with your budgeting preferences. Our prepaid credit model offers flexibility but requires you to manage your own credit balance. Ensure that your team is comfortable with this approach before integrating the API.

Addressing Community Questions

Developers often ask about setting up uncensored models locally or comparing them to hosted solutions. Threads on r/AIJailbreak and r/deepweb show interest in both local and hosted options. Some users explore running models on hardware like Chromeboxes, while others prefer the convenience of a hosted API.

For those interested in local deployment, tools like LM Studio allow you to run models on your own hardware. This approach gives you full control over the model and data. However, it requires sufficient VRAM and technical expertise. If you lack the resources for local hosting, a hosted API like ours provides a reliable alternative.

Questions about specific models, such as comparisons to other uncensored options, are common. While we do not claim to be the only uncensored model, our API offers a simple, OpenAI-compatible interface. Users can switch between local and hosted solutions based on their needs. The key is to choose the option that best fits your technical capabilities and budget.

Another common query is about the availability of free tiers. Our trial credit of $0.50 allows new users to test the API without commitment. This is useful for developers who want to evaluate the model before investing in prepaid credit. It provides a low-risk way to explore the API's capabilities and performance.

Payment and Account Setup

Signing up for our API is straightforward. You can continue with Google or use an email and password. Once registered, your API key is shown immediately, allowing you to start making requests right away. There is no need to enter card details or bank information, as we do not support those payment methods.

Top-ups are accepted only in crypto. You can use USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. You can choose any whole amount within this range. Bonus credit is available for top-ups of $50 or more, ranging from +5% to +15%. This bonus can help you get more value from your purchases.

Errors such as 401 for invalid keys, 402 for no credit, and 429 for rate limits are handled gracefully. These errors are free, so you do not lose tokens when something goes wrong. The rate limit is 300 requests per minute per key, which is sufficient for most high-volume applications.

Remember that your paid credit never expires. You can top up whenever you need more tokens. This flexibility allows you to manage your budget effectively. If you are building a small chatbot or a large-scale application, our API provides the tools you need to succeed.

Frequently asked questions

How much does the API cost per token?

The API charges $0.15 per million input tokens and $0.50 per million output tokens. Costs are based on actual usage, with errors and refusals being free.

What payment methods are accepted?

We accept crypto payments only: USDT on TRC20 or USDC on Base. Card, PayPal, and bank transfers are not supported. Top-ups range from $20 to $500.

Is there a free trial available?

Yes, every new account receives $0.50 of trial credit. No credit card is required to sign up or start using the API.

What is the context window limit?

The context window is 100,000 tokens, which includes both the prompt and the completion. This limit applies to each request sent to the API.