Llama 3.1 Uncensored: Run It Through a Hosted API
People searching for llama 3.1 uncensored usually want a model that writes fiction and plays characters without stopping to lecture. This article explains the options, the cost of each, and how to call a hosted endpoint in a few lines.
Updated

Key points
- Uncensored Llama 3.1 checkpoints are community builds; you can self-host one or call a hosted model.
- This service runs one open-weight model under the ID uncensored and is not Meta's API.
- A 30-turn roleplay session costs about $0.018 at $0.15 and $0.50 per 1M tokens.
- Any OpenAI SDK works after you change the base URL and key.
What the search term really covers
Llama 3.1 is a family of open-weight models released by Meta in three sizes: 8B, 70B and 405B parameters. Meta ships them with safety tuning, so the stock chat versions decline a fair number of requests, including plenty that are harmless fiction. The word "uncensored" in the search box points at something else: community-made variants on Hugging Face where that refusal behaviour has been trained away or edited out of the weights, often with names that include "abliterated" or "dolphin".
So there is no single official uncensored Llama 3.1. There is a pile of derived checkpoints of different sizes, different quality and different licences. Some are careful fine-tunes. Some are quick edits that make the model more compliant and a little less coherent. Reading the model card and a few sample outputs matters more than the name.
It helps to be precise about what this site offers, so you do not sign up expecting something else. The API behind this domain serves one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. You select it with the model ID uncensored. It is not Meta's API, it is not a router across several vendors, and the page does not claim that the weights are a specific Llama 3.1 checkpoint. If you need that exact checkpoint for reproducibility, self-hosting is the honest route. If you need a capable uncensored chat model that you can call from code today, keep reading.
Running a Llama 3.1 variant yourself
Local hosting is a real option and it has real advantages: the weights are on your disk, nothing leaves your network, and you choose the exact variant. The cost is hardware and time.
As a rough guide, a 16-bit copy of an 8B model needs about 16 GB of memory just for weights, since each parameter takes two bytes. Quantised to 4 bits it shrinks to roughly 5 GB, which fits on a mid-range consumer GPU or in the unified memory of a laptop. A 70B model at 4 bits lands around 40 GB, which means a pair of high-end GPUs or a large unified-memory machine. The 405B model is out of reach for almost every home setup. On top of the weights, the attention cache grows with the length of the conversation, so a long roleplay history eats more memory than a short question.
The usual software stack is llama.cpp or Ollama for single-user work and vLLM when you need to serve several requests at once. All of them can expose an OpenAI-style endpoint, so the code you write against a hosted API carries over to a local server with a different base URL.
Two quality notes on small uncensored variants. First, an 8B model loses track of character details sooner than a larger one, and it repeats itself in long scenes. Second, aggressive uncensoring methods can flatten the writing style. If the output reads worse than the stock model on ordinary prompts, the variant is damaged and a different checkpoint is worth trying.
When a hosted endpoint is the better fit
Hosting makes sense when the hardware is the problem or when you are building something other people will use. Pick the hosted route if any of these describe you:
- You are building a companion app, a story tool or a Discord bot and need several users to chat at the same time.
- You have no GPU, or your GPU is busy with something else.
- You want pay-as-you-go billing instead of a machine that costs money while idle.
- You switch between a phone, a laptop and a server and want one endpoint for all of them.
Stay local if you need a named checkpoint, if you want to fine-tune, or if your material must never cross a network boundary. This service is text only: no image, audio or video generation, no embeddings and no fine-tuning, so those jobs belong elsewhere either way.
On privacy, prompts sent to this API are not used for training. That is a statement about the service, not a promise about any third-party client you connect to it, so check what your front end stores.
Calling the API in a few lines
The endpoint is OpenAI-compatible. You need a key from the API key page, the base URL https://api.llamauncensored.top/v1 and the model ID uncensored. Two methods exist: POST /v1/chat/completions for chat and GET /v1/models to list the model. Authentication is a standard bearer header.
Start with curl to confirm the key works:
curl https://api.llamauncensored.top/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [
{"role": "user", "content": "Describe a rain-soaked harbour town in two sentences."}
]
}'
The same call with the official Python SDK:
from openai import OpenAI
client = OpenAI(
base_url="https://api.llamauncensored.top/v1",
api_key="YOUR_API_KEY",
)
reply = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Describe a rain-soaked harbour town in two sentences."}],
temperature=0.9,
)
print(reply.choices[0].message.content)
And in Node:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llamauncensored.top/v1",
apiKey: process.env.API_KEY,
});
const reply = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Describe a rain-soaked harbour town in two sentences." }],
});
console.log(reply.choices[0].message.content);
The docs page lists the same three-line switch for other clients. If you already have code written for another OpenAI-style provider, changing the base URL, the key and the model name is the whole migration.
Setting up a roleplay or fiction session
Chat models have no memory between calls. Every request must carry the whole conversation, so your app keeps a list of messages and appends to it. A minimal loop for a character chat looks like this, with streaming turned on so text appears as it is generated:
from openai import OpenAI
client = OpenAI(base_url="https://api.llamauncensored.top/v1", api_key="YOUR_API_KEY")
history = [{
"role": "system",
"content": (
"You are Mara, a sardonic ship's navigator in a space-opera story. "
"Stay in character, write in third person, and keep each reply under 200 words. "
"All characters are adults."
),
}]
while True:
user = input("> ")
history.append({"role": "user", "content": user})
stream = client.chat.completions.create(
model="uncensored",
messages=history,
stream=True,
temperature=0.9,
top_p=0.95,
presence_penalty=0.3,
)
text = ""
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
piece = chunk.choices[0].delta.content
print(piece, end="", flush=True)
text += piece
print()
history.append({"role": "assistant", "content": text})
A few habits keep sessions good. Put the character sheet and style rules in the system message, because that is the part the model weighs most. Use a temperature around 0.8 to 1.0 for fiction and drop it toward 0.3 when you want consistent facts. The penalties, stop and seed are passed through, so a small presence penalty helps with the repetition that long scenes tend to produce.
The window is 100,000 tokens for prompt plus completion, which is large enough for a novel-length chat, but you pay for the history on every turn. When a story gets long, summarise the early part into one paragraph and keep only the recent turns verbatim.
One rule is fixed on the service side: no sexual content involving minors, in any framing. Build that into your own system prompt as well, with all characters stated as adults. Apps that serve the public should also add their own age gate and reporting tools.
What a session costs
Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit. Because the history is resent each turn, input tokens dominate a long roleplay, so it is worth doing the sum once.
Take a 30-turn session where each request carries about 3,000 tokens of history, system prompt and new message, and each reply runs about 300 tokens:
- Input: 30 x 3,000 = 90,000 tokens, which is 0.09 of a million, so 0.09 x $0.15 = $0.0135.
- Output: 30 x 300 = 9,000 tokens, which is 0.009 of a million, so 0.009 x $0.50 = $0.0045.
- Total: $0.0135 + $0.0045 = $0.018.
That is under two cents for a full evening scene, and 1,000 such sessions cost $18. In practice the history grows turn by turn rather than staying at 3,000, so treat the figure as an order of magnitude and check the real numbers in the usage block at the end of a streamed response. Failed or refused requests are not charged, and credit never expires.
Top-ups are any whole amount from $20 to $500, by crypto (USDT on TRC20, USDC on Base). Larger top-ups add a bonus: 5% from $50, 10% from $100 and 15% from $200. A $100 top-up therefore gives $110 of credit. The pricing page has the full table.
Trial key and limits to plan around
New users can claim $0.50 of trial credit with one click on the key page after signing up with Google or with email and password. It needs no card, is limited to one per person and is valid for 7 days. At the rates above, $0.50 covers roughly 27 sessions of the size we just priced, which is plenty to judge the writing quality.
A trial key allows 2 concurrent requests and 60 requests per minute. A full key allows 8 concurrent requests and 300 per minute. A streamed request holds its concurrency slot until the stream ends, so a Discord bot with ten users talking at once will hit the ceiling. When you exceed a limit the API answers HTTP 429 with the code rate_limited (too many per minute) or concurrency (too many at once). During temporary overload it also returns 429 with a Retry-After: 5 header. Catch 429, wait the stated time and retry, and put a small queue in front of the API if your app has bursts.
Each response carries X-Request-Id, X-Balance-USD and the two rate-limit headers, so your app can show a remaining balance or log request IDs for support. If you also work with other open models, the uncensored DeepSeek page explains how this service relates to them.
More guides
Questions and answers
Is this the official Llama 3.1 from Meta?
No. It is a single open-weight model run by an independent provider and selected with the model ID uncensored. It is not Meta's API and the site does not claim a specific Llama 3.1 checkpoint.
Can I use it with SillyTavern or other roleplay front ends?
Yes. Any client that accepts an OpenAI-compatible endpoint works. Enter the base URL https://api.llamauncensored.top/v1, your key, and the model name uncensored.
Does it generate images or voices for characters?
No. The service is text only, with no image, audio or video generation and no embeddings.
Are there content limits?
The model is tuned to answer without refusals for lawful adult use. Sexual content involving minors is not allowed under any framing.
How do I try it without paying?
Sign up and claim the $0.50 trial credit with one click on the API key page. It needs no card and is valid for 7 days.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Get API key