EN ▾
Get API key

Uncensored Llama API: What You Get and How to Use It

If you searched for uncensored-llama, you probably want a hosted endpoint that answers adult fiction and roleplay prompts without stopping to lecture. This page explains what that means, what this service runs, and how to call it from code.

Updated

Glass padlock above chat bubbles and a server rack, illustrating an open-weight uncensored text API

Key points

  • The service exposes one open-weight model under the ID uncensored, tuned to answer without content refusals for lawful adult use.
  • It is OpenAI-compatible: change the base URL and key, keep your SDK.
  • It is not Meta's official Llama API, and it is text only.
  • Billing is prepaid at $0.15 per 1M input tokens and $0.50 per 1M output tokens; refused or failed requests cost nothing.

What people mean by an uncensored Llama

The phrase uncensored-llama covers a few different things, and it helps to separate them before you pick a tool. Most of the time it means one of three setups.

  • A community fine-tune of an open-weight model, trained to drop the refusal behaviour that the original release shipped with.
  • The same weights with the refusal direction edited out after training, a technique people often call abliteration.
  • A hosted endpoint that runs one of those models for you, so you do not need a GPU.

The first two are files you download and run yourself. The third is what developers usually want once a prototype needs to be reachable from a server, a phone app or a Discord bot. Running a large model at a usable speed takes a good graphics card and some patience with drivers, quantization formats and memory limits. A hosted API trades that work for a per-token bill.

The word "uncensored" also needs a careful reading. Here it means the model is tuned not to refuse lawful adult requests: a villain's monologue, a dark chapter of a novel, a character who stays in character when the scene turns uncomfortable. It does not mean anything goes. There is one hard limit that never changes, which is that no sexual content involving minors is accepted, and that rule applies to every prompt on every plan.

What this API actually serves

Be precise about this, because search results blur it. The service gives you one model, addressed by the ID uncensored. It is 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 Meta or any other vendor, and it is not a router that forwards your request to several vendors. If you need a specific named release, such as a particular Llama version, check the model list yourself before building around the assumption.

You can do that with a single call. GET /v1/models lists what the key can use, and the answer is the one model ID.

curl https://api.llamauncensored.cc/v1/models \
  -H "Authorization: Bearer $LLAMA_UNCENSORED_KEY"

The other endpoint is POST /v1/chat/completions. That is the whole surface: chat in, text out. There is no image, audio or video generation, no embeddings and no fine-tuning. The context window is 100,000 tokens, counting the prompt and the completion together, which is enough for a long character sheet plus a few hundred turns of story history.

What the model can do inside that surface is more than basic chat. Responses stream over server-sent events, tool calling works with tools and tool_choice, JSON mode is available through response_format, and sampling settings such as temperature, top_p, stop, seed and the repetition penalties are passed through to the model.

Where an uncensored model earns its place

Plenty of work does not need one. A support bot, a code assistant or a summarizer is usually better off with a model that errs on the side of caution. The cases where refusals cause real damage are narrower and mostly creative.

Fiction and worldbuilding

Novels contain violence, cruelty, crime and grief. A model that breaks the scene to explain that it cannot continue forces the writer to rephrase until the filter relaxes, which wrecks the flow of a draft. For adult authors working on dark material, a model without refusals is simply a better collaborator.

Roleplay and companion apps

Character chat apps for adults depend on consistency. When a persona suddenly turns into a generic assistant mid-conversation, users notice at once. Because this endpoint speaks the OpenAI protocol, front ends that let you add a custom endpoint, SillyTavern being a well-known example, can be pointed at it with a base URL and a key. Remember the age rule: your app is responsible for keeping minors out, and the API will not accept sexual content involving them regardless of how a character is framed.

Adult-only moderation tooling and testing

Teams that build their own content filters need realistic input to test against. Generating synthetic examples of the kind of text a filter should catch is a lawful adult use, as long as the output stays inside your test environment and your own policies.

Connecting your code

Any OpenAI SDK works once you set the base URL and key. Nothing else in your code has to change, which also means you can switch back to another provider by editing two settings.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llamauncensored.cc/v1",
    api_key="YOUR_KEY",
)

