EN ▾
Get API key

Uncensored Chat Completions API: Request Reference

This page is a working reference for sending chat requests to an OpenAI-compatible endpoint backed by one uncensored open-weight model. Every example uses the real base URL and the model ID you will use in production.

Updated

Isometric illustration of data cubes flowing from a terminal into a server, representing a chat completions API request

Key points

Private APIs isolate your data and ensure consistent model behavior without third-party interference.

Prepaid token billing scales costs directly with usage, eliminating hidden subscription fees.

OpenAI-compatible endpoints allow you to drop the API into existing SDK workflows with minimal code changes.

Strict privacy guarantees mean your prompts are never used for training, essential for sensitive content.

What the endpoint looks like

If you searched for an uncensored chat completions api, you most likely want one thing: the familiar OpenAI request shape, but with a model that does not refuse ordinary adult requests. That is what this service exposes. The wire format is the same one the OpenAI SDKs already speak, so there is nothing new to learn beyond three values.

  • Base URL: Change the base URL and key in any OpenAI SDK, set the model to uncensored, and your existing chat code runs unchanged.
  • Model ID: Two endpoints exist: POST /v1/chat/completions and GET /v1/models. Streaming, tool calling and JSON mode are supported.
  • Auth: an A full key allows 8 concurrent requests and 300 requests per minute; a 429 tells you which limit you hit. header
  • Auth: an Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, and failed or refused requests are not charged. header

Two methods are available. POST /v1/chat/completions does the actual work, and GET /v1/models lists the model so client tools that probe the endpoint on start-up are satisfied. There is exactly one model behind the service: an open-weight model run by an independent provider and tuned to answer without content refusals for lawful adult use. It is not the official API of any big vendor and it is not a router that picks between models. One hard limit applies on top of everything else: no sexual content involving minors, ever.

The service handles text only. There is no image, audio or video generation, no embeddings and no fine-tuning. If a client library asks for those, it will not find them here.

Your first request with curl

Get a key first. The API key page walks you through sign-up with Google or with email and password, and new accounts can claim a $0.50 trial credit with one click, valid for 7 days, with no payment needed. Export the key and send a request:

export API_KEY="sk-your-key-here"

curl https://api.unfilteredaichatbot.top/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [
      {"role": "system", "content": "You are a blunt, concise assistant."},
      {"role": "user", "content": "Explain what a context window is in two sentences."}
    ],
    "temperature": 0.7
  }'

The response is a standard chat completion object. The text lives at choices[0].message.content, the stop reason at choices[0].finish_reason, and token counts under usage. Those counts are what you are billed on, so log them from day one.

To check that the model is visible to your key, call the list endpoint:

curl https://api.unfilteredaichatbot.top/v1/models \
  -H "Authorization: Bearer $API_KEY"

Python and Node with the official SDKs

You do not need a special client. Install the official openai package and override two constructor arguments.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.unfilteredaichatbot.top/v1",
    api_key="sk-your-key-here",
)

resp = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "You write tight, vivid prose."},
        {"role": "user", "content": "Describe a rainy harbor town in four sentences."},
    ],
    temperature=0.8,
    top_p=0.95,
    max_tokens=300,
)

print(resp.choices[0].message.content)
print(resp.usage.prompt_tokens, resp.usage.completion_tokens)

The Node version is the same idea:

import OpenAI from "openai";

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

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Give me three names for a fantasy tavern." }],
});

console.log(resp.choices[0].message.content);

Keep the key in an environment variable and never ship it in browser code. If you build a front end, put a small server of your own in between and let that server hold the key.

Parameters that are passed through

The usual sampling controls reach the model: temperature, top_p, stop, seed and the frequency and presence penalties. max_tokens is optional. If you leave it out, the completion may use whatever remains of the 100,000-token window, which counts the prompt and the reply together.

A few practical notes from using these settings with creative and conversational work:

  • Start at temperature 0.7 for chat and lower it toward 0.2 for extraction or classification.
  • Change either temperature or top_p first, not both at once, so you can tell which one moved the output.
  • Set seed when you want repeatable runs while testing prompts. Treat repeatability as best effort rather than a guarantee.
  • Use stop sequences to cut off a model that likes to write the next speaker's line for them.
  • Raise the penalties slightly if long outputs start looping on the same phrases.

The request body can be up to 8 MB. That is far more than a normal prompt, but it matters if you paste large documents or send many messages of history.

