EN ▾
Get API key

How to Host an Uncensored LLM via OpenAI-Compatible API

Hosting an uncensored LLM provides a direct, refusal-free inference endpoint tailored for adult, creative, or unrestricted content generation. By using an OpenAI-compatible architecture, you gain immediate SDK integration without the overhead of model routing or complex vendor lock-in.

How to Host an Uncensored LLM via OpenAI-Compatible API

Updated

Key points

  • Use a single-model architecture to eliminate routing complexity and ensure consistent uncensored behavior.
  • An OpenAI-compatible endpoint allows you to swap in your API key and base URL for immediate drop-in integration.
  • Transparent per-token billing with prepaid credits, topped up by card or crypto, ensures you only pay for actual usage, with errors and refusals counted as free.
  • Privacy is maintained by keeping prompts out of training data, with a hard block on minor sexual content regardless of the model's general tolerance.

Why Host an Uncensored LLM?

Standard LLM APIs often apply strict content filters that can refuse lawful adult themes, nuanced creative writing, or controversial topics. Hosting an uncensored LLM means you control the inference layer, ensuring the model responds to your prompts without arbitrary refusals. This is critical for applications requiring raw, unfiltered text generation, such as roleplay engines, creative writing assistants, or research tools analyzing sensitive data.

Unlike aggregators that route requests through multiple models, a hosted uncensored LLM API typically serves a single, tuned model. This simplifies debugging and ensures consistent behavior across your application. You avoid the unpredictability of model versioning or sudden policy changes from large providers. The result is a reliable, deterministic text-in/text-out service that respects your input parameters.

Choosing the Right Architecture

The most efficient architecture for uncensored inference is a single-model setup. Aggregators often introduce latency and complexity by routing requests to various models, which can dilute the uncensored characteristics of your primary model. By hosting a single large language model, you maintain full control over the inference pipeline and ensure that the model's tuning for content tolerance is applied consistently.

Look for an API that exposes only the necessary endpoints: POST /v1/chat/completions for generation and GET /v1/models for metadata. Avoid services offering embeddings, image generation, or fine-tuning unless you need them, as these add unnecessary overhead. A focused API reduces latency and cost, providing a pure text generation service that integrates smoothly with existing OpenAI-compatible clients.

API Endpoint Structure

An OpenAI-compatible API follows a standard RESTful structure. To generate text, you send a POST request to /v1/chat/completions with your messages and parameters. The base URL is typically something like https://api.uncensoredgpt.cc/v1. You must include your API key in the Authorization header.

The GET /v1/models endpoint returns a list of available models, which in a single-model setup will usually list only one entry. This confirms the service is active and ready to accept requests. There are no complex routing tables or fallback mechanisms; the API is designed for direct, predictable interaction.

  • POST /v1/chat/completions: Main endpoint for text generation.
  • GET /v1/models: Endpoint to verify model availability.
  • Authorization: Bearer token required for all requests.

Handling Context Windows

A 100,000-token context window allows for substantial input and output within a single request. This capacity is essential for long-form content generation, complex reasoning tasks, or processing large documents. The context window includes both the prompt (input) and the completion (output). You must ensure that the total token count does not exceed this limit.

Be mindful of the maximum output length. The context window is 100,000 tokens, and there is no separate output cap. If you do not specify a max_tokens parameter, the response can run to the end of the window. Plan your prompts accordingly to maximize the utility of the available context without hitting hard limits.

Streaming and Real-Time Output

Streaming is supported via Server-Sent Events (SSE). This allows you to receive tokens in real-time as they are generated, improving the user experience for interactive applications. The API streams token usage information in the last chunk, providing accurate billing data even during streaming sessions.

To enable streaming, set the stream parameter to true in your request. The response will be a series of events, each containing a partial completion. This is ideal for chat interfaces, live code generation, and any scenario where latency matters. You can parse these events using standard HTTP client libraries.

Tool Usage and Function Calling

The API supports function calling, allowing the model to generate structured data or invoke external tools. You can define function schemas in the tools parameter and specify tool_choice to control how the model decides to use them. This enables complex workflows where the LLM can fetch data, perform calculations, or trigger actions based on user input.

JSON mode is also available via the response_format parameter set to {"type": "json_object"}. This ensures the model outputs valid JSON, which is important for programmatic integration. You can adjust parameters like temperature, top_p, and seed to control creativity and reproducibility. These features make the API suitable for building sophisticated AI-driven applications.

Token Management and Billing

Billing is transparent and based on real token usage. The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free, meaning you only pay for successful completions. There are no monthly fees or subscriptions; you preload credit, which never expires.

Top-ups are accepted by crypto (USDT on TRC20, USDC on Base). Minimum top-up amounts range from $20 to $500, with bonus credits for larger amounts. A new account receives $0.50 in trial credit valid for 7 days, no card required. Claim this credit with one click on your API key page. Limits include 300 requests per minute and 8 concurrent requests per key.

Privacy and Data Handling

Privacy is a key consideration for many users. The API does not use your prompts for training data, ensuring that your input remains private. Account creation requires only an email address, with no phone number needed. This minimizes personal data collection while providing full access to the API.

Content restrictions are minimal but specific. The model does not refuse lawful adult, fictional, or controversial topics. However, a hard limit applies: sexual content involving minors is always blocked. This ensures compliance with basic legal standards while maintaining a highly permissive environment for other content types.

Getting Started with Your Key

Signing up is straightforward. You can use "Continue with Google" or create an account with an email and password. Once registered, your API key is displayed immediately, allowing you to start making requests without delay. There is no phone number verification required, and the process is designed for speed.

To integrate, update your client's base URL to https://api.uncensoredgpt.cc/v1 and set the API key. Use the model ID "uncensored" for all requests. This single-model approach ensures consistency and eliminates the complexity of routing. You can start streaming, calling functions, or generating long texts immediately.

Questions and answers

Is this API suitable for NSFW content?

Yes, the model is uncensored and does not refuse lawful adult, fictional, or controversial topics. It is designed to handle NSFW content without arbitrary restrictions, except for a hard block on sexual content involving minors.

How do I pay for the API?

Payments are accepted by crypto (USDT on TRC20, USDC on Base). Top-ups range from $20 to $500, and credits never expire.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. There is no separate output cap, and if max_tokens is not specified, the response can run to the end of the window.

Does the API use my data for training?

No, prompts are not used for training. The service is designed to be private, requiring only an email for account creation and ensuring that your input data remains yours.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

On this page