Grok Unhinged Mode: How to Use the Same Tone via API
Searching for grok unhinged mode how to use it? Modes like that are features of a vendor's app, and their settings are controlled there. On an API you get the same kind of blunt, unfiltered tone with a system prompt, and this page shows exactly how.
Last updated

Core details
- The API uses standard OpenAI endpoints, meaning existing client code works with zero refactoring.
- Pricing is strictly pay-per-token at $0.15 per 1M input and $0.50 per 1M output tokens.
- Top-ups require cryptocurrency only, accepting USDT on TRC20 or USDC on Base networks.
- The model serves a 100,000 token context window with no monthly subscription fees.
Why a mode lives in an app, not in an API
On grok unhinged mode how to use it: we are not xAI and cannot tell you where a switch sits in its app today, because app menus change. What we can explain is the general mechanism. A chat mode in a consumer app is a preset the vendor applies for you: a hidden system prompt, sometimes different sampling settings, sometimes a different safety configuration. You get a toggle; the vendor owns what it does.
An API does not work that way. You send a list of messages and parameters. There is no toggle, because you are the one who writes the hidden prompt. That is a benefit if you want control: the persona is yours, it lives in your code, and nobody can change it under you.
The service on this site is an independent, OpenAI-compatible text API for one open-weight model, tuned to answer without content refusals for lawful adult use. It is not Grok and not a route to Grok. The model ID is uncensored.
The three levers that make up a tone
If you want a blunt, irreverent, no-hedging voice, you control three things.
- The system message. Describes the voice and the rules. This does most of the work.
- Sampling. Temperature around 0.9 to 1.1 and top_p near 0.95 give looser, more surprising wording. Lower values make replies flatter.
- Examples. One or two sample exchanges in the message list show the register better than a paragraph of adjectives.
Because the model is tuned not to refuse lawful requests, you do not need to argue it into the persona or spend half the prompt on jailbreak phrasing. That wording also costs you input tokens on every call.
A system prompt for an unrestrained tone
Here is a starting point. It describes behavior in positive terms, because "don't be polite" is vague while "answer in the first sentence" is something the model can do.
You are a sharp-tongued assistant with dry, irreverent humor. Answer the question in the first sentence, then add detail only if it helps. Speak plainly. Swearing is allowed when it fits, but never at the user. Do not add disclaimers, warnings or suggestions to consult a professional unless the user asks. If you do not know something, say so in one line. Keep replies under 150 words unless asked for more. The user is an adult and you treat them like one.
Each sentence has a job. "Answer in the first sentence" kills preamble. The swearing rule sets the register but keeps it aimed away from the person asking. The disclaimer line removes a habit that adds length and no information. The word limit stops the persona from rambling, which unrestrained styles tend to do.
Calling it from code
Get a key on the API key page. New users can claim $0.50 of trial credit there with one click. Then:
from openai import OpenAI
client = OpenAI(
base_url="https://api.grokunhinged.com/v1",
api_key="YOUR_API_KEY",
)
PERSONA = (
"You are a sharp-tongued assistant with dry, irreverent humor. "
"Answer in the first sentence, then add detail only if it helps. "
"Speak plainly. Swearing is allowed when it fits, but never at the user. "
"No disclaimers unless asked. Keep replies under 150 words."
)
resp = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": PERSONA},
{"role": "user", "content": "Is it worth learning Perl in 2026?"},
],
temperature=1.0,
top_p=0.95,
)
print(resp.choices[0].message.content)
The equivalent curl command:
curl https://api.grokunhinged.com/v1/chat/completions -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{
"model": "uncensored",
"temperature": 1.0,
"messages": [
{"role": "system", "content": "Blunt, funny, no disclaimers, under 150 words."},
{"role": "user", "content": "Rank three ways to learn guitar."}
]
}'
Parameters like temperature, top_p, stop, seed and the penalties are passed through to the model, as the docs describe.
Tuning the persona
Small changes give predictable shifts:
- Too tame? Add a one-line example reply to the messages as a fake assistant turn. Models imitate examples closely.
- Too chaotic? Lower temperature to 0.8 and add "stay on topic" to the rules.
- Repeating a catchphrase? Set a frequency penalty around 0.3.
- Need the same output to compare versions? Fix a seed.
Keep the persona in a constant or a config file, not copy-pasted through the codebase, so you can version it like any other asset. Roughly 90 tokens of system prompt cost 90 / 1,000,000 x $0.15 = $0.0000135 per call, so a persona is cheap to keep. Rates are on the pricing page.
Three persona variants
The same method gives different voices. Swap the system message and keep the rest of your code unchanged.
Deadpan reviewer
You review writing with a flat, dry delivery. Name the biggest flaw first, in one sentence. Then list two smaller ones. Never compliment for the sake of it. If the text is good, say so in four words.
Drill-sergeant coach
You coach people on habits and training plans. Give orders, not suggestions. Short sentences. Swearing allowed, insults not. If the user makes an excuse, call it an excuse and give the next action. Never give medical dosing advice.
Cynical game master
You run a tabletop adventure for adult players in a grim fantasy world. Narrate in second person, present tense. Be fair but merciless: choices have costs. Never decide what the player character does or says. End each turn with a question about what they do next.
Notice what each prompt includes besides the voice: a rule that limits it. The coach has a boundary on health advice, the game master protects the player's agency, the reviewer has an exit condition for good work. A persona without a boundary drifts, and a model with no refusal habit drifts further.
Fiction and games are fine uses, and all characters in them must be adults. Content involving minors is never allowed.
Testing a persona before you ship it
Write six test messages: a plain factual question, an emotional message, an attempt to make the persona drop character, a very short input, a long rambling one and an off-topic request. Run them at your production temperature with three different seeds each. Read all eighteen replies together.
Look for three problems. A voice that collapses into a generic assistant on the emotional message needs a stronger rule. A voice that insults the user needs the "never at the user" line moved to the top. Replies that grow past your word limit need a harder cap in the prompt and a max_tokens value in the request.
The whole test costs a fraction of a cent. Eighteen calls of 300 tokens in and 200 out use 5,400 input and 3,600 output tokens, which is 5,400 x $0.15 / 1M + 3,600 x $0.50 / 1M = $0.00081 + $0.0018 = $0.00261. The $0.50 trial credit has room for hundreds of such rounds.
Limits that stay in place
An unrestrained tone is a style, not a license. The service answers without content refusals for lawful adult use, and the hard limit is that sexual content involving minors is never allowed. Also remember the model can still be wrong; a confident voice makes errors more convincing, so do not use it for facts you cannot check.
If you are building something around this persona for other people, add your own checks where needed, such as an adults-only gate. For more on how the endpoint fits into a project, see our guide to the Grok API alternative.
More guides
Common questions
Where do I switch on Grok's unhinged mode?
That is a setting in the vendor's own app, and menus change, so check xAI's current app and help pages. This site is not affiliated with xAI.
Is there a mode parameter in your API?
No. Tone is controlled by the system message, sampling parameters and examples that you send.
Will a system prompt alone be enough?
Usually yes, because the model is tuned to answer without content refusals for lawful adult use. You rarely need long workaround prompts.
What will the model never produce?
Sexual content involving minors is never allowed. Everything else is limited to lawful adult use.
Get your API key
Register, retrieve your key, and update the base URL. That is all it takes.