Estimating Heretic Project LLM API Costs
Developers often ask how to budget for uncensored API usage without hidden fees. This guide teaches a method to calculate total spend using the vendor's per-million-token pricing model, including a worked example for a typical coding task. You will learn to estimate token usage, manage prepaid credit, and understand when this service fits your workflow.

Understanding the Pricing Model
Our API charges based on token usage rather than a flat monthly fee. This pay-as-you-go model means you only pay for what you actually consume. The pricing structure is straightforward: input tokens cost $0.15 per 1,000,000 tokens, while output tokens cost $0.50 per 1,000,000 tokens. This distinction is important because output tokens often determine the bulk of your cost in complex tasks.
Unlike subscription-based services, there are no recurring monthly fees. You preload credit, and it is deducted as you make requests. This prepaid model helps you control your spending precisely. If you stop using the API, your remaining credit stays in your account. The credit never expires, so you can return to it later without losing any balance.
Errors and refusals do not incur charges. If your request fails due to a network issue or if the model refuses a request, you are not billed for those tokens. This feature protects you from spending credit on无效 operations. It also means that testing your integration with various inputs is relatively safe, as long as the requests are valid.
Understanding this model allows you to predict costs more accurately. You can estimate your monthly spend by calculating the expected token volume for your application. This transparency helps developers budget effectively without worrying about surprise bills or hidden fees associated with overages or subscription tiers.
Calculating Token Costs
To estimate your costs, you need to understand how tokens are counted. A token is a fragment of text, and the model processes both your prompt and the generated response. The context window allows up to 100,000 tokens for both prompt and completion combined. This limit applies to the total conversation history, not just the current message.
Use the formula (tokens divided by 1,000,000 times the per-million price) to calculate the cost for each part of your request. For example, if you send 500,000 input tokens, the cost is calculated by dividing 500,000 by 1,000,000 and multiplying by $0.15. This results in a specific fraction of a cent. You repeat this calculation for output tokens using the $0.50 rate.
It is important to note that the model id to send is 'uncensored'. This identifier tells the API which model to use for the completion. The model does not refuse lawful adult, fictional, security-research, or controversial topics. This uncensored behavior is a key feature for developers who need raw output without additional filtering layers.
By breaking down your usage into input and output tokens, you can see exactly where your money goes. Output tokens are typically more expensive, so optimizing your prompts to reduce unnecessary output can save money. This method gives you full visibility into your spending patterns and helps you optimize your API calls for efficiency.
Worked Example: Coding Task
Let us look at a typical coding task to see how the pricing works in practice. Suppose you are building a code assistant that generates functions based on user descriptions. You send a prompt containing the user's request and some context. The model then generates the code as the completion.
Assume your prompt uses 2,000 tokens. The model generates 500 tokens of code in response. Using the formula (tokens divided by 1,000,000 times the per-million price), the input cost is 2,000 divided by 1,000,000 times $0.15. The output cost is 500 divided by 1,000,000 times $0.50. These calculations show the exact cost for a single request.
If you run this task 100 times a day, you can multiply the single-request cost by 100 to get your daily spend. This helps you project monthly costs based on your expected usage. You can also track your token usage over time to identify trends and optimize your prompts for better efficiency.
This example demonstrates that even small token counts add up quickly if you have high volume. By monitoring your usage, you can ensure you stay within your budget. The prepaid credit system allows you to top up only when needed, keeping your cash flow efficient. You can always check your balance to see how much credit remains.
Managing Prepaid Credit
Your credit is prepaid, meaning you must add funds before you can make requests. The minimum top-up amount is $20, and the maximum is $500. You can add any whole amount within this range. This flexibility allows you to adjust your spending based on your current needs and budget.
Top-ups are accepted via cryptocurrency only. You can pay with USDT on the TRC20 network or USDC on the Base network. This crypto-only approach avoids the fees and delays associated with traditional payment methods. It also allows for faster processing of funds, so you can start using the API quickly after payment.
If you top up from $50, you may receive bonus credit ranging from 5% to 15%. This bonus increases your available balance, giving you more value for your money. It is a good incentive for larger top-ups, especially if you plan to use the API extensively over a longer period.
Since credit never expires, you do not need to worry about losing your funds if you do not use them immediately. You can add credit when it is convenient and use it later. This feature is particularly useful for developers who have fluctuating usage patterns. You can top up during low-usage periods and draw down during high-usage periods without penalty.
When This API Is Not the Right Choice
While our API is powerful for text generation, it may not be the right choice for every project. We do not offer embeddings, image generation, audio processing, or video generation. If your application requires these capabilities, you will need to integrate other services alongside our text API.
We also do not support OCR, fine-tuning, or model routing. If you need to train a custom model on your data, you will need to handle that separately. Our API serves a single uncensored open-weight text model. It does not allow you to switch between different models or routes based on your needs.
If you require real-time audio or video streaming, our API is not designed for that. It is strictly text in, text out. Developers looking for multimodal capabilities should consider other vendors for those specific features. You can use our API for the text components and integrate other tools for the multimedia parts.
Additionally, if you need a strict SLA or certifications like SOC2 or HIPAA, this service may not meet your compliance requirements. We do not claim these certifications. If your project demands high availability guarantees or specific data handling standards, you should verify these needs against our current offerings before committing.
Community Questions on Reddit
Developers on Reddit often discuss how uncensored models perform in various scenarios. Threads on r/LocalLLaMA and r/LocalLLM frequently mention model names and quantization methods. Users ask about the behavior of models like Qwen3.8 and MiniMax-M3 when used in uncensored modes.
One common question is whether the uncensored version makes a significant difference in output quality. Some users note that the text encoder behaves similarly to the standard version, but the refusal rate is lower. This means the model is more likely to generate content without blocking it, which is useful for creative writing or roleplay.
Another topic is the trade-off between model size and performance. Larger models like Qwen3.5 122B INT4 offer more context and better reasoning. However, they require more resources to run locally. Users discuss whether the uncensored version is worth the extra computational cost compared to smaller models.
Roleplay conversations are also a popular subject. Users share their experiences with complex toolsets and multiple calls to different LLMs. They discuss how the uncensored model handles detailed instructions and maintains consistency in long conversations. These insights help developers understand how to structure their prompts for best results.
Integration and Limits
Integrating our API is straightforward, as it follows the OpenAI-compatible chat-completions format. You can use the standard SDKs or HTTP requests to interact with the endpoints. The base URL is https://api.hereticproject.com/v1. You send POST requests to /v1/chat/completions for standard completions or /v1/responses for response-format outputs.
You can also use GET /v1/models to check available models. The model id to send is 'uncensored'. This ensures you are using the correct model for your requests. The API supports streaming over SSE, function calling, JSON mode, and various parameters like temperature, top_p, stop, seed, and penalties.
There is a limit of 300 requests per minute per key. If you exceed this limit, you will receive a 429 rate limit error. This limit helps maintain service stability for all users. You can monitor your usage to ensure you stay within this threshold, especially if you have high-volume applications.
Errors such as 401 invalid key or 402 no credit are handled gracefully. A 401 error means your key is invalid, while a 402 error indicates you have no credit. These errors are free, so you do not lose credit for invalid requests. This allows you to test your integration without worrying about wasting funds.
Frequently asked questions
How do I top up my credit?
You can top up your credit using USDT on TRC20 or USDC on Base. The minimum amount is $20, and the maximum is $500. Credit never expires, and you may receive a bonus for top-ups of $50 or more.
What happens if I get a 402 error?
A 402 error means you have no credit left. You will not be charged for this request, so you do not lose any funds. You need to top up your account before you can make more requests.
Can I use this API for image generation?
No, this API is text only. It does not support image, audio, or video generation. You can use it for text-based tasks like coding, writing, or roleplay, but you will need other tools for multimedia outputs.
How much does the trial credit last?
Every new account gets $0.50 of trial credit, and no card is needed to start. This allows you to test the API without any financial commitment. The trial credit is deducted from your balance as you make requests.