EN ▾
Uncensored, OpenAI-compatible API for developershttps://api.apertus.cc/v1
Get API key

Integrating Uncensored LLM API: A Developer’s Guide

Developers often seek uncensored LLM APIs to handle text-only workflows without heavy moderation filters. This guide covers configuration, SDK settings, and a practical checklist for integrating our service into your applications.

A glowing server rack connected to data lines, representing an uncensored API connection.

Understanding the Uncensored Text Model

Our API serves a single uncensored open-weight text model identified by the ID "uncensored". This model is designed to provide text-in, text-out responses without the typical safety refusals found in commercial alternatives. The term uncensored here means the model does not refuse lawful adult, fictional, security-research, or controversial topics. It is important to note that the model still enforces a hard content limit regarding sexual content involving minors, which will be refused.

When you send a request to our API, you are interacting with this specific model. Unlike services that offer model routing or multiple model versions, our API focuses on this one uncensored option. This simplifies integration because you do not need to manage different model IDs or switch between versions. The consistency of a single model allows for predictable behavior in your application logic.

The model supports a context window of 100,000 tokens, which includes both the prompt and the completion. This large context window allows you to send extensive instructions or long documents without losing earlier information. For developers building applications that require deep context retention, this capacity is a significant advantage over smaller context windows offered by other providers.

Since the API is text-only, it does not handle images, audio, video, or embeddings. If your workflow requires multi-modal inputs, you will need to handle those separately before sending the text to our API. This focus on text-only workflows ensures that the API remains fast and reliable for pure language tasks.

Endpoint Configuration and Base URL

To integrate our API, you need to configure your HTTP client to point to the correct base URL. The base URL for our service is https://api.apertus.cc/v1. This URL is used for all standard chat-completions endpoints. You will send POST requests to /v1/chat/completions for standard text generation and POST requests to /v1/responses for response-formatting tasks. Additionally, you can use GET /v1/models to verify the available models.

The API follows the OpenAI-compatible format, which means you can use existing SDKs designed for OpenAI. This compatibility reduces the learning curve for developers who are already familiar with the OpenAI ecosystem. You can send parameters such as temperature, top_p, stop sequences, and seed to control the model's behavior. The API also supports function calling, allowing you to define tools that the model can use during generation.

When configuring your client, ensure that you include the API key in the Authorization header. The key is generated immediately upon signup, so you can start testing right away. If you encounter a 401 error, it indicates an invalid key, while a 402 error means you have no credit remaining. A 429 error signals that you have hit the rate limit of 300 requests per minute per key.

It is important to handle these error codes appropriately in your application. For example, if you receive a 402 error, you may need to prompt the user to add credit. If you hit the rate limit, you should implement a retry mechanism with exponential backoff. Proper error handling ensures a smooth user experience even when issues arise.

SDK Settings and Parameter Control

Our API supports several parameters that allow you to fine-tune the model's output. You can set the temperature to control the randomness of the output, with higher values producing more creative responses. The top_p parameter allows you to control the nucleus sampling, which helps in generating more coherent text. You can also specify stop sequences to halt generation when certain patterns are encountered.

Function calling is another key feature of our API. You can define tools in your request, and the model will return structured data that you can use to trigger actions in your application. This is particularly useful for building agents or assistants that need to interact with external systems. The API supports JSON mode, which ensures that the output is valid JSON, making it easier to parse and use in your code.

Streaming is supported over Server-Sent Events (SSE), allowing you to receive responses in real-time. This is essential for applications that require immediate feedback, such as chat interfaces. The usage information is included in the last chunk of the stream, so you can track token consumption accurately. This feature helps you manage costs by providing visibility into how many tokens are being used.

When configuring your SDK, make sure to handle the streaming responses correctly. You should process each chunk as it arrives and update the UI accordingly. This ensures that users see the response as it is generated, rather than waiting for the entire response to complete. Proper handling of streaming responses enhances the responsiveness of your application.

Pricing and Credit Management

Our API uses a prepaid credit model based on real token usage. The pricing is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Errors and refusals are free, which means you only pay for successful completions. There is no monthly subscription fee, and your paid credit never expires. This model allows you to pay only for what you use, which can be cost-effective for variable workloads.

To add credit, you can use cryptocurrency. We accept USDT on the TRC20 network or USDC on the Base network. You can top up with any whole amount between $20 and $500. If you top up with $50 or more, you receive a bonus credit ranging from 5% to 15%. This bonus credit provides additional value for larger purchases. Note that we do not accept credit cards, PayPal, or bank transfers, so you must use crypto for top-ups.

