EN ▾
Get API key

Integrating Heretic LLM API: Setup and Checklist

Developers often struggle to integrate uncensored LLM APIs into existing workflows without hitting safety filters or unexpected rate limits. This guide walks through the technical setup for Heretic LLM, covering SDK configuration, token management, and a practical checklist for consistent performance.

Server rack with glowing blue data streams representing an uncensored AI model

Understanding the Uncensored Model Approach

Many developers search for uncensored LLM APIs to bypass the heavy safety filters common in mainstream models. The goal is often to get raw, unfiltered text output for creative writing, roleplay, or data extraction tasks where standard moderation might block valid responses. Heretic LLM addresses this by serving a single uncensored open-weight text model. This means the model does not refuse lawful adult, fictional, security-research, or controversial topics, providing a consistent text-in, text-out experience.

It is important to note that uncensored does not mean unlimited. The model still has a hard content limit regarding sexual content involving minors, which are refused. For other types of content, the model is designed to be permissive. This approach appeals to developers who want to avoid the unpredictability of model routing or the need to manage multiple model versions. Instead, you send the model id 'uncensored' and receive a consistent output format.

When integrating, remember that the model is hosted and accessible via a standard API. You do not need to manage local hardware or deal with the complexities of running large language models on your own servers. This reduces the operational overhead significantly. The focus is on providing a reliable text generation service that respects the user's input without unnecessary censorship, making it ideal for applications where tone and freedom of expression are critical.

However, the uncensored nature of the model means you must handle content filtering on your own if needed. The API provides the text; it does not enforce your specific business rules beyond the hard limit. This gives you full control over how the content is used in your application. You can build your own safety layers on top of the raw output if your use case requires it. This flexibility is a key advantage for developers who need precise control over the generation process.

API Endpoints and Base URL Configuration

Setting up the API begins with identifying the correct base URL and endpoints. The base URL for the service is https://api.hereticllm.cc/v1. This URL is used for all API requests. The service supports standard OpenAI-compatible endpoints, which makes integration straightforward for developers familiar with common LLM APIs. The primary endpoint for chat completions is POST /v1/chat/completions. This is where you send your prompts and receive the generated text responses.

In addition to chat completions, the API supports POST /v1/responses for alternative response formats and GET /v1/models to retrieve information about available models. These endpoints allow you to interact with the API in a flexible manner. The GET /v1/models endpoint is useful for verifying the model id 'uncensored' is available. This ensures that your application is configured correctly before sending heavy workloads.

It is important to note that the API is text-only. There are no embeddings, image, audio, or video generation capabilities. There is also no OCR, fine-tuning, or model routing. If your application requires these features, you will need to integrate other services alongside this API. For example, if you need image generation, you might use a separate image API and combine the results with the text output from Heretic LLM. This modular approach allows you to tailor the stack to your specific needs.

When configuring your SDK, ensure that the base URL is set correctly. This prevents authentication errors and ensures that your requests reach the correct server. The API uses standard HTTP methods, so you can use any HTTP client library in your preferred programming language. The consistency with OpenAI's API structure means that you can often swap out the base URL in existing code with minimal changes. This reduces the learning curve and speeds up the integration process.

Authentication and Key Management

Authentication is handled via API keys, which are generated when you sign up for an account. You can sign up using Google or with an email and password. Once you create an account, the API key is shown immediately, allowing you to start making requests right away. This key is essential for authenticating your requests and is used in the Authorization header. It is important to store this key securely and avoid exposing it in client-side code or public repositories.

The API key is tied to your prepaid credit balance. You can top up your credit using cryptocurrency, specifically USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. There are no cards, PayPal, or bank transfers accepted. This crypto-only payment method ensures fast transactions and avoids the delays associated with traditional payment processors. Bonus credit is available for top-ups of $50 or more, ranging from +5% to +15%.

Errors related to authentication include 401 for an invalid key and 402 for no credit. If you receive a 401 error, check that your key is correct and has not been revoked. If you receive a 402 error, you need to top up your credit. The API also has a rate limit of 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. It is important to implement retry logic in your application to handle these rate limits gracefully.

Every new account receives $0.50 of trial credit, so you do not need a card to start testing. This trial credit allows you to explore the API without committing to a purchase. It is a good way to verify that your integration is working correctly before spending real credit. The prepaid credit never expires, so you can top up whenever you need more. This flexibility is beneficial for developers who want to manage their budget effectively.

SDK Integration and Parameter Settings

Integrating the API into your application involves configuring the SDK with the correct parameters. The API supports streaming over Server-Sent Events (SSE), which allows you to receive responses in chunks as they are generated. This is useful for improving the user experience by showing text as it is being typed. The usage information is included in the last chunk of the stream, so you can track token consumption in real-time.

The API also supports function calling, JSON mode, and various parameters such as temperature, top_p, stop, seed, and penalties. These parameters allow you to fine-tune the model's output. For example, you can set the temperature to control the randomness of the output. A higher temperature results in more creative and varied responses, while a lower temperature produces more deterministic and focused outputs. The seed parameter allows you to reproduce specific outputs, which is useful for testing and debugging.

