Abliterated Models With Ollama and a Hosted API
If you searched for abliterated models ollama, you probably want one of two things: run an uncensored model on your own machine, or point your Ollama-style tools at a hosted one. Both work with the same client code, and this page shows how to switch between them.
Updated

Key points
- Ollama runs models locally and exposes an OpenAI-style endpoint; a hosted API uses the same request format.
- Switching is a change of base URL, API key and model name, not a rewrite.
- SillyTavern, Open WebUI and LangChain accept a custom OpenAI-compatible endpoint.
- Hosted gives a 100,000-token context window without local GPU limits, at $0.15 and $0.50 per 1M tokens.
Local Ollama or a hosted API: how to choose
Ollama is a local runner. You pull a model, it loads into your GPU or CPU memory, and your apps talk to it on your own machine. Community builds of abliterated models are commonly shared in formats that local runners can load, so Ollama is a natural way to try them. Check each model's page for the exact name and size.
Local is a good fit when you have a capable GPU, want everything offline, or like to compare many small models. It gets awkward when the model you want does not fit in memory, when a long context makes generation slow, or when your tool runs on a laptop that cannot hold a large model. In those cases a hosted endpoint is simpler. This site provides one: a single open-weight model tuned to answer without content refusals for lawful adult use, with the model ID uncensored.
A common setup is to develop against local Ollama and then switch to hosted for longer sessions. That only works smoothly if you keep the endpoint configurable, which is what the next section does.
One client, two endpoints
Ollama serves an OpenAI-compatible API under /v1 on port 11434 by default. The hosted service uses the same request shape. So with the OpenAI Python SDK you can read the endpoint from the environment and nothing else in your code changes.
import os
from openai import OpenAI
# Local Ollama:
# LLM_BASE_URL=http://localhost:11434/v1 LLM_API_KEY=ollama LLM_MODEL=<name you pulled>
# Hosted:
# LLM_BASE_URL=https://api.abliteratedmodels.top/v1 LLM_API_KEY=<your key> LLM_MODEL=uncensored
client = OpenAI(
base_url=os.environ.get("LLM_BASE_URL", "https://api.abliteratedmodels.top/v1"),
api_key=os.environ["LLM_API_KEY"],
)
reply = client.chat.completions.create(
model=os.environ.get("LLM_MODEL", "uncensored"),
messages=[
{"role": "system", "content": "You are a story editor for adult fiction."},
{"role": "user", "content": "Suggest three plot twists for a heist story."},
],
temperature=0.8,
)
print(reply.choices[0].message.content)
Local Ollama ignores the API key, so any placeholder string works there. The hosted API needs a real key sent as Authorization: Bearer <key>, which the SDK does for you. Get one on the API key page.
SillyTavern
SillyTavern lets you add an OpenAI-compatible endpoint, which is how most people connect it to a hosted model. Menu names change between versions, but the steps are close to these:
- Open the API connection panel and choose the Chat Completion type.
- Pick the custom or OpenAI-compatible source.
- Enter
https://api.abliteratedmodels.top/v1as the endpoint and paste your API key. - Type
uncensoredas the model ID if the list does not fill in by itself, then press connect.
The service supports GET /v1/models, so a "fetch models" button should return the ID. This site is intended for fiction, roleplay and companion apps for adults. Keep in mind the one hard rule: no sexual content involving minors.
Settings worth checking
Set the context size in the frontend to something that matches your needs. The window here is 100,000 tokens covering prompt plus completion. Very long chats cost more per request because the whole history is sent each time, so trim or summarise old turns if the bill matters. A full 100,000-token prompt is $0.015 of input at $0.15 per 1M.
Open WebUI and other chat front ends
Open WebUI, and similar self-hosted chat interfaces, can talk to Ollama and to any OpenAI-compatible server at the same time. In the admin settings there is a connections section where you add an OpenAI API entry: paste the base URL and the key, save, and the model appears in the model picker. You can then keep your local Ollama models and the hosted one side by side and switch per chat.
Many other tools follow the same pattern: a field for the base URL, a field for the key, and a field for the model. If a tool only offers "OpenAI" with no URL field, look for an environment variable such as OPENAI_BASE_URL or OPENAI_API_BASE, which many OpenAI-based programs read.
LangChain and scripts
LangChain's OpenAI chat class takes the same three values. This is enough for chains and simple agents:
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="uncensored",
base_url="https://api.abliteratedmodels.top/v1",
api_key="YOUR_API_KEY",
temperature=0.7,
)
print(llm.invoke("Give me a name for a haunted lighthouse.").content)
The same endpoint supports streaming, tool calling and JSON mode, so features you built against a local model carry over. The quickstart lists the supported parameters.
Common problems and fixes
- 404 or an empty reply from a tool. The base URL is usually missing
/v1, or it has a trailing path added twice. Use the base URL exactly as shown above. - Model not found. Local model names (such as the tag you pulled) do not exist on the hosted API. Use
uncensoredthere. - HTTP 429. You hit a limit. The error code
rate_limitedmeans too many requests per minute (300 on a full key, 60 on a trial key). The codeconcurrencymeans too many at once (8 on a full key, 2 on a trial key). A 429 withRetry-After: 5is temporary overload; wait and retry. - Hanging streams block new requests. A streamed request holds its concurrency slot until the stream ends, so close connections you no longer read.
- Different behaviour from a local build. Models differ in style and strictness. Retune temperature and your system prompt instead of assuming the hosted one is broken.
A short checklist before a long session
- Confirm the endpoint with a single short request, for example from the code above, before opening a large chat or character.
- Check that the frontend sends the model name
uncensoredand not a leftover local tag. - Set a sensible maximum for replies in the frontend.
max_tokensis optional here, but a cap keeps runaway replies cheap. - Read the response headers once.
X-Balance-USDshows what is left of your prepaid credit, and the rate limit headers show your allowance. - Decide how you will trim history. Sending the full chat each time is simple, but summarising old turns keeps requests small.
None of this is specific to one tool. Once these five points are covered, Ollama-style front ends behave the same against local and hosted endpoints.
What it costs compared with running locally
Local inference has no per-token fee, but you pay in hardware, power and time. Hosted is pay as you go from prepaid credit: $0.15 per 1M input tokens and $0.50 per 1M output tokens, no subscription, and credit does not expire. Top-ups run from $20 to $500 in whole amounts, with a bonus of 5% from $50, 10% from $100 and 15% from $200. You can pay by crypto (USDT on TRC20, USDC on Base). Details are on the pricing page.
As an example, a roleplay session of 50 requests averaging 6,000 input tokens and 300 output tokens uses 300,000 input tokens ($0.045) and 15,000 output tokens ($0.0075), so about $0.0525 in total. New accounts can claim $0.50 of trial credit with one click after sign-up, which is enough to test your whole setup.
More guides
Questions and answers
Can I add the hosted API to Ollama itself?
No. Ollama serves models that run on your machine. You connect your apps, such as a chat front end or script, to either Ollama or the hosted API, and you can switch between them by changing the base URL.
What model name should I use?
Use uncensored on the hosted API. For local Ollama, use the name of the model you pulled.
Is the hosted model the same one I run locally?
Not necessarily. It is one open-weight model chosen by an independent provider, not a copy of any specific community build. Test it on your own prompts.
Are my prompts used for training?
No. Prompts sent to the API 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