When estimating costs, it is helpful to calculate the token usage for your requests. You can use the formula (tokens divided by 1,000,000) times the per-million price to determine the cost. For example, if you send 100,000 input tokens and 50,000 output tokens, the cost would be calculated based on these volumes. This helps you budget for your API usage effectively.

Every new account receives $0.50 of trial credit, which allows you to test the API without needing to add credit immediately. This trial credit is a good way to verify that your integration is working correctly before committing to a purchase. You can use this credit to send a few test requests and ensure that the responses are as expected.

Signup and Key Generation Process

Signing up for our API is straightforward. You can continue with Google or use an email and password to create an account. Once you have created an account, your API key is shown immediately. This key is what you will use to authenticate your requests to the API. It is important to store this key securely, as it provides access to your account and credits.

The key is generated at the time of signup, so you do not need to wait for approval or verification. This allows you to start using the API right away. You can use the key to send requests to the API endpoints and start generating text. If you lose your key, you may need to generate a new one, so keep it safe.

When you first sign up, you will receive $0.50 of trial credit. This credit is sufficient for testing the API and verifying that your integration is working correctly. You can use this credit to send a few test requests and ensure that the responses are as expected. Once you have verified the integration, you can add more credit using crypto.

The signup process is designed to be simple and quick, allowing developers to start using the API without delay. There is no need to provide a credit card or undergo a lengthy verification process. This makes it easy for developers to try out the API and decide if it meets their needs.

When Our API Is Not the Right Choice

While our API is excellent for text-only workflows, it may not be the right choice for all applications. If your application requires image, audio, or video generation, our API does not support these features. You will need to use a different service for multi-modal tasks. Similarly, if you need embeddings for semantic search, our API does not provide this capability.

Our API also does not support OCR, fine-tuning, or model routing. If you need to fine-tune a model for a specific domain, you will need to use a different service. Additionally, if you want to route requests to different models based on the task, our API does not offer this feature. It serves only the one uncensored text model.

If you require an SLA with specific uptime guarantees, our API does not claim any SLA percentages. Similarly, if you need certifications such as SOC2, HIPAA, or ISO, our API does not offer these. These certifications are not part of our service offering, so you should verify if they are critical for your use case.

Finally, if you prefer to pay with credit cards or PayPal, our API may not be suitable. We only accept crypto top-ups, so you must be comfortable with cryptocurrency payments. If you need invoice-based billing or bank transfers, you may need to look for a different provider. Understanding these limitations helps you decide if our API fits your specific needs.

Addressing Community Questions on Integration

Developers in communities like r/LocalLLM often ask about the best uncensored models for local deployment. They frequently discuss models like Qwen3.6 35B and Gemma-4, wondering if these are better than our API. While local models offer full control, our API provides a hosted solution that requires no hardware investment. The choice depends on whether you prioritize local privacy or ease of integration.

Another common question is whether uncensored models bring more happiness by avoiding moderation. Users often find that online providers like ChatGPT or Claude are overly cautious with challenging topics. Our API addresses this by not refusing lawful adult or controversial topics. This makes it a good choice for applications that need unrestricted text generation.

Some users also ask about the difference between Apertus and other models like DeepSeek or Mistral. While these models have their own strengths, our API focuses on providing a simple, uncensored text experience. We do not claim to be better than every other model, but we offer a reliable option for those who need uncensored text without the complexity of managing local models.

Finally, developers often inquire about the partnership between Apertus and Lumo. While this partnership brings the Apertus model to Lumo, our API remains an independent service. You can use our API directly without being tied to any specific platform. This independence allows you to integrate the API into your own applications without dependency on other services.

Frequently asked questions

How do I calculate the cost of a request?

You can calculate the cost by dividing the total tokens by 1,000,000 and multiplying by the per-million price. Input tokens cost $0.15 per million, and output tokens cost $0.50 per million. Errors and refusals are free.

What payment methods are accepted?

We only accept cryptocurrency top-ups. You can pay with USDT on the TRC20 network or USDC on the Base network. Credit cards, PayPal, and bank transfers are not accepted.

Does the API support image generation?

No, the API is text-only. It does not support image, audio, video, or embedding generation. You need to handle multi-modal tasks separately.

How do I get started with the API?

Sign up with Google or email to get an API key immediately. You receive $0.50 of trial credit to test the API. You can then add more credit using crypto if needed.