When using the API, it is important to handle the response format correctly. The API returns text in a standard format that can be parsed by most SDKs. You can also use JSON mode to ensure that the output is valid JSON, which is useful for structured data extraction. Function calling allows you to define tools that the model can use to perform specific actions, such as fetching data or performing calculations. This extends the capabilities of the model beyond simple text generation.

It is recommended to test your integration with a variety of inputs to ensure that the parameters work as expected. You can use the trial credit to experiment with different settings without risking your main balance. Pay attention to the rate limits and implement backoff strategies if you encounter 429 errors. This will help ensure that your application remains stable and responsive under load. The API is designed to be easy to integrate, but careful configuration is key to optimal performance.

Token Budgeting and Cost Management

Understanding token costs is essential for managing your API usage efficiently. The pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free, so you do not pay for failed requests. This pricing model is straightforward and predictable. You can estimate your costs by calculating the number of tokens in your prompts and responses. The formula for cost is (tokens divided by 1,000,000) times the per-million price.

For example, if you send a prompt with 10,000 tokens and receive a response with 5,000 tokens, the cost is calculated based on these counts. The context window is 100,000 tokens, which includes both the prompt and the completion. This large context window allows you to process long documents or conversations without losing context. However, it also means that you need to be mindful of token usage to avoid exceeding your budget.

To manage costs, you can monitor your token usage regularly. The API provides usage information in the response, which you can log and analyze. This helps you identify patterns and optimize your prompts to reduce token consumption. For example, you can truncate long inputs or use more concise prompts to save tokens. You can also use the seed parameter to reproduce outputs and avoid redundant requests.

Since the prepaid credit never expires, you can top up whenever you need more. This flexibility allows you to manage your budget effectively. It is also important to note that the API does not charge for errors, so you can experiment with different parameters without worrying about wasting credit on failed requests. This makes it easier to test and refine your integration. By keeping track of your token usage, you can ensure that your application remains cost-effective over time.

When This API Is Not the Right Choice

While the uncensored LLM API is powerful for text generation, it is not the right choice for every use case. If your application requires image, audio, or video generation, this API will not suffice. The service is strictly text-in, text-out. There are no multimodal capabilities. If you need to generate images or videos, you will need to integrate a separate API for those tasks. Similarly, if you need OCR to extract text from images, this API does not provide that functionality.

Another limitation is the lack of embeddings. If your application relies on vector search or semantic similarity, you will need to use a different service for embeddings. The API does not support fine-tuning, so you cannot customize the model's behavior through additional training. If you need a model that can be fine-tuned for a specific domain, this API may not meet your needs. Additionally, there is no model routing, so you cannot switch between different models dynamically.

The API also has a hard content limit on sexual content involving minors. If your application requires more nuanced content filtering, you will need to implement your own filters. The uncensored nature of the model means that it does not enforce strict safety guidelines beyond this limit. This is a trade-off for the freedom of expression that the model provides. Developers who need strict safety controls might find this limiting.

Finally, the API is hosted and does not offer on-prem deployment. If you need to run the model on your own servers for data privacy or latency reasons, this API may not be suitable. The service is designed for developers who want a simple, hosted solution without the complexity of managing infrastructure. If you need full control over the model's deployment, you might prefer a local model or a service that offers on-prem options. Understanding these limitations helps you decide if this API is the right fit for your project.

Community Insights and Reddit Discussions

Developers often discuss the challenges of finding truly uncensored LLM models on Reddit. Threads on r/LocalLLM highlight the search for models that are free from alignment-based filtering or fine-tuned 'safety' layers. Many users report that mainstream models like ChatGPT or Gemini are overly moderating, ignoring challenging questions or discussion points. This has led to a demand for models that can handle controversial topics without instant refusal.

Users frequently recommend searching for keywords like 'uncensored', 'heretic', 'aggressive', or 'abliterated' on platforms like Hugging Face. Some users have found success with specific models like Qwen3.6 35B A3B Uncensored, noting that it provides a more realistic conversation experience. However, others point out that all LLMs have some level of censorship, and the degree varies. The key is finding a model that aligns with your specific needs for freedom and flexibility.

Another common theme is the trade-off between local and cloud-based models. Some users prefer running models locally on their hardware, such as RTX 4070 Super or Apple M4 chips, to avoid censorship entirely. Others opt for cloud-based models for convenience and scalability. The discussion often revolves around the balance between control and ease of use. Developers need to consider their hardware capabilities and budget when choosing between local and cloud solutions.

For those using cloud APIs, the focus is on finding a service that offers genuine uncensored output without hidden filters. The Reddit community values transparency and reliability. They often share tips on how to configure models to minimize censorship, such as using specific system prompts. However, they also caution that no model is perfectly uncensored. The goal is to find a model that comes as close as possible to unrestricted conversation. This ongoing discussion helps developers make informed decisions about which models to use for their projects.

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. Top-ups of $50 or more receive a bonus of 5% to 15%.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for long conversations and document processing.

Does the API support image generation?

No, the API is text-only. It does not support image, audio, video, or OCR generation. You will need a separate service for multimodal tasks.

How is pricing calculated?

Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free. You pay for actual token usage.