EN ▾
Get API key

Install Uncensored AI: Local Setup or Hosted API

If you searched how to install uncensored ai, you have two real options: download a model and run it on your own hardware, or skip the installation and call a hosted model over HTTP. This article walks through both and shows the shortest working path.

Updated

Key points

  • Running a model locally gives full control but needs enough memory, patience with downloads and your own tuning.
  • A hosted API needs no install: one key, one base URL and the model ID uncensored.
  • Any OpenAI SDK or OpenAI-compatible app works after you change the base URL and key.
  • New accounts can claim $0.50 of trial credit with one click, no card needed.
Isometric illustration of a laptop connected to a hosted server, replacing a local PC install

The short answer: install a model, or install nothing

The honest answer to how to install uncensored ai is that it depends on what you mean by install. An uncensored language model is just an open-weight model that was tuned to answer without content refusals for lawful adult use. There is no single program called "Uncensored AI" that you download. You either pull the model weights and run them through a local runtime, or you send requests to a server that already runs the model for you.

The first route costs you disk space, GPU or RAM, and setup time. The second route costs a few cents of usage and about five minutes. Neither is better in every case, so here is how to choose.

Local installHosted API
Setup timeAn hour or more, plus the model downloadAround five minutes
HardwareYour own machine must hold the model in memoryNone, any laptop or server that can send HTTPS
CostHardware and electricityPay per token from prepaid credit
Works offlineYesNo
Context windowLimited by your memory100,000 tokens
Works with OpenAI SDKsDepends on the runtimeYes, by design

If you need to work offline or you already own a strong GPU, a local runtime is a fair choice. If you want to try the model today, build an app around it, or you have a laptop that struggles with large files, the API is the quicker path.

Option 1: run an open-weight model on your own machine

A local install has three moving parts: a runtime, a model file, and a way to talk to them. Popular runtimes such as Ollama and llama.cpp let you pull a quantized model and chat with it from a terminal or a local HTTP port. Many of them expose an OpenAI-style endpoint on localhost, which is useful because the same client code can later point at a hosted server.

What to check before you start

  • Memory. A model has to fit in GPU memory or system RAM. Larger models need many gigabytes, and quantized files trade some quality for a smaller footprint. Read the model card before you download.
  • Disk. Weights are large files. Make sure you have room for more than one version while you experiment.
  • Context length. A long context window takes extra memory on top of the weights. A model that loads fine can still run out of memory once the conversation grows.
  • Which model. Names such as "uncensored" or "abliterated" on community model pages describe different tuning methods. Quality varies a lot, so read the notes and test with your own prompts.

Typical local steps

  1. Install a runtime from its official site.
  2. Pull or download the model file you picked.
  3. Start the runtime and send a test prompt.
  4. If you want to use it from code, enable its local server and note the port.

The details differ between runtimes, so follow the documentation of the one you choose. The main limit is hardware: a model that is too big for your machine will be slow or will not load at all, and no setting fixes that.

Option 2: use the hosted API, no install

The hosted route skips weights, drivers and memory planning. You get an OpenAI-compatible endpoint backed by one open-weight model that runs on an independent provider's servers. It is text only, with a 100,000-token context window shared by prompt and reply.

  1. Create an account. Sign up with Google, or with an email and password, on the API key page.
  2. Claim the trial. Once you are signed in, one click on the same page adds $0.50 of trial credit. It lasts 7 days, needs no card, and is limited to one per person.
  3. Copy your key. Treat it like a password and keep it out of public repositories.
  4. Send a request. The base URL is https://api.uncensoredaimodels.top/v1 and the model ID is uncensored.

Here is the smallest possible test. It uses the standard chat completions endpoint and a bearer token.

export UNC_KEY="paste-your-key-here"

curl https://api.uncensoredaimodels.top/v1/chat/completions \
  -H "Authorization: Bearer $UNC_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [
      {"role": "user", "content": "Say hello in one sentence."}
    ]
  }'

If you get a JSON reply with a choices array, the install is finished. You can also list available models with GET /v1/models to confirm that the key works. The quickstart in the docs covers the same request in more detail.

Python and Node setup

You do not need a special library. The official OpenAI packages work once you override the base URL and key.

Python

