EN ▾
Get API key

Uncensored Chat API Cost Calculator: Token Math for Devs

Developers often ask how to predict monthly expenses for high-volume uncensored chatbot integrations. This article teaches a method to estimate costs using our specific $0.15/$0.50 per million token rates, including a worked example for a typical roleplay session.

Developer workspace with holographic token cost calculation display

Understanding Our Pricing Structure

When integrating an uncensored chatbot API, the first step is understanding how token usage translates to cost. Our service charges $0.15 per million input tokens and $0.50 per million output tokens. This structure means that the cost of generating responses is significantly higher than the cost of processing your prompts. For developers building high-volume applications, this disparity requires careful budgeting to ensure profitability or sustainable usage limits.

The context window for our API supports up to 100,000 tokens, which includes both the prompt and the completion. This large window allows for extensive conversation history to be retained in a single session. However, it also means that long conversations will consume tokens rapidly, especially if the model generates verbose responses. Developers must monitor token usage closely to avoid unexpected charges.

Errors and refusals are free, which provides a safety net for unexpected API behavior. If a request fails due to a network issue or a rate limit, you are not charged for those tokens. This feature is particularly useful for testing and debugging integrations. It allows developers to experiment with different parameters without worrying about incurring costs for failed requests.

However, there is a hard limit on content. The model refuses requests involving sexual content with minors. This refusal is free, but it means that certain types of content will not be generated. Developers should design their applications to handle these refusals gracefully, ensuring that users are informed when content is blocked. This limitation is important for maintaining compliance and user trust.

Calculating Token Usage for Roleplay

Roleplay sessions are a common use case for uncensored chat APIs. They often involve long conversations with detailed character descriptions and extensive dialogue. To estimate costs, you need to calculate the total tokens used in a session. This includes the initial prompt, which sets the scene and character, as well as the ongoing dialogue tokens.

Let's consider a typical roleplay session. Suppose the initial prompt is 2,000 tokens. If the conversation lasts for 50 exchanges, and each exchange averages 100 tokens for the prompt and 200 tokens for the response, the total tokens can be calculated. The input tokens would be 50 times 100, plus the initial 2,000, totaling 7,000 tokens. The output tokens would be 50 times 200, totaling 10,000 tokens.

Using our pricing, the cost for input tokens is 7,000 divided by 1,000,000 times $0.15, which is a small fraction of a cent. The cost for output tokens is 10,000 divided by 1,000,000 times $0.50, which is also a small fraction. This example shows that even for moderate usage, the costs are low. However, for high-volume applications, these small fractions add up quickly.

Developers should use this method to estimate their monthly costs. By tracking token usage in their applications, they can predict expenses and adjust their pricing or usage limits accordingly. This approach ensures that they do not overspend and can maintain a sustainable business model. It also helps in identifying inefficiencies in the API usage.

Managing Crypto Payments and Credits

Our API accepts crypto payments only, specifically USDT on TRC20 or USDC on Base. You can top up your account with any whole amount from $20 to $500. This flexibility allows developers to choose the amount that best fits their budget. Additionally, there is a bonus credit system for top-ups of $50 or more, ranging from +5% to +15%. This bonus can significantly reduce the effective cost per token for larger purchases.

It is important to note that we do not accept cards, PayPal, or bank transfers. This means that developers must have a crypto wallet to fund their accounts. The process of topping up is straightforward, but it requires familiarity with cryptocurrency transactions. Users should ensure they are sending the correct token to the correct network to avoid lost funds.

Prepaid credit is charged based on real token usage. This means that you only pay for what you use, with no hidden fees or subscription costs. The credit never expires, so you can use it whenever you need it. This is particularly useful for developers who may have fluctuating usage patterns. They can top up during low-usage periods and use the credit during high-usage periods without worrying about expiration.

Errors and refusals are free, which means that you are not charged for tokens that are not successfully processed. This feature is beneficial for testing and debugging. It allows developers to experiment with different prompts and parameters without incurring additional costs. However, it is important to monitor usage to ensure that you are not wasting tokens on ineffective prompts.

When Our API Is Not the Right Choice

While our API is powerful for text-based interactions, it may not be the right choice for all developers. If you need embeddings, image generation, audio, or video generation, our service does not support these features. We focus solely on text input and output. Therefore, if your application requires multimodal capabilities, you may need to look elsewhere.

Additionally, if you require fine-tuning or model routing, our API does not offer these options. We provide a single uncensored open-weight text model with the ID 'uncensored'. If you need to switch between different models or fine-tune the model for specific tasks, our service may not meet your needs. Developers should consider these limitations before integrating our API.

