Troubleshooting Heretic Project LLM Output Issues
Developers often face unpredictable behavior when integrating uncensored text models into production workflows. This guide addresses common failure points, from token exhaustion to rate limiting, ensuring your application remains stable.

Understanding Context Window Limits
One of the most frequent issues developers encounter involves the context window. Our API provides a 100,000 token window, which includes both the prompt and the completion. This limit is shared, meaning every message in a conversation consumes from this same pool. If you are building a chat application, you must track the cumulative token count of all prior messages. When the window fills, the model cannot generate new text until space is freed.
To troubleshoot this, check the token usage in your response headers or by calculating the input and output sizes. If you receive unexpected truncation, it is likely because the conversation history exceeded the 100,000 token limit. You should implement a strategy to trim older messages or summarize past interactions to free up space for new inputs.
Another common mistake is assuming the context window resets between sessions. It does not. Each request to /v1/chat/completions must include the full conversation history up to the current point. If you send a large prompt without including previous context, the model may lose the thread of the conversation. Always ensure your client code manages the message array carefully.
For long-form content generation, consider breaking the task into smaller chunks. Instead of sending a single massive prompt, send smaller segments and append the results. This approach keeps the context window usage predictable and prevents sudden failures when the limit is reached. It also allows you to monitor token consumption more closely during development.
Managing Prepaid Credit and Crypto Top-ups
Our API uses a prepaid credit system charged by real token usage. Errors and refusals are free, but successful completions cost credits. The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. If your application stops receiving responses, the first thing to check is your credit balance. A zero balance results in a 402 error, indicating no credit is available.
Top-ups are available only via crypto: USDT on TRC20 or USDC on Base. You can top up any whole amount from $20 to $500. There are no cards, PayPal, or bank transfers. If you recently topped up but still see errors, verify that the transaction was confirmed on the blockchain. Credit is applied after confirmation, so delays in network confirmation can cause temporary service interruptions.
Bonus credit is available for top-ups of $50 or more, ranging from +5% to +15%. This bonus is added to your account automatically. However, the bonus does not extend the expiration of your main credit, as paid credit never expires. You should monitor your balance regularly to avoid unexpected service stops during high-traffic periods.
If you are troubleshooting a 402 error, ensure that you are using the correct API key. The key is shown immediately upon signup. If you generated a new key, make sure your application is using the latest one. Old keys remain valid until revoked, so switching keys without updating your configuration can lead to confusion about which account holds the credits.
Handling Rate Limits and Errors
The API enforces a limit of 300 requests per minute per key. If you exceed this limit, you will receive a 429 rate limit error. This is a hard limit, so you must implement exponential backoff in your client code. Retry logic should wait longer between each attempt to avoid overwhelming the server. Sudden spikes in traffic can trigger this limit, so monitor your request volume closely.
Other common errors include 401 for invalid keys and 402 for no credit. A 401 error means the API key is missing, incorrect, or expired. Check your headers to ensure the key is sent correctly. A 402 error means you have run out of credits. In both cases, the model does not consume tokens, so you are not charged for failed attempts. This is useful for testing error handling without spending credits.
When troubleshooting 429 errors, check if your application is sending too many parallel requests. Limiting concurrency can help stay within the rate limit. You can also use the streaming feature to process responses as they arrive, which can reduce the time your application holds connections open. This helps manage resources more efficiently during high-load scenarios.
Always log your error codes and response times. This data helps you identify patterns, such as specific times of day when rate limits are hit more frequently. If you consistently hit the limit, consider upgrading your top-up amount to ensure you have enough credits, though the rate limit is per key, not per credit amount. You can generate multiple keys to distribute the load if needed.
Optimizing Parameters for Stability
The API supports parameters like temperature, top_p, stop, seed, and penalties. These parameters control the model's behavior. For example, temperature affects randomness, while top_p controls the diversity of token selection. Setting these parameters incorrectly can lead to unstable or unexpected outputs. Always test these values in a controlled environment before deploying to production.
Function calling and JSON mode are also available. Function calling allows the model to return structured data, which is useful for integrating with other tools. JSON mode ensures the output is valid JSON, reducing parsing errors. If you encounter issues with malformed JSON, check your schema definition and ensure the model is constrained to the correct format. This is particularly important for automated workflows where human intervention is not possible.
Streaming over SSE is supported, with usage information provided in the last chunk. This allows you to process responses in real-time, which can improve user experience. However, streaming adds complexity to error handling. You must handle partial responses and ensure that the final chunk contains the complete data. If the connection drops, you may need to retry the request.
Penalties can be used to discourage certain tokens or patterns. This is useful for controlling the model's style or preventing repetitive output. However, overusing penalties can make the output unnatural. Test different penalty values to find the right balance for your specific use case. Always document the parameters you use so you can replicate results during troubleshooting.
When Our API Is Not the Right Choice
Our API is designed for uncensored text generation. It does not support embeddings, image, audio, or video generation. If your application requires multi-modal capabilities, our API is not the right choice. You would need to integrate with a different service for those features. Our API serves only text in, text out, so it is best suited for pure text workflows.
Similarly, if you need fine-tuning, model routing, or OCR, our API does not offer these features. You would need to look for a vendor that provides these capabilities. Our API focuses on providing a reliable, uncensored text model with a large context window. It is not a full suite of AI tools. Be clear about your needs before integrating.
If you require an SLA with specific uptime guarantees, our API does not claim any SLA percentages. It is a best-effort service. If uptime is critical for your business, you may need to consider a vendor that offers formal SLAs. Our API is designed for developers who can handle occasional downtime and do not require strict uptime commitments.
Also, if you need on-prem deployment, our API is hosted. You cannot deploy the model on your own servers. If data privacy or local control is a priority, our hosted service may not meet your needs. Check the documentation for current prices and limits if you are considering other options. Our API is ideal for those who want a simple, uncensored text model without the complexity of self-hosting.
Addressing Community Questions on Reddit
Discussions on Reddit often revolve around the behavior of uncensored models and their performance. Users on r/LocalLLaMA and r/LocalLLM frequently ask about the differences between various quantized models and their refusal rates. For instance, threads discuss models like Qwen3.8 and MiniMax-M3, noting their refusal rates and context window sizes. While our API uses a specific uncensored model, the community's interest in refusal rates is relevant. Our model is designed to be uncensored, meaning it does not refuse lawful adult, fictional, or controversial topics, except for sexual content involving minors.
Another common topic is the impact of quantization on model performance. Users wonder if quantized models are as accurate as full-precision versions. In general, quantization reduces memory usage but may slightly affect output quality. Our API serves the model in a way that balances performance and cost. If you are comparing our API to local models, note that our hosted service handles the infrastructure, so you do not need to manage GPU resources.
Threads also discuss the utility of text encoders for image generation. Some users question whether an uncensored text encoder improves image generation accuracy. The consensus is that it mainly affects the prompt refinement for spicy content, but the core encoding remains the same. For our API, the focus is on text output, so the text encoder's role is less critical. However, the principle of prompt refinement applies to all text models.
Finally, users often ask about the value of heretic or uncensored versions of popular models. The discussion highlights the importance of having access to models that do not filter content. Our API provides this access through a simple API interface. If you are looking for a model that behaves similarly to these community-favorite uncensored versions, our API is a viable option. Always check the vendor documentation for the latest model versions and features.
Best Practices for Integration
Integrating our API requires careful attention to token management and error handling. Always use the uncensored model ID for the uncensored model. The base URL is https://api.hereticproject.com/v1. Ensure your client library is configured to use this URL. If you are using a standard OpenAI-compatible client, you may need to adjust the base URL to point to our service.
Use the streaming feature for better user experience. Streaming allows you to display responses as they are generated, which reduces perceived latency. It also helps in managing large outputs, as you do not need to wait for the entire response before processing it. However, remember that usage is reported in the last chunk, so you must wait for the final chunk to get the token count.
Implement reliable logging to track token usage and errors. This helps you identify issues early and optimize your usage. Monitor your credit balance regularly to avoid unexpected stops. If you are using function calling, ensure your schema is well-defined to avoid parsing errors. Test your integration thoroughly before deploying to production.
Finally, stay updated with the API documentation for any changes to limits or features. While we do not claim SLAs or certifications, we strive to provide a reliable service. If you encounter any issues, check the error codes and retry logic. Our API is designed to be simple and effective for uncensored text generation. By following these best practices, you can ensure a smooth integration experience.
Frequently asked questions
How do I check my credit balance?
You can check your credit balance by making a request to the API and observing the response headers or by using the dashboard if available. Errors like 402 indicate no credit, while 401 indicates an invalid key.
What happens if I exceed the rate limit?
If you exceed 300 requests per minute, you will receive a 429 error. You should implement exponential backoff to retry your requests. The limit is per key, so using multiple keys can help distribute the load.
Can I use the API for image generation?
No, the API is text-only. It does not support image, audio, or video generation. You would need to use a different service for multi-modal tasks. Our API focuses on uncensored text generation.
How do I top up my credit?
You can top up using USDT on TRC20 or USDC on Base. The minimum amount is $20, and the maximum is $500. Bonuses are available for top-ups of $50 or more.