EN ▾
Get your key

Budgeting Your Uncensored API Usage

Developers often ask how to predict monthly costs for high-volume uncensored text generation. This article teaches a method for estimating token usage and calculating expenses using standard per-million-token pricing models.

Minimalist dashboard interface showing token usage metrics with neon accents in a dark void

Understanding Token-Based Pricing

Most modern language models charge based on token usage rather than per-request fees. A token is roughly equivalent to four characters of text, though the exact conversion varies by language and encoding. When you send a prompt and receive a completion, both parts count toward your total usage. This means long context windows can significantly impact your bill if not managed carefully.

Our API uses a straightforward pricing structure for text input and output. You pay $0.15 per million input tokens and $0.50 per million output tokens. This separation allows you to see exactly how much you spend on sending data versus receiving it. Since the model is uncensored, it does not refuse lawful adult or controversial topics, which can lead to longer responses than filtered models might produce.

To estimate your costs, you need to track the number of tokens in your prompts and the number of tokens in the generated completions. You can do this by using the tokenizer provided in your preferred SDK or by approximating based on word count. Remember that the context window is 100,000 tokens, so very long conversations will consume more input tokens over time.

It is important to note that errors and refusals are free. If your request fails due to a network issue or if the model refuses a specific input, you are not charged for those tokens. This feature reduces waste during development and testing phases, allowing you to experiment without worrying about accidental charges from failed requests.

Estimating Token Usage for Your Project

Before you can budget effectively, you must understand how tokens are counted in your specific use case. If you are building a chat application, every message in the conversation history is sent as part of the prompt. This means that as the conversation grows, the input cost per request increases, even if the response length remains constant.

You can estimate your monthly usage by calculating the average number of tokens per request and multiplying it by the expected number of requests. For example, if your average prompt is 1,000 tokens and your average response is 500 tokens, you can calculate the cost per request. Then, multiply this by your expected daily volume to get a daily estimate.

Consider the impact of streaming versus non-streaming responses. Streaming allows you to receive tokens as they are generated, which can be useful for real-time applications. However, the total token count remains the same regardless of how you receive them. The API supports streaming over Server-Sent Events (SSE), and you can access usage information in the last chunk of the stream.

Use the temperature, top_p, and stop parameters to control the length and randomness of the output. Lower temperatures and specific stop sequences can help reduce the number of output tokens, thereby lowering your costs. Experiment with these settings to find the balance between quality and expense for your specific application.

Calculating Costs with the API Formula

Once you have your token estimates, you can apply the pricing formula to determine your costs. The formula is simple: divide the number of tokens by 1,000,000 and multiply by the per-million price. For input tokens, the price is $0.15, and for output tokens, the price is $0.50. This allows you to see the distinct cost of sending data versus receiving it.

Let us look at a concrete example. Suppose you send 10,000 input tokens and receive 2,000 output tokens in a single request. The input cost is calculated by dividing 10,000 by 1,000,000 and multiplying by $0.15. The output cost is calculated by dividing 2,000 by 1,000,000 and multiplying by $0.50. Add these two values together to get the total cost for that request.

You can scale this calculation to your monthly volume. If you expect 1,000 requests per day, multiply the single-request cost by 30 to get your monthly estimate. This method gives you a clear picture of your expected expenses without needing to wait for the end of the billing cycle.

Remember that our API charges by real token usage. If you send a request that results in an error, you are not charged. This means your actual costs may be lower than your estimates if you encounter frequent errors during development. Use this to your advantage by testing thoroughly before scaling up your usage.

Managing Credits and Payments

Our API uses a prepaid credit system, meaning you pay for what you use before you use it. You can top up your account with cryptocurrency, specifically USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. This limits the amount of capital you need to commit at any given time.

If you top up with $50 or more, you receive a bonus credit ranging from 5% to 15%. This bonus is added to your account and can be used for future requests. It provides a small incentive for larger top-ups and helps you get more value from your credits. The bonus credit is charged at the same rate as your regular credit.