Streaming, tools and JSON mode

Streaming. Add "stream": true and the response arrives as server-sent events, one chunk per delta, with usage reported at the end. A streamed request holds its concurrency slot until the stream finishes, which matters when you size your worker pool.

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Tell a short story about a lighthouse keeper."}],
    stream=True,
    stream_options={"include_usage": True},
)

for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Tool calling. Pass tools and optionally tool_choice. When the model decides to call a function, you get tool_calls in the message, which are also streamed if you stream. Run the function yourself, then append the result as a message with role: "tool" and the matching tool_call_id, and call the endpoint again.

{
  "model": "uncensored",
  "messages": [{"role": "user", "content": "What is the weather in Lisbon?"}],
  "tools": [{
    "type": "function",
    "function": {
      "name": "get_weather",
      "description": "Current weather for a city",
      "parameters": {
        "type": "object",
        "properties": {"city": {"type": "string"}},
        "required": ["city"]
      }
    }
  }],
  "tool_choice": "auto"
}

JSON mode. Set response_format to {"type": "json_object"} to get a syntactically valid JSON object back. Also say in the prompt that you want JSON and describe the keys, because the setting constrains the format, not the content. Validate the result in your own code anyway; a truncated reply from a low max_tokens can still cut an object in half.

Limits, headers and error handling

A full key allows 8 concurrent requests and 300 requests per minute. A trial key is tighter, with 2 concurrent requests and 60 per minute, which is plenty for testing a prompt but not for a load test. Each response carries headers you can read in code: X-Request-Id (quote it if you contact support), X-Balance-USD, X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency.

When you go over a limit, the API answers with HTTP 429. The error code tells you which one:

Error codeMeaningWhat to do
rate_limitedToo many requests per minuteBack off and spread requests out
concurrencyToo many requests at the same timeQueue work, cap your worker pool at 8
429 with Retry-After: 5Temporary overloadWait the 5 seconds, then retry

A small retry wrapper covers all three cases:

import time
from openai import OpenAI, RateLimitError

client = OpenAI(base_url="https://api.unfilteredaichatbot.top/v1", api_key="sk-your-key-here")

def ask(messages, tries=5):
    delay = 5
    for _ in range(tries):
        try:
            return client.chat.completions.create(model="uncensored", messages=messages)
        except RateLimitError:
            time.sleep(delay)
            delay = min(delay * 2, 30)
    raise RuntimeError("still rate limited after retries")

If you see concurrency errors often, the usual cause is forgotten streams that were never read to the end. Close or finish every stream so the slot is released.

What a request costs

Billing is pay as you go from prepaid credit. Input costs $0.15 per 1M tokens and output costs $0.50 per 1M tokens. There is no subscription, credit does not expire, and a failed or refused request is not charged. Here is a worked example for a request with a 2,000-token prompt and a 500-token reply:

  • Input: 2,000 / 1,000,000 x $0.15 = $0.0003
  • Output: 500 / 1,000,000 x $0.50 = $0.00025
  • Total: $0.00055, or about 1,800 such requests per dollar

The $0.50 trial credit therefore covers roughly 900 requests of that size, which is enough to test a real integration. Top-ups start at $20, accept any whole amount up to $500, and add a bonus of 5% from $50, 10% from $100 and 15% from $200. Payment is by crypto (USDT on TRC20, USDC on Base). The pricing page lists the current terms, and the quickstart in the docs repeats the request basics in a shorter form.

Prompts sent through the API are not used for training. If you are deciding whether this setup suits a private deployment of your own app, the page on private LLM API use covers that angle.

Questions and answers

Which model ID do I send?

Send uncensored as the model value in every chat completion request. There is a single model behind the endpoint, so no other value is needed.

Do I need a special SDK?

No. Any OpenAI SDK or compatible client works once you change the base URL to https://api.unfilteredaichatbot.top/v1 and use your own key.

Is there a limit on the prompt size?

The context window is 100,000 tokens, shared by the prompt and the reply, and the request body can be up to 8 MB.

Can I get embeddings or images from the same key?

No. The service is text only, with chat completions and a model list. It does not offer embeddings, image, audio or video generation, or fine-tuning.

What happens if a request is refused or fails?

Failed or refused requests are not charged, so you only pay for completions that were actually produced.

Your key is one form away

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

Get API key