EN ▾
Get API key

Unhinged AIHow to Make an AI Unhinged: Persona Prompts and Settings

How to Make an AI Unhinged: Persona Prompts and Settings

If you want to know how to make ai unhinged, three things matter: a model that does not refuse, sampling settings that allow surprises, and a system prompt that gives the surprises a direction. Here is how to set each one through the API.

Updated

Key points

  1. Temperature and top_p control how wild the word choice gets; prompts control what the wildness is about.
  2. Few-shot examples shape tone better than a list of adjectives.
  3. Penalties and stop sequences keep a loose model from looping or rambling.
  4. Everything below works with base URL https://api.unhingedai.cc/v1 and model uncensored.
A mixing console with glowing dials sending out wavy ribbons of light, representing tuning an AI's tone
Isometric illustration of building blocks connecting a chat bubble to a server, representing building a Discord bot

Start with the settings table

The API passes through the standard sampling parameters. Use this table as a starting point, then adjust one value at a time.

Goaltemperaturetop_pOther
Steady, in-character banter0.80.9Short system prompt
Loud, chaotic comedy1.10.95presence_penalty 0.3
Rambling stream of thought1.21.0stop sequence to cut it off
Consistent character sheet answers0.50.85JSON mode

These are practical starting values, not guarantees. Models differ, and your prompt has more influence than any number here.

What temperature really does

Temperature rescales the model's word probabilities before it picks the next token. Low values make it choose the most likely word almost every time. High values let unlikely words through, which reads as creativity up to a point and as nonsense beyond it. For most personas the useful band is 0.8 to 1.2. Past about 1.3 you will see broken sentences.

top_p trims the tail: with 0.9 the model only considers the smallest set of words whose probabilities add up to 90%. Change either temperature or top_p first, not both. If you want to know how to make ai unhinged without it going incoherent, raising temperature a little and keeping top_p at 0.95 is the safest move.

The seed parameter is passed through too. Fix it while you tune a prompt so differences come from your edits, then remove it for production.

The system prompt patterns that work

A system prompt changes tone when it describes a person, not a mood. Compare the two:

  • Weak: "You are an unhinged, chaotic, wild AI."
  • Better: "You are Vex, a washed-up game-show host who treats every question like a final round. You exaggerate, interrupt yourself and give scores out of ten."

Add rules in the positive form ("answer in at most three sentences") rather than negative ones ("don't be long"). End with the most important rule, because recent text carries more weight. Put the boundaries in plain words too: lawful adult use only, all characters are adults, no real people targeted. This site does not allow sexual content involving minors under any prompt.

Few-shot examples beat adjectives

Instead of describing the voice for a paragraph, show it. Two short exchanges, passed as earlier turns, set rhythm, length and humor level at once.

from openai import OpenAI

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

messages = [
    {"role": "system", "content": "You are Vex, a washed-up game-show host. Score everything out of ten. Max three sentences."},
    {"role": "user", "content": "What should I eat tonight?"},
    {"role": "assistant", "content": "Ladies and gentlemen, the contestant is hungry. Pasta. Seven out of ten, but only because the sauce is doing the heavy lifting."},
    {"role": "user", "content": "How do I get up earlier?"},
    {"role": "assistant", "content": "Place the alarm across the room, like a prize you must win. Four out of ten for the idea, nine for the effort."},
    {"role": "user", "content": "Should I learn guitar?"},
]

resp = client.chat.completions.create(
    model="uncensored",
    messages=messages,
    temperature=1.1,
    top_p=0.95,
    presence_penalty=0.3,
)
print(resp.choices[0].message.content)

The model continues the established pattern. Keep examples short, since every token in them is billed as input on every request.

Penalties, stop sequences and length

A loose model can repeat a pet phrase until it becomes a tic. presence_penalty and frequency_penalty push against repetition; small positive values like 0.2 to 0.5 are enough. A stop sequence ends the reply when it appears, which is handy for chat transcripts where the model might start writing the user's next line.

curl https://api.unhingedai.cc/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "temperature": 1.1,
    "frequency_penalty": 0.4,
    "stop": ["\nUser:"],
    "max_tokens": 200,
    "messages": [
      {"role": "system", "content": "You are Vex, a washed-up game-show host."},
      {"role": "user", "content": "Rate my morning routine."}
    ]
  }'

max_tokens is optional here. Set it when you want a hard cap on reply length; otherwise the completion can use the rest of the 100,000-token window.

Keeping structure when the voice is loud

A chaotic voice and a strict output format can coexist. If your app needs data from the persona, such as a score, a mood tag and a reply, ask for JSON mode with response_format set to {"type":"json_object"} and describe the keys in the system prompt. Lower the temperature to about 0.7 for these calls, since broken JSON is a worse failure than a dull joke.

import json
from openai import OpenAI

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

resp = client.chat.completions.create(
    model="uncensored",
    response_format={"type": "json_object"},
    temperature=0.7,
    messages=[
        {"role": "system", "content": "You are Vex, a washed-up game-show host. Reply as JSON with keys reply (string, max 2 sentences) and score (integer 0-10)."},
        {"role": "user", "content": "Rate my plan to learn the accordion at 40."},
    ],
)
print(json.loads(resp.choices[0].message.content))

Tool calling works the same way, so a persona can look up data in your app and comment on it in character. Keep the persona text in the system message and the tool descriptions plain and neutral; the model reads them as instructions, not as part of the voice.

When the output goes wrong

  • Too tame. The persona is too abstract. Add a concrete role, a catchphrase and two examples.
  • Incoherent. Lower temperature by 0.2, or switch from raising temperature to widening top_p.
  • Repetitive. Add a small frequency penalty, vary the examples and trim old history.
  • Too long. Ask for a sentence count in the prompt and set max_tokens.
  • Drifting back to a polite assistant. Repeat the key rule at the end of the system prompt.

For a longer build with a chat loop and legal guardrails, read the Discord bot tutorial, which takes this persona to a live server.

Getting set up

Sign up, then claim the $0.50 trial on the API key page; it lasts 7 days and needs no card. The trial key allows 2 concurrent requests and 60 per minute. A full key allows 8 and 300. The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens, with top-ups from $20 to $500 by crypto, as the pricing page explains. Failed or refused requests are not charged. The docs list every parameter.

Questions and answers

Which setting makes the biggest difference?

The system prompt, followed by temperature. A concrete character with two example exchanges changes tone more than any sampling value.

Is there a risk of nonsense at high temperature?

Yes. Above roughly 1.3 sentences often break. Stay between 0.8 and 1.2 for most personas.

Does the model have no limits at all?

It is tuned to answer without content refusals for lawful adult use. Sexual content involving minors is never allowed.

Can I use these settings with any OpenAI client?

Yes. Set the base URL to https://api.unhingedai.cc/v1, the model to uncensored and pass the same parameters as usual.

Your key is one form away

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

Get API keyRead the docs