pip install openai
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.uncensoredaimodels.top/v1",
    api_key=os.environ["UNC_KEY"],
)

reply = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "You are a concise writing assistant."},
        {"role": "user", "content": "Give me three opening lines for a noir story."},
    ],
    temperature=0.8,
)

print(reply.choices[0].message.content)

Node.js

npm install openai
import OpenAI from "openai";

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

const stream = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Write a two-line poem about rain." }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}

The second example streams tokens as they are produced, using server-sent events. Streaming, tool calling, JSON mode and the usual sampling settings such as temperature, top_p, stop and seed are all passed through.

Point an existing app at the API

Many chat front ends and developer tools have a field for a custom OpenAI-compatible endpoint. SillyTavern, Open WebUI and LibreChat are examples of apps that can take one. The labels vary, but the three values you need are always the same.

SettingValue
Base URL / API endpointhttps://api.uncensoredaimodels.top/v1
API keyThe key from your account
Modeluncensored

Some apps ask for the full path ending in /chat/completions. If a connection test fails, try the base URL alone first, then the long form. Where an app lets you type the model name, enter uncensored exactly. Where it forces you to pick from a list, use the app's model refresh button, which calls GET /v1/models.

This is the main reason many people choose the API over a local install. You keep the interface you already like, and only the engine behind it changes.

Fixing common setup problems

  • 401 Unauthorized. The key is missing, mistyped or has a stray space. Check that the header reads Authorization: Bearer YOUR_KEY.
  • 404 Not Found. Usually a doubled or missing path. The base URL ends in /v1, and the client adds /chat/completions itself. Do not put it in twice.
  • Model not found. The model ID is uncensored, all lowercase. Names of other models will not match.
  • 429 with code concurrency. You sent too many requests at once. A full key allows 8 at the same time, a trial key 2. A streamed request holds its slot until the stream ends, so close streams you no longer need.
  • 429 with code rate_limited. You passed the requests-per-minute limit: 300 on a full key, 60 on a trial key. Wait and retry. A 429 with a Retry-After: 5 header means temporary overload, so wait five seconds.
  • Request too large. The maximum body is 8 MB, and the prompt plus completion must fit in 100,000 tokens.

Each response carries an X-Request-Id header. Keep it when you contact support, because it lets the team find the exact request. The X-Balance-USD header shows what is left on your account.

What it costs to try

Pricing is pay as you go: $0.15 per 1M input tokens and $0.50 per 1M output tokens, drawn from prepaid credit. There is no subscription, credit does not expire, and failed or refused requests are not charged.

A quick calculation shows how far the trial goes. Take a request with a 2,000-token prompt and a 500-token reply. The input costs 2,000 x $0.15 / 1,000,000 = $0.0003, and the output costs 500 x $0.50 / 1,000,000 = $0.00025. The total is $0.00055 per request, so $0.50 of trial credit covers roughly 900 such requests. That is plenty to test a prompt, a front end, or a small script before you decide anything.

When you want more, top-ups start at $20 and go up to $500 in any whole amount. A $50 top-up adds 5%, $100 adds 10% and $200 adds 15%. You can pay with crypto (USDT on TRC20, USDC on Base). See the pricing page for the current table, and read about the hosted uncensored LLM if you want a broader overview of what the service covers.

One rule applies to every user: the service has a hard limit against sexual content involving minors. The model is tuned for lawful adult use, and that limit is not negotiable. Prompts are not used for training.

Questions and answers

Do I need a GPU to use an uncensored model?

Not with the hosted API. The model runs on the provider's servers, so any device that can send an HTTPS request will do. A GPU only matters if you choose to run a model locally.

Is there a free tier?

There is no free tier. New users can claim $0.50 of trial credit with one click on the API key page, valid for 7 days and needing no card. After that you add prepaid credit from $20.

Can I use the OpenAI Python or Node package?

Yes. Set the base URL to https://api.uncensoredaimodels.top/v1, use your key, and set the model to uncensored. Streaming, tool calling and JSON mode work through the same calls.

Does it generate images or audio?

No. The API is text only. It does not offer image, audio or video generation, embeddings or fine-tuning.

Are my prompts used for training?

No. Prompts are not used for training.

Your key is one form away

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

Get API key