There are no monthly fees or subscriptions. Your credits do not expire, so you can top up when prices are favorable or when you anticipate high usage. This flexibility allows you to manage your budget according to your project's needs without the pressure of a recurring bill.

Since payments are crypto-only, you do not need to provide credit card or bank details. This can be appealing for developers who value privacy or want to avoid traditional payment processors. Just ensure you have the correct network for your chosen cryptocurrency to avoid any transfer issues.

When Our API Is Not the Right Choice

While our API is excellent for text generation, it may not be the right choice for every developer. If you need image, audio, or video generation, our service does not support these modalities. We focus solely on text input and output, so if your project requires multimodal capabilities, you will need to look elsewhere.

Similarly, if you need embeddings for semantic search or document retrieval, our API does not provide this feature. You would need to use a different service for embeddings and then use our API for text generation. This separation means you will have to manage multiple APIs for your project.

If you require fine-tuning your own model on specific data, our API does not offer this capability. You can use our API to generate text, but you cannot train a custom model through this service. If fine-tuning is essential for your use case, you should consider a provider that offers model training.

Finally, if you need on-premises deployment for data sovereignty reasons, our hosted service may not fit your needs. We provide a cloud-based API, so your data is processed on our servers. If you need to keep your data entirely within your own infrastructure, you should look for a provider that supports local deployment.

Addressing Community Questions on Reddit

Developers often ask about the best uncensored models for roleplay and erotic roleplay. Threads on r/LocalLLM discuss various models, with some users recommending specific tools like Heretic or SillyTavern. The consensus is that the model's ability to handle diverse topics without refusal is key for immersive roleplay experiences.

Our API serves an uncensored open-weight model that does not refuse lawful adult or controversial topics. This makes it suitable for roleplay applications where users want to explore various scenarios without the model imposing its own moral judgments. You can send text and receive text, allowing for flexible integration with your roleplay engine.

Some users also ask about models that are uncensored but not necessarily focused on roleplay. They want an unfiltered LLM that tells the truth without being politically correct. Our API fits this description by providing a model that generates text based on the input without unnecessary filtering, making it versatile for different types of content generation.

When choosing a model for roleplay, consider the context window and response length. Our API supports a 100,000 token context window, which allows for long conversations. This is beneficial for roleplay where the history of the interaction is important for maintaining consistency and immersion.

Optimizing Your API Integration

To optimize your integration, use the seed parameter to ensure reproducibility in your responses. This is useful for debugging and testing, as it allows you to get the same output for the same input. You can also use the stop parameter to prevent the model from generating excessive text, which can help control costs.

Implement error handling for 401, 402, and 429 status codes. A 401 error indicates an invalid key, a 402 error means you have no credit, and a 429 error indicates you have hit the rate limit of 300 requests per minute. Handle these errors gracefully to ensure a smooth user experience.

Use the function calling feature to integrate external tools and data sources into your application. This allows the model to call functions and return structured data, which can be useful for complex tasks. The API supports JSON mode, ensuring that the output is valid JSON that your application can parse easily.

Finally, monitor your usage regularly to ensure you stay within your budget. You can check your credit balance and usage history through the dashboard. Since credits do not expire, you can plan your top-ups strategically to take advantage of bonus credits when available.

Frequently asked questions

How do I calculate the cost of a single request?

Divide the number of input tokens by 1,000,000 and multiply by $0.15. Then, divide the number of output tokens by 1,000,000 and multiply by $0.50. Add these two values together to get the total cost for that request.

What happens if my request fails?

Errors and refusals are free. You are not charged for tokens in failed requests, which reduces waste during development and testing phases.

Can I use a credit card to top up?

No, we only accept crypto. You can top up with USDT on TRC20 or USDC on Base. The minimum amount is $20, and the maximum is $500.

Does the API support image generation?

No, the API serves only text input and output. It does not support image, audio, or video generation. If you need multimodal capabilities, you will need to use a different service.