EN ▾

How to Use the Uncensored Chat API | Uncensored Chat

The uncensored chat API provides a straightforward, OpenAI-compatible endpoint for developers who need a single, unrestricted language model without the complexity of aggregators or hidden moderation layers. It delivers text responses based on one dedicated inference engine, with transparent prepaid token billing and no subscription fees.

How to Use the Uncensored Chat API | Uncensored Chat

Updated

Key points

  • The API uses a single uncensored model accessible via standard OpenAI SDKs with the base URL https://api.uncensoredchat.top/v1.
  • Pricing is prepaid and transparent: $0.15 per million input tokens and $0.50 per million output tokens, with no monthly fees.
  • Top-ups are accepted by crypto (USDT on TRC20, USDC on Base), offering bonus credit for larger deposits.
  • The service supports streaming, function calling, and JSON mode, with a 100k context window and strict rate limits.

Understanding Uncensored Inference

When developers seek an uncensored chat solution, they often face the trade-off between flexibility and cost. Aggregators mix multiple models, introducing latency and unpredictable behavior. Our approach is simpler: we run one dedicated, open-weight large language model on our own servers. This ensures consistent behavior and removes the noise of model routing.

The model is tuned to answer without content refusals for lawful adult use, making it ideal for creative writing, roleplay, or security research where standard models might block nuanced topics. It is not GPT, Claude, or any other vendor's model. The only hard limit that always applies is the refusal of sexual content involving minors. All other content, from controversial opinions to explicit fictional scenes, is allowed. This single-engine approach means you know exactly what you are getting: text in, text out, with no hidden aggregation logic.

API Key Setup and Authentication

Getting started with the uncensored api is designed to be immediate. You can sign up using "Continue with Google" or by providing an email and password. No phone number is required, and no credit card is needed for the initial trial. Upon creation, your API key is shown immediately on the screen.

Each account is limited to one active key. If you generate a new key, the old one is replaced. This key is used to authenticate your requests to the base URL: https://api.uncensoredchat.top/v1. This URL is compatible with the official OpenAI SDKs and any client that supports the OpenAI protocol. Simply update your client's base URL and set the API key in the authorization header. The uncensored ai api key is the only credential you need to start sending requests.

Constructing the Chat Completion Payload

To use the uncensored chat api, you send a POST request to /v1/chat/completions. The payload follows the standard OpenAI format, which makes integration straightforward if you are already familiar with OpenAI's API. You must specify the model ID as "uncensored". This tells the server to route your request to our dedicated inference engine.

The context window supports 100,000 tokens total, including both the prompt and the completion. There is no separate output cap. If you do not specify max_tokens, the response can run to the end of the window. This is sufficient for most standard use cases and allows for longer outputs when needed. You can also set parameters like temperature, top_p, stop, and seed to control the randomness and reproducibility of the responses. The request body is limited to 8 MB.

Handling Streaming Responses

For applications that benefit from real-time feedback, the API supports streaming via Server-Sent Events (SSE). When you set stream: true in your request, the server returns a stream of chunks. Each chunk contains a portion of the response. The final chunk includes the token usage statistics, allowing you to track consumption accurately.

Streaming is particularly useful for chat interfaces where users expect immediate text appearance. It reduces the perceived latency compared to waiting for the full response. The uncensored chatbot api ensures that all standard parameters are supported in streaming mode. You can parse the stream using any standard SSE client library. Note that errors or refusals are not charged, so you can safely stream without worrying about costs for failed requests.

Enabling Function Calling and Tools

Modern LLM applications often require structured interactions. Our uncensored llm api supports function calling, also known as tools. You can define a set of functions in the tools parameter of your request. The model will then decide when to call a function based on the user's input. This is useful for tasks like extracting data from text, performing calculations, or triggering external actions.