Furthermore, if you need OCR or search capabilities, our API does not support these features. We are designed for chat-completions and responses. If your application requires document processing or search functionality, you may need to use a different service. It is important to evaluate your requirements carefully to ensure that our API aligns with your project goals.

Finally, if you are looking for a free unlimited tier, our service is not the right choice. We offer a trial credit of $0.50, but beyond that, you need to purchase credits using crypto. If you are looking for a completely free option, you may need to explore other providers. However, for those who need a reliable, uncensored text API with flexible pricing, our service is an excellent choice.

Addressing Common Developer Questions

Developers often ask about the best uncensored chatbots for various use cases. Threads on r/ChatbotRefugees discuss the need for reasonably priced, relatively uncensored chatbot sites with good memory. Many users are looking for alternatives to popular platforms that offer better control over content and pricing. Our API addresses these needs by providing a flexible, uncensored model with transparent pricing.

Another common question is about the quality of uncensored models. Some developers worry that uncensored models may be weak or less capable. However, our model is designed to be powerful and versatile. It can handle a wide range of topics, including adult, fictional, security-research, and controversial subjects. This makes it suitable for a variety of applications, from roleplay to research.

Users also ask about the ease of integration. Our API is OpenAI-compatible, which means that it can be easily integrated into existing applications. Developers can use standard libraries and tools to connect to our API. This reduces the learning curve and allows for quick deployment. Additionally, the API supports streaming, function calling, and JSON mode, which enhances its usability.

Finally, developers often inquire about the limits and rate limits. Our API allows 300 requests per minute per key. This is sufficient for most applications, but high-volume users may need to manage their requests carefully. By understanding these limits, developers can optimize their usage and avoid rate limit errors. This ensures a smooth user experience and efficient API usage.

Optimizing API Usage for Efficiency

To maximize the efficiency of our API, developers should optimize their prompt engineering. This includes using concise prompts that convey the necessary information without unnecessary verbosity. By reducing the number of input tokens, you can lower the overall cost of each request. Additionally, using parameters like temperature, top_p, and stop sequences can help control the output length and quality.

Another strategy is to implement caching for frequently used prompts. If certain prompts are used repeatedly, storing the responses can reduce the number of API calls needed. This is particularly useful for applications with static content or frequent queries. By caching responses, developers can save on token usage and improve response times.

Developers should also monitor their API usage closely. By tracking token consumption, they can identify patterns and optimize their usage. This includes identifying inefficient prompts or excessive output lengths. By refining these aspects, developers can reduce costs and improve the overall performance of their applications. Regular audits of API usage can lead to significant savings over time.

Finally, using the bonus credit system can help reduce costs. By topping up with larger amounts, developers can receive up to 15% bonus credit. This effectively lowers the cost per token for larger purchases. Developers should plan their top-ups strategically to maximize the benefit of the bonus system. This can lead to substantial savings, especially for high-volume users.

Troubleshooting and Error Handling

When using our API, developers may encounter various errors. The most common errors are 401 for invalid keys, 402 for no credit, and 429 for rate limits. Understanding these errors is important for maintaining a smooth integration. For 401 errors, developers should verify their API keys and ensure they are using the correct key for their account.

For 402 errors, it means that the account has run out of credit. Developers should top up their accounts using crypto to resume usage. Since errors and refusals are free, it is important to distinguish between actual usage and errors. This helps in accurate cost tracking and budgeting.

Rate limits can be a challenge for high-volume applications. Our API allows 300 requests per minute per key. If developers exceed this limit, they will receive a 429 error. To mitigate this, developers can implement exponential backoff strategies or use multiple API keys to distribute the load. This ensures that the application can handle high traffic without frequent interruptions.

Additionally, developers should handle refusals gracefully. If a request is refused due to content limits, the application should inform the user appropriately. This enhances the user experience and prevents confusion. By implementing reliable error handling and content filtering, developers can create a reliable and user-friendly application.

Frequently asked questions

How do I calculate the cost of a roleplay session?

Calculate the total input and output tokens used in the session. Multiply the input tokens by $0.15 per million and the output tokens by $0.50 per million. Sum these values to get the total cost.

What crypto networks are supported for payments?

We support USDT on TRC20 and USDC on Base. You can top up your account with any whole amount from $20 to $500 using these networks.

Is there a free tier available?

Every new account gets $0.50 of trial credit, no card needed. Beyond that, you need to purchase credits using crypto. There is no free unlimited tier.

What happens if I exceed the rate limit?

You will receive a 429 error. To avoid this, you can implement exponential backoff or use multiple API keys to distribute the load. Our limit is 300 requests per minute per key.