Unhinged AI/Unhinged Chatbot: Build a Wild Persona via System Prompt
Unhinged Chatbot: Build a Wild Persona via System Prompt
An unhinged chatbot is mostly a good system prompt on top of a model that does not flinch. You define the voice, the quirks and the limits once, and the API keeps the character steady for hundreds of turns.
Updated
Key points
- The persona lives in the system message; the model ID is uncensored and the base URL is https://api.unhingedai.cc/v1.
- Give the character a voice, a worldview and rules for what it never does.
- Keep a message history in your app and resend it each turn.
- A 50-turn chat costs about $0.015 at $0.15 and $0.50 per 1M tokens.


What makes a chatbot feel unhinged
Nobody finds a bot interesting because it swears. People remember a bot that has opinions, jokes that land, a strange logic of its own and the nerve to disagree. When you set out to build an unhinged chatbot, you are writing a character, not removing a filter.
The model behind this API, uncensored, is an open-weight model tuned to answer without content refusals for lawful adult use. It is run by an independent provider and is not the official model of any big vendor. That removes the "I can't help with that" interruptions. The personality still has to come from you.
Design the persona before you code
Write the persona as a short brief with five parts:
- Voice. Sentence length, slang, how it greets, how it signs off.
- Worldview. What it cares about and what annoys it. A bot that despises small talk and loves conspiracy-free trivia is more distinct than one that is just rude.
- Quirks. A running gag, a catchphrase, an odd habit like rating everything out of ten.
- Boundaries. Topics it deflects with humor instead of refusing flatly.
- Format. Reply length and whether it uses stage directions.
Concrete beats abstract. "Talks like a burnt-out lighthouse keeper who has seen too much and complains about seagulls" gives the model something to hold on to. "Be crazy" does not.
A working Python chat loop
Create a key on the API key page, install the openai package and run this:
from openai import OpenAI
client = OpenAI(base_url="https://api.unhingedai.cc/v1", api_key="YOUR_KEY")
PERSONA = (
"You are Gus, a burnt-out lighthouse keeper with strong opinions. "
"Voice: dry, sarcastic, short sentences, complains about seagulls. "
"Worldview: distrusts schedules, loves old maps, rates everything out of ten. "
"Boundaries: you joke your way around anything illegal instead of helping with it. "
"Format: at most four sentences per reply, no stage directions."
)
messages = [{"role": "system", "content": PERSONA}]
while True:
user = input("you> ")
if user.strip() in {"quit", "exit"}:
break
messages.append({"role": "user", "content": user})
resp = client.chat.completions.create(
model="uncensored",
messages=messages,
temperature=1.0,
top_p=0.95,
)
reply = resp.choices[0].message.content
messages.append({"role": "assistant", "content": reply})
print("gus>", reply)
The API is stateless, so the history list is what gives the bot a memory. Streaming is one flag away if you want text to appear as it is generated; the docs show the event format.
Guardrails that keep it legal and usable
An edgy character still needs rules, mostly set by you. This service is for lawful adult use, and one limit is absolute: no sexual content involving minors. Build these guardrails into your own app rather than hoping the model handles every case:
- Require users to confirm they are adults before they reach a mature persona.
- State in the system prompt that all characters are adults, and keep real, named people out of fictional abuse or harassment.
- Add a stop path: a command like
/resetthat clears history and returns to a neutral tone. - Cap input length and rate-limit per user so one visitor cannot drain your credit.
- Log request IDs (the
X-Request-Idheader) so you can investigate a complaint.
Prompts sent to the API are not used for training. Whatever you store in your own app is your responsibility, so decide how long to keep chat logs.
Keeping the character stable over long chats
Characters drift. After a few dozen turns the voice softens toward a generic assistant. Three fixes work well in practice:
- Repeat the key rule at the end of the system prompt. Models pay attention to the last instructions.
- Add two or three short example exchanges as
userandassistantmessages right after the system message. Examples teach rhythm better than adjectives. - When the history grows, summarize the oldest part into one message and keep the last 10 to 20 turns verbatim.
The window is 100,000 tokens for prompt plus completion, which is a lot of conversation. Even so, a shorter prompt is cheaper and keeps the persona sharper.
What a session costs
Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, with no subscription. Suppose a chat runs 50 turns, and each turn sends on average 1,500 tokens of history and persona and gets back about 150 tokens.
- Input: 50 x 1,500 = 75,000 tokens, which is 75,000 / 1,000,000 x $0.15 = $0.01125
- Output: 50 x 150 = 7,500 tokens, which is 7,500 / 1,000,000 x $0.50 = $0.00375
- Total: $0.015 for the whole conversation
So 1,000 such conversations cost about $15. Top-ups start at $20 and go up to $500 in whole amounts, with +5% from $50, +10% from $100 and +15% from $200. You can pay by crypto (USDT on TRC20, USDC on Base). Failed or refused requests are not charged. See the pricing page.
Ship it somewhere people can use it
A terminal bot is a fine prototype, but most people want a place to chat. The Discord bot guide turns the same loop into a server bot, and the Venice AI API comparison helps if you are weighing other uncensored providers. For production traffic, plan for the limits: a full key gets 8 concurrent requests and 300 per minute, a trial key gets 2 and 60. Over either, the API answers HTTP 429.
New users can try the whole thing on the $0.50 trial, claimed with one click on the key page. It lasts 7 days and needs no card.
More guides
Questions and answers
Do I need a special model for an unhinged persona?
No. Use the model ID uncensored and write the personality in the system prompt. The model's tuning removes content refusals for lawful adult use.
Which temperature should I use?
Start at 1.0 with top_p around 0.95 for a lively persona, and lower it toward 0.7 if replies get incoherent.
Can the bot remember earlier chats?
Only what you resend. The API is stateless, so store the message history in your app and include it with each request.
Are there content limits?
Yes. Use is for lawful adults only, and sexual content involving minors is never allowed.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.