You can specify tool_choice to force the model to call a specific function or let it decide. The response_format parameter can be set to {"type": "json_object"} to ensure the output is valid JSON, which is helpful when parsing function arguments. This combination of tools and JSON mode makes the uncensored api a powerful choice for building autonomous agents or complex workflows that require structured data extraction.

Forcing JSON Output Mode

When integrating LLMs into software pipelines, reliable output format is critical. By setting response_format to {"type": "json_object"}, you instruct the model to return only valid JSON. This eliminates the need for complex regex parsing or error handling for malformed text. It is especially useful when you are extracting structured data or generating configuration files.

This mode works in conjunction with function calling but can also be used for simple data extraction tasks. The model will attempt to adhere to the JSON structure, though it is still bound by the model's inherent capabilities. For the best results, provide clear instructions in the system prompt about the expected JSON schema. This feature makes the unfiltered chatbot api a reliable choice for backend services that require predictable, machine-readable outputs.

Managing Rate Limits and Concurrency

To ensure fair usage and stability, the nsfw api enforces specific rate limits. You are allowed 300 requests per minute per API key. Additionally, you can have up to 8 concurrent requests at the same time per key. This concurrency limit is important for applications that send multiple parallel requests, such as batch processing or real-time chat systems.

If you exceed these limits, you will receive a 429 Too Many Requests error. It is recommended to implement exponential backoff in your client to handle these errors gracefully. The 8 MB request body limit also applies to each request. These limits are consistent and transparent, allowing you to plan your infrastructure accordingly. Unlike some providers, we do not hide these limits behind complex tier structures; they apply uniformly to all prepaid users.

Billing and Token Calculation

Pricing is straightforward: $0.15 per 1M input tokens and $0.50 per 1M output tokens. You pay only for what you use, with no monthly subscriptions or hidden fees. Credit is topped up via crypto, and errors or refusals are free. This means you only pay for successful completions. The prepaid credit never expires, so you can top up when convenient.

Top-ups are accepted by crypto (USDT on TRC20, USDC on Base). You can deposit any whole amount from $20 to $500. For larger deposits, we offer bonus credit: +5% for deposits of $50 or more, +10% for deposits of $100 or more, and +15% for deposits of $200 or more. You can check your balance and usage in the dashboard. If you make a mistake, such as a double charge, you can request a fix through the Support page, but credit itself is not refunded as it never expires.

Privacy and Content Limits

Privacy is a key concern for many developers. When you sign up, you only need an email address. Your prompts are not used for training the model, ensuring that your data remains private. This is a significant advantage for companies using the API for proprietary content or sensitive information. The uncensored chat model is designed for lawful adult use, but it does enforce a hard limit on sexual content involving minors. Requests containing such content will be refused.

This single content limit allows for a wide range of other adult themes, fictional violence, or controversial opinions without unnecessary censorship. The model is not GPT, Claude, or any other vendor's model, so its behavior is unique to our tuning. By keeping the inference engine simple and dedicated, we ensure that the privacy and content policies are consistent and predictable. You can trust that your data is not being used to improve other models, and your usage is not monitored for advertising purposes.

Questions and answers

Is the uncensored chat API compatible with OpenAI SDKs?

Yes, the API is fully compatible with the official OpenAI SDKs and any client that supports the OpenAI protocol. You simply need to update the base URL to https://api.uncensoredchat.top/v1 and set your API key. The model ID to use is "uncensored".

What payment methods are accepted for top-ups?

We accept top-ups by crypto (USDT on TRC20, USDC on Base). You can deposit any whole amount between $20 and $500. Larger deposits receive bonus credit.

Does the model refuse all adult content?

No, the model is tuned to answer without content refusals for lawful adult use. It allows sexual content, violence, and controversial topics. The only hard limit that always applies is the refusal of sexual content involving minors.

Are there any monthly fees or subscriptions?

No, there are no monthly fees or subscriptions. You pay for token usage via prepaid credit. Errors and refusals are free, and your credit never expires.

Your key is one form away

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

Get API keyRead the docs