fr ▾
Open account

Heretic llm API Quickstart

This quickstart guides you through integrating the uncensored LLM API with your existing tools. You will configure authentication, send your first request, and handle streaming responses using standard OpenAI-compatible SDKs.

Authentication & Base URL

The base URL for all requests is HTTPS://api.llmheretic.com/v1. You need an API key to authenticate your requests. Generate one on the Get API key page via Google or email. Include the key in the Authorization header as a Bearer token.

  • Header: Authorization: Bearer YOUR_API_KEY

Each account holds one active key. Generating a new key replaces the old one immediately. Keep your key secure to avoid unauthorized token usage.

POST /v1/chat/completions

Send text to the uncensored model via POST /v1/chat/completions. The model answers without refusing lawful adult, fictional, or controversial topics. Set model to uncensored and provide your messages array.

This endpoint accepts standard chat parameters. Use temperature to control randomness or stop sequences to halt generation. The model returns generated text in the content field.

A 100,000-token context window allows long inputs. Max output is 16,000 tokens per request. Errors and refusals do not consume your prepaid credits.

curl https://api.llmheretic.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "summarize the main arguments in the attached pdf"}]
  }'

Python SDK Integration

Use the official OpenAI Python SDK to interact with the API. Configure the base URL to point to our endpoint. Set the API key for authentication. This approach works with any OpenAI-compatible client library.

Install the library via pip. Initialize the client with your credentials. Call chat.completions.create() with the model name uncensored. The response object contains the generated text and token usage statistics.

from openai import OpenAI

client = OpenAI(base_url="https://api.llmheretic.com/v1", api_key="YOUR_KEY")

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)

Node SDK Integration

Integrate with Node.js using the openai npm package. Point the baseURL to our API endpoint. Provide your API key in the apiKey field. This setup mirrors standard OpenAI configurations.

Import the client. Create an instance with your configuration. Send a completion request using the uncensored model. Handle the response data to access the generated content.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.llmheretic.com/v1", apiKey: process.env.API_KEY });

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);

Streaming Responses (SSE)

Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text updates. Token usage details appear in the final chunk.

Stream responses reduce perceived latency for long outputs. Process each chunk as it arrives. This method is ideal for real-time applications or chat interfaces. The model supports standard streaming parameters.

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Tell the story in second person."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Rate Limits & Constraints

Each API key supports 300 requests per minute. You can have 8 concurrent requests simultaneously. The maximum request body size is 8 MB. These limits ensure stable performance for all users. Exceeding limits returns a 429 status code.

Authentication failures return 401. Insufficient credit returns 402. The model ID is always uncensored. No other models are available. Credits never expire. Top up with crypto only. USDT (TRC20) or USDC (Base) are accepted. Minimum top-up is $20. Bonus credits apply for larger amounts.

Common questions

What is the heretic LLM API?

It is a hosted, OpenAI-compatible chat-completions API serving one uncensored large language model. Text goes in, text comes out. The model does not refuse lawful adult, fictional, security-research, or controversial topics. It is not GPT, Claude, Gemini, Grok, DeepSeek, Qwen, or Llama.

How do I pay for the uncensored LLM service?

Credit is topped up with crypto only: USDT (TRC20) or USDC (Base). Any whole amount from $20 to $500 is accepted. You get +5% bonus credit from $50, +10% from $100, and +15% from $200. Paid credit never expires and errors are free.

What are the context window and output limits?

The context window is 100,000 tokens for prompt plus completion together. The max output is 16,000 tokens per request. If <code>max_tokens</code> is not set, the default output is 2,048 tokens. Streaming responses return token usage in the last chunk.

Access your API key instantly

Sign up, copy the key, update your endpoint URL. Simple configuration.