reply = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "You are the narrator of a grim fantasy serial for adult readers. Stay in character."},
        {"role": "user", "content": "The bridge collapses behind the caravan. Continue the scene."},
    ],
    temperature=0.9,
)
print(reply.choices[0].message.content)

The same call from Node looks like this.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.llamauncensored.cc/v1",
  apiKey: process.env.LLAMA_UNCENSORED_KEY,
});

const stream = await client.chat.completions.create({
  model: "uncensored",
  stream: true,
  messages: [{ role: "user", content: "Open chapter two with a storm." }],
});

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

If you have not created a key yet, the API key page walks through sign-up, and the quickstart in the docs has a curl version of the first request. For a longer tour of the protocol details, see the integration guide.

Getting good output without fighting the model

Removing refusals does not make a model good at your task. A few habits matter more than the choice of endpoint.

  • Put the setting in the system message. Say who the narrator is, who the audience is and what tone to hold. A clear frame produces better scenes than a bare user request.
  • Raise temperature for prose, lower it for structure. Around 0.8 to 1.0 suits storytelling. Drop to 0.2 or lower when you request JSON or tool calls.
  • Use stop sequences for chat formats. If your front end builds a transcript, a stop string stops the model from writing the next speaker's lines for them.
  • Set a seed when you debug. With a fixed seed and identical settings you can compare prompt changes without too much noise.
  • Trim history. The window is large, but you pay for every input token on each turn. Summarize old turns once a conversation grows.

For apps that parse the reply, switch on JSON mode with response_format={"type": "json_object"} and say in the prompt that you want a JSON object. If the model calls tools, send the result back as a message with role: "tool".

What it costs in practice

Pricing is per token and drawn from prepaid credit: $0.15 per 1M input tokens and $0.50 per 1M output tokens. There is no subscription, credit does not expire, and a request that fails or is refused is not charged.

A typical roleplay turn might send 3,000 tokens of history and persona and receive 400 tokens back. The input costs 3,000 x $0.15 / 1,000,000 = $0.00045 and the output costs 400 x $0.50 / 1,000,000 = $0.0002, so one turn is $0.00065. At that rate $20 of credit pays for roughly 30,700 turns (20 / 0.00065 = 30,769). If you let history grow to 30,000 tokens, the input side becomes $0.0045 per turn, which is why trimming matters.

Top-ups run from $20 to $500 in whole dollars. You get 5% extra credit from $50, 10% from $100 and 15% from $200, so a $100 payment lands as $110. You can pay with USDT on TRC20 or USDC on Base. New accounts can claim $0.50 of trial credit with one click on the key page, which needs no card and lasts 7 days. Full tables are on the pricing page.

When to run locally or choose something else

A hosted endpoint is not always the right answer. If you already own a strong GPU, run a model you can inspect and keep entirely on your machine, and your marginal cost is electricity. If your content is fully public and benign, a mainstream provider with its own safety stack may suit you fine, and you should check their current pricing. If you need images, speech or embeddings, this service cannot help because it is text only.

Choose the hosted route when you want a stable URL, an OpenAI-shaped interface, no hardware to babysit, and a bill that follows usage. Prompts sent to the API are not used for training. Limits to plan around are 8 concurrent requests and 300 requests per minute on a full key, and 2 concurrent and 60 per minute on a trial key. Exceeding them returns HTTP 429 with the code rate_limited or concurrency, and a streaming request holds its concurrency slot until the stream finishes.

Questions and answers

Is this the official Llama API?

No. It is an independent service running one open-weight model under the ID uncensored. It is not an official API of Meta or any other vendor.

Can I use the OpenAI Python SDK?

Yes. Set base_url to https://api.llamauncensored.cc/v1, use your key, and pass model uncensored.

Are there any content limits at all?

The model is tuned to answer without refusals for lawful adult use. Sexual content involving minors is never accepted.

Does it generate images?

No. The API is text only, with no image, audio or video generation and no embeddings.

Your key is one form away

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

Start with trial credit

Email and password, key on screen right away.