Try with trial credit

Uncensored AI Production Checklist

Developers integrating the heretic AI need to verify that their infrastructure handles uncensored outputs correctly without breaking on unexpected content types. This checklist ensures your application is robust, cost-effective, and fully compatible with the OpenAI-standard API while maximizing the model's creative freedom.

Last updated

Summary

  1. The API uses a single uncensored model accessible via standard OpenAI endpoints, eliminating routing overhead.
  2. Prepaid crypto billing ensures privacy with no data training on your prompts.
  3. Streaming and function calling are fully supported for dynamic user experiences.
  4. Context windows support up to 100,000 tokens, enabling deep context retention.

Verify Endpoint Compatibility

The first step is confirming that your client library connects to the correct base URL. Our service provides a standard /v1/chat/completions endpoint that mirrors the OpenAI structure exactly. This means you can swap the base URL in your existing SDK configuration without rewriting your core logic.

  • Use https://api.hereticproject.com/v1 as your base URL.
  • Send requests to POST /v1/chat/completions.
  • Query available models via GET /v1/models.

Do not assume other endpoints exist. We do not offer embeddings, images, or audio generation. If your application relies on multimodal inputs, this single-model API may not fit your needs. Stick to text-in, text-out workflows for the best results.

Test Context Window Limits

Our model supports a 100,000-token context window, allowing for extensive conversation history or large document processing. This limit applies to the combined total of input tokens and output tokens. You can retain vast amounts of prior conversation without losing coherence.

When designing your application, ensure you track token usage accurately. If you exceed the limit, the API will return an error. Use the token usage data in the final streaming chunk to monitor your consumption in real-time. This helps you stay within budget and avoid unexpected truncation of your conversation history.

Check Token Output Constraints

Each request can return a maximum of 16,000 tokens of output. If you do not specify the max_tokens parameter, the default limit is 2,048 tokens. This constraint ensures consistent performance and predictable latency for your users.

For long-form creative writing or detailed code generation, always set the max_tokens parameter explicitly. This prevents the model from cutting off mid-sentence if it runs out of space. You can also set a lower limit to control costs if you only need short responses. The API charges based on actual usage, so precise control helps manage your prepaid credit.

Enable Streaming for UX

Streaming via Server-Sent Events (SSE) provides a smoother user experience by delivering tokens as they are generated. This reduces perceived latency, especially for longer responses. The final chunk of the stream includes the total token usage, allowing you to update your billing dashboard instantly.

Implement a streaming client in your frontend or backend service. Handle partial tokens correctly to avoid breaking the UI. This approach is essential for chat interfaces where users expect immediate feedback. Without streaming, users might wait several seconds for a complete response, leading to a poor experience.

Validate Function Calling

The API supports function calling (tools) and tool choice, enabling your application to interact with external systems. You can define tools in the request and let the model decide when to use them. This is crucial for building agents that can fetch data, update databases, or perform calculations.

Ensure your tool definitions match the expected JSON schema. The model will return tool calls in the response, which you must execute and pass back to the conversation. This loop allows for complex, multi-step workflows. Test edge cases where the model might hallucinate tool parameters to ensure robustness.

Set JSON Mode for Structured Data

For applications requiring strict output formats, use the response_format parameter set to {"type": "json_object"}. This forces the model to return valid JSON, which is essential for parsing data programmatically. It reduces the need for complex post-processing or regex extraction.

Validate the JSON output on your side anyway, as no model is perfect. However, this mode significantly increases the reliability of structured data extraction. Use this for generating configuration files, database queries, or API payloads directly from natural language prompts.

Configure Temperature and Top P

Adjusting temperature and top_p controls the randomness of the model. Lower values make the output more deterministic and focused, while higher values encourage creativity and diversity. The uncensored nature of the model means it may produce varied outputs even at low temperatures.

Start with a temperature of 0.7 for a balance of creativity and coherence. Increase it for brainstorming tasks or decrease it for factual retrieval. The top_p parameter works similarly by limiting the probability mass of sampled tokens. Experiment with these settings to find the right tone for your specific use case.

Monitor Usage and Costs

Pricing is transparent: $0.15 per 1M input tokens and $0.50 per 1M output tokens. You pay only for what you use, with no monthly subscriptions. Errors and refusals are free, so you only pay for successful responses. This model is ideal for high-volume applications where cost predictability matters.

Track your token usage through the API responses. Since credits are prepaid and never expire, you can top up as needed. The lack of monthly fees means you avoid paying for idle capacity. Monitor your balance regularly to ensure you have sufficient credits for your peak usage periods.

Common questions

What is the heretic AI API?

<p>The heretic AI API is a hosted, uncensored language model service that follows the OpenAI chat-completions standard. It provides a single model optimized for creative writing, roleplay, and unfiltered coding without content refusals. It is accessible via standard SDKs by changing the base URL and API key.</p>

How do I pay for the heretic AI API?

<p>Payments are crypto-only, accepting USDT (TRC20) or USDC (Base). You can top up with any whole amount from $20 to $500. Bonus credit is added for larger top-ups: +5% from $50, +10% from $100, and +15% from $200.

Is the heretic AI model uncensored?

<p>Yes, the model is uncensored and does not refuse lawful adult, fictional, or controversial topics. It is tuned to answer without content refusals for lawful adult use. The only hard limit is the refusal of sexual content involving minors.</p>

Does heretic AI use my data for training?

<p>No, your prompts are not used for training. The service is designed for privacy, requiring only an email for account creation. Your data remains private unless you choose to share it, and it is not used to improve the base model.</p>

Get your API key

Sign up, copy your key, update the base URL. That is all you need to do.