EN ▾
Uncensored, OpenAI-compatible API for developershttps://api.apertus.cc/v1
Get API key

Budgeting Uncensored LLM API Costs

Developers often ask how to calculate token usage for budgeting uncensored API calls. This article teaches a method for estimating costs using input and output token ratios with our API's specific rates.

Developer workspace with laptop showing code and floating token shapes

Understanding Token-Based Pricing

When integrating an uncensored LLM API into your application, understanding how tokens translate to cost is essential for accurate budgeting. Unlike flat-rate subscriptions, our service charges based on actual usage. This model ensures you only pay for the text processed, making it predictable for variable workloads.

The pricing structure is straightforward: we charge $0.15 for every one million input tokens and $0.50 for every one million output tokens. Input tokens include the prompt you send, while output tokens are the response generated by the model. This separation allows you to track the efficiency of your prompts and the verbosity of the model's responses.

It is important to note that errors and refusals do not incur charges. If a request fails or is refused due to content limits, you are not billed for those tokens. This feature protects your budget from unexpected costs during development or when dealing with edge cases in your data.

By focusing on token counts rather than request counts, you gain a precise view of your consumption. This method is particularly useful for applications with varying lengths of input and output, allowing you to optimize your prompt engineering to reduce costs without sacrificing quality.

Calculating Input and Output Ratios

To effectively budget, you must estimate the ratio of input tokens to output tokens for your specific use case. This ratio varies significantly depending on the complexity of your prompts and the desired length of the responses. For example, a simple question might have a low input-to-output ratio, while a complex code generation task might have a higher output volume.

Start by sending a representative sample of prompts to the API and measuring the token counts returned in the usage statistics. Our API provides usage data in the last chunk of streaming responses, allowing you to monitor this in real-time. This data helps you establish a baseline for your average token consumption per request.

Once you have average token counts, you can apply the pricing formula. Multiply the average input tokens by $0.15 and divide by one million. Then, multiply the average output tokens by $0.50 and divide by one million. Adding these two values gives you the cost per request. This calculation helps you predict monthly expenses based on your expected request volume.

Keep in mind that the context window supports up to 100,000 tokens for both prompt and completion together. If your inputs are very long, they consume a significant portion of this window, potentially increasing costs. Optimizing your prompt structure to be concise can help manage these costs effectively.

Managing Credit and Top-Ups

Our API operates on a prepaid credit system, meaning you must top up your account to continue making requests. There are no monthly fees or subscriptions, so you pay only for what you use. This model is ideal for developers who want full control over their spending and avoid recurring charges.

Top-ups are accepted only via cryptocurrency. You can use USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. This restriction ensures efficient processing of transactions and aligns with our infrastructure for handling payments.

Additionally, we offer bonus credit for larger top-ups. If you top up from $50, you receive a bonus ranging from 5% to 15%. This bonus provides extra value and can help extend your budget further. It is a strategic way to reduce your effective cost per token if you plan to use the API extensively.

Remember that paid credit never expires. You can top up when convenient and use the credit over time. This flexibility allows you to align your funding with your project's cash flow, ensuring you never lose your balance due to expiration dates.

Testing with Trial Credit

Before committing to a top-up, you can test the API using trial credit. Every new account receives $0.50 of trial credit, and no credit card is required to sign up. This allows you to verify the integration, test the model's behavior, and estimate token usage without any financial risk.

During the trial phase, you can experiment with different prompt structures and parameters to see how they affect token consumption. This is a valuable opportunity to refine your application's logic and ensure that the uncensored model meets your needs before scaling up.

Once the trial credit is exhausted, you will need to top up to continue using the service. The transition is smooth, and you can immediately start using your prepaid credits. This approach ensures that you are fully informed about the costs and capabilities before making a financial commitment.

The trial credit also allows you to explore features like streaming, function calling, and JSON mode. You can test these features to see how they impact token usage and integrate them into your application effectively.

When Our API Is Not the Right Choice

While our API is designed for text generation, it is important to recognize when it might not be the best fit for your project. If you need embeddings, image generation, audio processing, or video generation, our service does not support these features. We focus solely on text-in, text-out capabilities.

Additionally, if you require OCR, fine-tuning, or model routing, our API does not offer these options. We provide a single uncensored open-weight model, so you cannot switch between different models or fine-tune the model for specific tasks. If these features are critical to your application, you may need to consider a different provider.

Our API also has a rate limit of 300 requests per minute per key. If your application requires higher throughput, you might need to implement rate limiting on your end or consider a provider with higher limits. Understanding these limitations helps you make an informed decision about whether our API aligns with your technical requirements.

Finally, if you need on-premises deployment or specific certifications like SOC2 or HIPAA, our hosted service may not meet your needs. We are an independent service, and we do not offer on-premises options or claim these certifications. Ensure that your compliance requirements align with our service model before integrating.

Addressing Community Questions on Uncensored Models

Developers often discuss the best uncensored models on platforms like r/LocalLLM and r/lumo. A common question is whether there are better uncensored models than Qwen3.6 35B A3B Uncensored. Users share their experiences with various models, highlighting the importance of finding a model that balances performance with minimal censorship.

Another frequent topic is the happiness derived from using uncensored LLM models. Many developers feel that online providers like ChatGPT, Gemini, and Claude are overly moderating, leading to ignored or unanswered challenging questions. Our API addresses this by offering a model that does not refuse lawful adult, fictional, security-research, or controversial topics.

Users also discuss the importance of clear context and starting over to avoid implicit self-censorship. Our API supports this by providing a straightforward interface where you can manage the context window and parameters like temperature and top_p. This allows you to fine-tune the model's behavior to suit your specific needs.

Finally, the community values transparency and openness in AI projects. Our API is hosted and OpenAI-compatible, serving an uncensored open-weight model. This aligns with the community's desire for accessible and transparent AI solutions, making it a suitable choice for developers seeking reliability and performance.

Optimizing Your API Integration

To maximize the value of our API, optimize your integration by using its features. We support streaming over SSE, function calling, JSON mode, and parameters like temperature, top_p, stop, seed, and penalties. These features allow you to create dynamic and responsive applications.

Use streaming to provide real-time feedback to your users, enhancing the user experience. Function calling enables your application to interact with external tools and services, expanding the capabilities of your AI-driven solutions. JSON mode ensures structured output, making it easier to parse and process the model's responses.

Adjust parameters like temperature and top_p to control the creativity and determinism of the model's outputs. This allows you to tailor the model's behavior to your specific use case, whether you need consistent results or more diverse responses. Experiment with these settings to find the optimal configuration for your application.

Monitor your token usage and costs regularly to ensure you stay within your budget. Use the usage data provided in the API responses to track your consumption and identify areas for optimization. By continuously refining your integration, you can achieve the best performance and cost-efficiency for your uncensored LLM API needs.

Frequently asked questions

How do I calculate the cost of a request?

Multiply the input tokens by $0.15 and divide by one million. Then, multiply the output tokens by $0.50 and divide by one million. Add these two values to get the total cost for that request.

What happens if I make an error or get a refusal?

Errors and refusals are free. You are not charged for tokens in requests that fail or are refused due to content limits.

Can I use credit cards to top up my account?

No, top-ups are accepted only via crypto. You can use USDT on the TRC20 network or USDC on the Base network.

Is there a minimum top-up amount?

Yes, the minimum top-up amount is $20. The maximum is $500. You can receive bonus credit for top-ups of $50 or more.