Integrating an Uncensored Text API: A Developer Checklist
Connecting to an uncensored text endpoint requires more than just swapping keys. Developers need a reliable integration path that handles streaming, errors, and token limits without unexpected interruptions.

Understanding the Endpoint and Model ID
When you begin integrating an uncensored text API, the first step is identifying the correct endpoint and model identifier. Our service provides a hosted, OpenAI-compatible chat-completions API. This means you can use familiar client libraries and standard request formats. The base URL for all requests is https://api.hereticllm.top/v1. You do not need to worry about complex routing or model selection logic because there is only one model available.
The model ID you must send in your requests is simply uncensored. This single model handles all text-in, text-out operations. It is an open-weight model designed to be uncensored, meaning it does not refuse lawful adult, fictional, security-research, or controversial topics. However, it does have a hard content limit regarding sexual content involving minors, which will be refused.
You have access to two primary endpoints for text generation. The POST /v1/chat/completions endpoint is the standard choice for most chat applications and text generation tasks. It supports streaming over Server-Sent Events (SSE), function calling, and various parameters like temperature and top_p. The POST /v1/responses endpoint is also available for specific use cases where a different response format might be preferred.
For verification, you can use the GET /v1/models endpoint to confirm the available models. Since there is only one model, this endpoint will return information about the uncensored model. Keeping this simple structure in mind helps you avoid unnecessary complexity when building your integration. Focus on the core text capabilities and the specific parameters supported by the API.
Authentication and Account Setup
Authentication is straightforward and designed for quick access. You can sign up using your Google account or by creating an email and password combination. Once you complete the signup process, your API key is shown immediately. This key is what you will use to authenticate your requests. It is important to store this key securely in your environment variables or secret manager.
The service operates on a prepaid credit model with no monthly subscription fees. Every new account receives $0.50 of trial credit, allowing you to test the API without any initial investment. There is no need to attach a credit card for this trial. Your paid credit never expires, so you can top up whenever you are ready to scale your usage.
When you need to add more credit, the top-up process is crypto-only. You can use USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. If you top up from $50, you may receive bonus credit ranging from 5% to 15%. This bonus structure rewards larger top-ups, making it cost-effective for developers with higher volume needs.
Remember that the key is shown immediately after signup, so make sure to copy it before you leave the page. If you lose your key, you may need to generate a new one or contact support. Keep your key private and avoid committing it to public repositories. The simplicity of the authentication process allows you to focus on building your application rather than managing complex account setups.
Handling Errors and Rate Limits
Reliable error handling is essential for any production API integration. Our API returns specific HTTP status codes to help you diagnose issues. A 401 status indicates an invalid key, which means you should check your authentication credentials. A 402 status means you have no credit left, requiring you to top up your account. A 402 error is free, so you are not charged for failed attempts due to insufficient funds.
Rate limiting is enforced at 300 requests per minute per key. If you exceed this limit, you will receive a 429 status code. Implementing exponential backoff in your retry logic is a best practice to handle these rate limits gracefully. This prevents your application from overwhelming the API during burst traffic and ensures a smoother user experience.
Errors and refusals are free, which means you are only charged for successful token usage. This is important to note when calculating your costs. If a request fails due to a network issue or an invalid parameter, you are not charged for those tokens. This can help you manage your budget more effectively, especially during development and testing phases.
Always implement logic to handle these error codes appropriately. For 401 errors, prompt the user to re-authenticate or check their key. For 402 errors, guide them to the top-up page. For 402 errors, you might want to queue requests until more credit is available. Understanding these error states helps you build a more resilient application that can handle unexpected issues without crashing.
Streaming and Response Formats
Streaming is a critical feature for chat applications, providing a better user experience by showing responses as they are generated. Our API supports streaming over Server-Sent Events (SSE). When using streaming, you can access usage information in the last chunk of the response. This allows you to track token consumption in real-time, which is useful for monitoring costs and performance.
The API supports several parameters that can be tuned for different use cases. You can adjust the temperature to control randomness, set top_p for nucleus sampling, define stop sequences to halt generation, and use a seed for reproducibility. Penalties can also be applied to discourage certain tokens. These parameters give you fine-grained control over the model's output.
Function calling is another powerful feature supported by the API. You can define tools and pass them to the model, allowing it to generate structured data or trigger specific actions. This is particularly useful for building agents that can interact with other systems or retrieve information from databases. The JSON mode ensures that the output is well-formed and easy to parse.
When implementing streaming, ensure your client library handles the SSE events correctly. Parse the chunks as they arrive and update the user interface incrementally. This creates a smooth and responsive experience for the end user. Also, consider the context window size of 100,000 tokens, which allows for long conversations and large inputs without losing context.
Token Management and Pricing
Understanding token usage is key to managing your budget. The API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Credits are charged based on real token usage, so you only pay for what you consume. The context window is 100,000 tokens, which includes both the prompt and the completion. This large window allows for extensive conversations and large documents.
To estimate costs, you can use the formula: (tokens divided by 1,000,000) times the per-million price. For example, if you send 10,000 input tokens, the cost is (10,000 / 1,000,000) * $0.15. This simple calculation helps you forecast expenses for your projects. Since errors are free, you do not need to worry about costs for failed requests.
Keep in mind that the top-up amounts are in whole dollars, ranging from $20 to $500. Bonus credit is available for top-ups of $50 or more. This structure encourages larger top-ups, which can be more cost-effective for high-volume users. The prepaid credit never expires, so you can accumulate credits over time without worrying about expiration dates.
Monitoring your token usage is recommended to stay within your budget. You can check your remaining credit and usage history through your account dashboard. This helps you plan your top-ups and avoid unexpected service interruptions. By understanding the pricing model, you can make informed decisions about your API usage and optimize your costs.
When This API Is Not the Right Choice
While our API is excellent for uncensored text generation, it may not be the right choice for everyone. If you need embeddings, image generation, audio processing, or video generation, this service does not offer those capabilities. It is strictly a text-in, text-out API. You cannot use it for OCR, fine-tuning, or model routing.
If you require a service with an SLA guarantee, certifications like SOC2 or HIPAA, or on-prem deployment options, this API might not meet your needs. We do not claim these features, so if they are critical for your enterprise requirements, you should look for a provider that offers them. Similarly, if you need benchmark scores or named customers, this independent service may not provide the level of assurance you need.
For projects that require multiple models or dynamic model routing, our single-model approach might be limiting. If you want to switch between different models based on the task, you would need to implement that logic yourself or use a different provider. Our API is designed for simplicity and consistency with one uncensored model.
Also, if you prefer traditional payment methods like credit cards, PayPal, or bank transfers, this API only accepts crypto. Top-ups are limited to USDT on TRC20 or USDC on Base. If you are not comfortable with cryptocurrency, this payment method might be a barrier. Consider these factors when deciding if our API fits your project requirements.
Addressing Community Questions on Integration
Developers in communities like r/LocalLLaMA and r/SideProject often discuss alternatives to existing gateways for production traffic. Many users are looking for reliable uncensored options that offer stable performance and transparent pricing. The consensus is that while gateways are useful for prototyping, direct integration with a single uncensored model can reduce latency and costs for production traffic.
Users frequently ask about the best way to handle streaming latency and pricing markups. Our API addresses these concerns by offering a direct connection to the uncensored model without the markup of a gateway. This can lead to lower costs and faster response times, especially for burst traffic. The ability to stream responses in real-time is a key feature that users appreciate.
Another common question is about the ease of navigation and model updates. Our API provides a straightforward interface with a single model, reducing the complexity of managing multiple models. Users can focus on building their applications rather than navigating complex dashboards. The immediate availability of the API key after signup also speeds up the integration process.
Finally, users often inquire about the reliability of the service and the handling of errors. Our API provides clear error codes and rate limits, allowing developers to implement reliable retry logic. The prepaid credit model ensures that you only pay for what you use, which is a popular feature among developers who want to control their costs. By addressing these common questions, we aim to provide a clear path for integrating an uncensored text API into your projects.
Frequently asked questions
How do I top up my account?
You can top up your account using USDT on the TRC20 network or USDC on the Base network. The minimum amount is $20, and the maximum is $500. Bonus credit is available for top-ups of $50 or more.
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 large inputs without losing context.
Does the API support streaming?
Yes, the API supports streaming over Server-Sent Events (SSE). You can access usage information in the last chunk of the response, which helps you track token consumption in real-time.
What are the error codes I might encounter?
You might encounter 401 for an invalid key, 402 for no credit, and 429 for rate limit exceeded. Errors and refusals are free, so you are only charged for successful token usage.