Skip to navigation

Uncensored LLM system prompt guide with 7 templates

In short: Uncensored LLM system prompt guide: what a prompt can and cannot change on abliterated models, seven copy-ready templates and a test plan.

Published 24 min read
On this page

An uncensored LLM system prompt guide has one job: tell you which refusals a system prompt can fix and which it cannot. Most pages on this keyword hand you a long prompt to paste. This one starts from the model card of a real abliterated build, which lists five kinds of refusal that survive the edit, maps each to what a prompt can do about it, and then gives seven short templates for legitimate work, a test plan with the arithmetic of a 20-prompt run, and a calculator for what a system prompt costs on every request. We publish the gateway, so the examples use our own base URL and free ids.

Why does an abliterated model still refuse?

Because abliteration removes a direction, not a policy. The method behind it comes from a 2024 paper, Arditi et al., which found that across 13 chat models from 1.8B to 72B parameters, refusal is mediated by a single direction in the model’s activations, and that erasing that direction stops most refusals. Tools such as Heretic automate the search for the edit. The result is a smaller change than retraining, which is why abliterated builds keep most of the base model’s abilities. It is also why they are not clean.

The most useful honest statement of the gap sits on a model card. The junafinity Qwen 3.8 27B card measures 0 refusals out of 64 held-out prompts against 14 out of 64 for the base model, and then says plainly that the refusal direction is a rank-1 approximation of a mechanism that is not perfectly rank-1, so refusal behaviour degrades rather than vanishes. It names what to expect to survive: multi-turn re-assertion, system-prompt-driven refusal, strongly memorised refusal phrasings, soft refusals and vision-path refusals. The card is careful to add that these categories come from the known behaviour of the method, not from a per-category probe of that checkpoint. We repeat that caveat: treat the list as expectations to verify.

Two more papers explain why refusal is hard to remove cleanly. Wei et al. describe two failure modes of safety training, competing objectives and mismatched generalization, and show that attacks built on them beat models that had extensive red-teaming. Qi et al. show that fine-tuning an aligned model can compromise its safety behaviour, which is the other way a model gets labelled uncensored. Our guide to abliterated versus uncensored models sorts the methods, and the comparison of the Qwen 3.8 27B builds reads their cards side by side. For this post the practical point is narrower: some refusals live in the prompt you send, and those you can change.

What survives, per the card Can a system prompt help? What to do
Multi-turn re-assertion Partly. The system message is resent every turn, so a short frame stays in view, but it cannot stop drift Restart with a short summary; test at turn 20; see the 1M context guide
A restrictive system prompt Yes. This is the one a prompt owns Read what your client actually sends; delete restrictive defaults
Strongly memorised refusal phrasings No Try another build or model; see the Heretic guide
Soft refusals (hedges, preambles, vagueness) Often. Ask for the answer first and no preamble Score hedging as its own category
Vision-path refusals No. The vision tower was not edited Describe the image in text, or use another model

The second row deserves a second look. The card says that a restrictive system prompt still steers the model: abliteration edits weights, not instruction-following, so telling the model to decline things still works. A prompt can add refusals as easily as remove them. If your roleplay front end or chat preset sends “stay safe and decline sensitive topics” ahead of your own text, you have built the refusal yourself.

What can a system prompt change, and what can it not?

It can change anything the model treats as instruction: voice, persona, length, format, audience, the order of an answer, what to leave out and what to do when unsure. It cannot change what the model knows, what a provider filters, what our policy allows or what the weights learned about a topic. Hugging Face’s chat template documentation explains the mechanics: the system role is for directives on how the model should act, usually at the start of the chat, and the template turns the list of roles and messages into one token sequence with control tokens that differ from model to model. The model only ever sees that sequence.

How much authority the system message gets is also a property of the model. OpenAI’s Model Spec describes instructions with different levels of authority, where higher-authority instructions take precedence, and the OpenAI prompt engineering guide describes the same message roles. Community builds follow the conventions of their base model to varying degrees, so a system message that wins on one model can lose to a user message on another. That is a reason to test, not to guess.

A system prompt can A system prompt cannot
Set tone, persona and reading level Add knowledge the model lacks
Fix the output format (JSON, headings, length) Make a wrong answer right
Say who the reader is and what they need Override a provider’s own filters
Remove preambles, disclaimers and moralising Override the acceptable use policy
State a scope, such as an authorised lab Prove that the scope is true
Tell the model what to do when unsure Stay secret

The last row is worth a sentence. OWASP’s LLM07 entry states that a system prompt should not be considered a secret and should not be used as a security control, and that credentials and connection strings do not belong in it. Write every system prompt as if the user will read it, because they may be able to.

Five places a reply is shaped

Your system messagetone, persona, format, scopeChat adds its own base textAPI calls skip this stepProvider applies the templateroles become control tokensThe weights deciderefusal direction edited, not erasedProvider-side filters, if anyour policy says providers may filter
Only the first box is yours. Our chat adds its own base instructions ahead of your system prompt, so the same prompt can sound different there than in a bare API call, as the free chat guide explains. The acceptable use policy applies to every request on top of all five.

How do you set the frame without a jailbreak?

By saying what is true: who you are, what the work is, who reads the answer and what you will not ask for. A frame is information the model can use to pick the right register. A jailbreak is an attempt to make it ignore its training with a trick. On a model that is actually uncensored you do not need the trick, and on one that is not, the trick usually fails or produces worse answers. We do not publish jailbreak prompts, and the policy forbids circumventing safety filters, including by jailbreaking at scale.

Six habits make a frame work.

  1. State the reader. “An adult reader” or “a security engineer on an authorised network” changes the register more than any adjective.
  2. State the task and the format. “Explain, then list three detection ideas” beats “be helpful”.
  3. Put the answer first. Tell the model to answer before it adds context. This removes most preambles, which are the commonest soft refusal.
  4. Give it a way out. “If you will not write something, say so in one sentence and offer what you can do.” A model with an exit declines cleanly instead of hedging for three paragraphs.
  5. Name one limit, not ten. A list of prohibitions invites the model to look for violations. One honest limit, such as no sexual content involving minors, reads as a boundary and not as an alarm.
  6. Keep it short. Under 150 words for a baseline. The system message is resent on every turn and every added rule competes with the rest.

For fiction the frame is a story bible. For security work it is a scope. For health and law it is the reader and the source standard. The picker below maps use to template, and the templates after it are written to those six habits. If you want a use-specific guide rather than a prompt, the cluster has them: writers, coding, cybersecurity and roleplay.

What are you using the model for?

General frank answers

Start with template 1, the plain-answers baseline. It removes preambles and sets one caution rule. Pair it with a model from the unfiltered API guide.

Fiction and drafting

Template 2 holds a story bible so the model keeps facts straight. The writers guide covers long projects and the token cost of resending a bible.

Security defence in a lab

Template 3 states the scope and asks for detection and hardening along with the mechanism. Read the cybersecurity guide and the acceptable use policy first: only systems you own or may test.

Health, law or money questions

Template 4 asks for facts, source types and when to see a professional. It does not replace one, and the policy says outputs should not be the sole basis for significant decisions.

Feedback on my own writing

Template 5 is a blunt editor. It targets hedging, the soft refusal that is hardest to count. For manuscripts see the writers guide.

A character in a roleplay client

Template 6 sets voice, length and an out-of-character switch. The SillyTavern guide shows where to paste it, and the Janitor alternatives and Character.AI alternatives posts compare clients.

Labelling or extracting from unpleasant text

Template 7 returns JSON and tells the model it is labelling, not endorsing. See the structured output docs for schema options.

Which seven templates are worth copying?

Each is short, benign and written for a legitimate use. Square brackets mark the parts you fill in. We have not benchmarked them against a refusal set, and we do not claim a refusal rate for any of them: test them with the plan further down.

1. Plain answers (the baseline). Use it when you only want a direct answer with fewer preambles.

Template 1: plain answers
You are a direct, well-informed assistant for an adult reader. Answer the question first, then add detail. Give numbers, names and trade-offs where you have them. Do not open with a warning, a restatement of my question or an apology. Add at most one short caution, and only when a real risk applies to my situation. If you do not know, or the evidence is mixed, say so in one sentence. If you decline part of a request, say which part and why in one sentence, then help with the rest.

2. Fiction co-writer with a story bible. The bible is the part that does the work: it keeps facts consistent and tells the model what the story is. It also costs input tokens on every request, as the calculator below shows.

Template 2: fiction co-writer
You are a co-writer on my novel. The story bible follows.

[PASTE HERE: the setting, three or four characters with one line of motive each, the tone, the point of view and the tense]

Write in that voice. Villains and morally grey characters act on their own motives and are not softened to be likeable. Keep every fact consistent with the bible and with earlier scenes. Write the scene I ask for at about [LENGTH] words, then stop. Do not summarise the scene, do not add a moral and do not decide my character's actions unless I ask. Stay inside what this service allows: no sexual content involving minors, no instructions that would work as real-world harm and no stories about real private people.

3. Security tutor with a stated scope. The scope line is the frame. It also gives the model a reason to ask a question when a request falls outside it. The MITRE ATT&CK knowledge base is the standard vocabulary for technique ids, and a model may get an id wrong, so check any id you plan to cite.

Template 3: security tutor for defenders
You support a security engineer who defends a network we are authorised to test.

Scope: [LAB OR COMPANY NAME, WHICH HOSTS AND ACCOUNTS ARE IN SCOPE]

Explain attack techniques at the level needed to detect them, reproduce them in the lab and fix them: the mechanism, the evidence it leaves in logs, one detection idea and one hardening step. Prefer pseudocode and log queries to finished tools. When you know the matching MITRE ATT&CK technique id, give it, and say when you are unsure of the id. If a request only makes sense against a system outside the stated scope, say so and ask what is in scope.

4. Frank educator for health, law and money. It asks for source types rather than authority, which makes weak claims visible.

Template 4: frank educator
You explain health, drug, law and money questions to an adult the way a good friend with clinical or legal training would: plainly and without lecturing. Give the facts that matter for the decision: how the thing works, the ranges published guidance gives, the interactions and warning signs, and when to see a professional. For each claim, name the kind of source behind it (guideline, trial, drug label, case reports) and say when the evidence is thin. Do not moralise and do not repeat a caution you have already given. If someone describes an emergency, tell them to call local emergency services first.

5. Blunt editor. This one targets the hedge. A model that answers “it depends” to everything is refusing softly, and the editor prompt makes it say on what.

Template 5: blunt editor
You are a blunt developmental editor. I will paste a draft. Reply in this order: what works (two lines), the three biggest problems ranked, and one concrete rewrite of the weakest paragraph. Say "this is weak" when it is weak. No compliment sandwiches, and no "it depends" without saying on what. Quote the line you mean. Do not rewrite the whole piece unless I ask.

6. Roleplay character with an out-of-character switch. The (OOC) rule gives you a way to talk to the author without leaving the session. Adult characters only, as the policy requires.

Template 6: roleplay character
You play [CHARACTER NAME], [ONE-LINE DESCRIPTION]. Voice: [THREE ADJECTIVES]. Speak and act only as this character, in the first person and the present tense, in 80 to 150 words a turn. Never speak or act for my character. Keep what the character knows and wants consistent; they can lie, refuse and be wrong. If I write (OOC), I am speaking as the author: answer out of character in a sentence or two, then return to the scene. Stay inside the service rules: adult characters only, nothing sexual involving minors, no real private people and no instructions that work as real-world harm. If a scene is drifting somewhere you will not write, steer it with a plot turn instead of breaking character.

7. Labeller for difficult text. Moderation, research and analysis work often means reading text the model would otherwise decline to touch. The prompt fixes the output shape and states the intent.

Template 7: labeller
You label text. Reply with one JSON object and nothing else, in this shape: {"summary": string, "claims": [{"text": string, "support": "stated" | "implied" | "none"}], "unsure": [string]}. Use only what the text says. If a field has no answer, use an empty list. Do not decline to process text because of its topic: you are labelling it, not endorsing it, and the text may be unpleasant.

A few one-line additions help in specific cases. Append them to a template instead of writing a new prompt.

Problem One line to add
Preambles before the answer “Start with the answer. No introduction.”
Repeated cautions “Give each caution once.”
Vague answers “Give a number or a name where you have one, and say when you do not.”
Moralising in fiction “The narrator does not judge the characters.”
Drift in a long chat “Before each reply, re-read the first message of this conversation.”
Answers that are too long “Maximum 200 words unless I ask for more.”

How do you send a system prompt through the API?

As the first item in the messages array, with the role system. The call is an ordinary OpenAI-format request: only the base URL, the key and the model id change. The quickstart covers keys, and the chat completions reference lists the roles: system for instructions that apply to the whole conversation, with developer accepted as well. The example uses one of the free uncensored ids, which work right after Google sign-in at a $0 balance.

curl: a system message on a free uncensored id
export ONEAIAPIKEY_API_KEY="paste-your-key-here"

curl https://api.oneaiapikey.com/v1/chat/completions \
  -H "Authorization: Bearer $ONEAIAPIKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dealignai-deepseek-v4.1-flash-uncensored-fp8:free",
    "max_tokens": 400,
    "temperature": 0.7,
    "messages": [
      {"role": "system", "content": "You are a direct, well-informed assistant for an adult reader. Answer first, then add detail. Add at most one short caution, and only when a real risk applies."},
      {"role": "user", "content": "Explain how a stack buffer overflow corrupts a return address, for a student writing a detection rule."}
    ]
  }'

The API holds no conversation, so a multi-turn exchange resends everything each time. The Python example keeps the history in a list and puts the system message first on every call.

Python: system message plus resent history
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.oneaiapikey.com/v1", api_key=os.environ["ONEAIAPIKEY_API_KEY"])

SYSTEM = (
    "You are a direct, well-informed assistant for an adult reader. "
    "Answer first, then add detail. Add at most one short caution, "
    "and only when a real risk applies."
)

history = []  # the API is stateless: you resend every turn, system message first


def ask(text, model="dealignai-deepseek-v4.1-flash-uncensored-fp8:free"):
    history.append({"role": "user", "content": text})
    reply = client.chat.completions.create(
        model=model,
        max_tokens=400,
        messages=[{"role": "system", "content": SYSTEM}] + history,
    )
    answer = reply.choices[0].message.content
    history.append({"role": "assistant", "content": answer})
    return answer


print(ask("Name three log sources that show a password-spraying attempt."))
print(ask("Which of those is usually missing on small networks, and why?"))

Four details trip people up.

  • The API is stateless. If the system message is missing from a later turn, the model has lost its frame. Send it every time.
  • The chat adds its own text. A prompt tested in the chat and the same prompt over the API can read differently, because the chat sends base instructions ahead of yours. The free chat guide explains what the chat adds, and conversation settings is where you paste a system prompt there.
  • Thinking mode changes the shape. The Qwen3.8-27B card says the model runs in thinking mode by default and generates its reasoning before the final answer. Reasoning budget has its own controls, described in the reasoning docs.
  • Anthropic format puts the system text elsewhere. In the Messages format it is a top-level field, not a message.

If the same endpoint serves your app, a key per use keeps settings apart. The uncensored API key guide covers key hygiene, and the switching guide shows how an existing OpenAI SDK app changes base URL. A failing call can be retried on another model, so check which model answered before you compare prompts.

What does a system prompt cost on every request?

More than people expect on a priced route and almost nothing on the free lane. Every request carries the system message as input tokens. On the free lane, that is a small slice of the daily token allowance. On a priced id, it is a line on the bill, and it is the part of the bill that prompt caching can reduce.

On the free lane the allowance is 100 requests and 3,000,000 tokens a day per account, in the chat and the API alike. The chart shows what the system prompt alone takes from the token allowance in a day that uses all 100 requests.

Share of the daily token allowance used by the system prompt alone

  • 100 tokens0.3%100 x 100 requests = 10,000 tokens
  • 250 tokens0.8%250 x 100 requests = 25,000 tokens
  • 500 tokens1.7%500 x 100 requests = 50,000 tokens
  • 1000 tokens3.3%1000 x 100 requests = 100,000 tokens
Arithmetic: system tokens times 100 requests, divided by 3,000,000. It leaves out the conversation history and the replies, which are the larger part. A 1,000-token prompt still leaves 96.7% of the day for the actual work.

On a priced id the same arithmetic runs against a price. We list qwen3.8-27b-abliterated at $0.51 per 1M input tokens and $0.07 per 1M cached input tokens on the uncensored API page. Paid models are set up by hand, offline, to stop abuse and card fraud: pick a model, check its price there, then email somdutt777@gmail.com to buy access. Take a 500-token system prompt sent 1,000 times a day for 30 days: 500 x 1,000 x 30 = 15,000,000 input tokens, so 15 million times $0.51 is $7.65. If the provider serves that prefix from cache at the listed cached price, the same tokens cost 15 million times $0.07, which is $1.05. Caching depends on the route and is not promised, so treat the second number as the most favourable case. The prompt caching docs explain how to check hits, and the guide to estimating a monthly bill covers the rest of the workload.

What the system prompt adds up to

Input tokens a month from the prompt
15,000,000
Cost at qwen3.8-27b-abliterated listed input price
$7.65
Cost if the prefix is cached at the listed cached price
$1.05
Share of the free daily token allowance (100 requests max)
1.7%

Prices as listed on the uncensored API page. Cached pricing applies only where the route caches your prefix. The calculator runs in your browser and sends nothing.

Two cost habits follow. Keep the baseline short and move rarely used rules into the user message. And keep the stable part of the prompt at the start, because caching works on a repeated prefix. The wider tactics are in cutting LLM API costs and the roleplay cost per month post, which runs a long character card through the same arithmetic. If you are comparing prices across hosts first, the uncensored API price comparison is dated and sourced.

How do you test a system prompt?

Like any other change: one variable at a time, a fixed set of prompts and a count. A single good reply proves nothing, and neither does a single refusal. The plan below fits in an evening and costs a few free requests.

  1. Write twenty prompts from your own work. Ten that you expect to work, five at the edge of what the model does and five that you want it to decline. A test set with no expected declines cannot show you over-compliance.
  2. Fix the settings. Same model id, same temperature, same max tokens. Change the system prompt only.
  3. Run each prompt three times. Sampling varies, so 20 prompts at 3 runs each is 60 replies. That is 60 of the 100 daily requests on the free lane.
  4. Score every reply into one of four boxes. Complete answer, partial answer, soft refusal (hedge, preamble, vagueness) or hard refusal.
  5. Read the denominators. One prompt out of 20 is 5 points. One reply out of 60 is 1.7 points. A change of 5 points on 20 prompts is one prompt, which is noise. The Heretic versus abliterated comparison walks through the same problem on published model cards, including one prompt that moves a card’s metric by 7.1 points.
  6. Test turn 20. Run the same prompts after a 20-turn conversation on an unrelated topic. The card says multi-turn re-assertion is a known survivor.
  7. Check accuracy, not only compliance. The card says removing refusals does not add knowledge, and an answer that is complete and wrong is worse than a refusal. Check a sample against a source.

Keep a log with the prompt version, model id, request id from the usage page and the score. The same log is what you need when a reply looks wrong and you want to verify which model served it.

Box What it looks like Counts as
Complete Answers the question in the requested format A success
Partial Answers some of it and drops the rest without saying A failure to report
Soft refusal Preamble, hedge, “in general terms”, moralising instead of the answer A refusal for this test
Hard refusal A flat decline A refusal

Before you trust a system prompt

0 of 10 done

Not yet

Start with the baseline and the test set.

When does no prompt fix it?

When the refusal lives in the weights, the vision path or the provider. After you have removed restrictive defaults, asked for the answer first and re-tested at turn 20, more wording rarely helps. Change the model instead. The flow below is the order we would try.

The model refused. What next?

Read the refusalhard no, soft hedge or off-topic?Is your system prompt the cause?a restrictive default can add refusalsReframe honestlyreader, task, format, one limitRetest at turn 1 and turn 20multi-turn refusals can returnStill no? Switch modelnot another round of wording
The last step is the important one. Rewording the same request in a loop wastes tokens, drifts the frame and is what our policy means by jailbreaking at scale.

Switching has real options. The free lane serves 47 ids, and six are marked uncensored: GLM 5.3 Flash Uncensored, DeepSeek V4.1 Flash Uncensored, GLM 5.3 Uncensored, Laguna XS 2.1 Uncensored, Nemotron 3 Ultra 550B Uncensored and K2 Horizon 375B Uncensored. They share 100 requests and 3,000,000 tokens a day and need no card. The free uncensored API guide shows how to rotate through them. Family-specific write-ups cover the refusal habits people report: DeepSeek, GLM and Kimi, and the Qwen 3.8 uncensored API guide covers the builds of one family.

If you want to control the weights yourself, the local-or-API guide lays out the trade, the Ollama and LM Studio guide covers running a build at home, and the GPU rental cost comparison prices the middle route. Downloading a build brings its own risks, covered in the safe download guide. Note that a system prompt works the same way on a local model: the template turns it into tokens and the weights decide. For long conversations on a local build, the Qwen context window post shows what a long history costs in memory.

What do the rules say?

Our acceptable use policy applies to every request, with or without a system prompt, and so do the terms. Among the prohibited content: sexual content involving minors, non-consensual intimate imagery, incitement or operational help for violence, meaningful uplift for mass-casualty weapons, harassment, and content that encourages self-harm. It also prohibits malware and exploits aimed at systems you do not own or have permission to test, and circumventing safety filters, including by jailbreaking at scale. Accounts are for adults. Providers may filter independently of us, and where a provider’s policy is stricter, the stricter rule applies to that model.

None of that makes uncensored models pointless. Fiction with dark themes, frank medical and legal explanation, security education and analysis of unpleasant text are all inside the policy, and these are the uses the seven templates are written for. The question of what the law says where you live is a different one, and the legality guide covers it with sources. What a request reveals about you is the subject of the privacy guide: the company running the model receives the request, and prompts and answers are not stored by us, only counts. The umbrella view of the topic is in the uncensored AI API hub.

What are the honest limits of this guide?

Five, and we would rather you read them than discover them.

  1. We did not benchmark the templates. They are our drafts, written to the habits above. We make no claim about a refusal rate for any of them. The test plan is how you find out for your model.
  2. The card’s list is an expectation. The junafinity card says the surviving categories come from how the method behaves, not from a probe of that checkpoint. Other builds may differ.
  3. One model family drives most of the examples. Templates that work on one chat template may read differently on another, and the Hugging Face documentation says formats differ even between models fine-tuned from the same base.
  4. A system prompt is not a security control. It is readable and it is not enforced by anything outside the model, per OWASP.
  5. The gateway can retry on another model. If a call fails, a similar model may answer, so the model that replied may not be the one you tested. The routing documentation states the rules and the Qwen against DeepSeek comparison shows why two models answer the same prompt differently.

A last practical point. Our transparency page says what we monitor and what we cannot see, and the rankings show which models carry real traffic. Prices for paid ids are on the pricing page and the models list, and the free ones are on the free models page. For a longer look at what the service gives and does not give, the review from the customer side is candid about both.

Test one template on a free uncensored id

Sign in with Google, no card: the 47 free ids share 100 requests and 3,000,000 tokens a day. Paid models are set up by email: somdutt777@gmail.com.

Frequently asked questions

Can a system prompt make an abliterated model answer anything?
No, and it should not be your goal. A system prompt sets tone, persona, format and scope. It does not add knowledge, it does not remove a provider's own filters and it does not lift our acceptable use policy. On an abliterated build it mostly removes friction that came from a restrictive default, which is the one cause of refusal a prompt actually owns.
Why does my uncensored model still refuse or hedge?
Four common reasons. A restrictive system prompt from your client is steering it. The conversation is long and an earlier frame has faded. The reply is a soft refusal, a hedge or a moral preamble that a refusal counter would not catch. Or the weights keep a refusal the edit did not reach. The junafinity card on Hugging Face lists these cases itself, and the table in this post maps each one to a fix.
Is it safe to paste a jailbreak prompt from a forum?
We do not publish them and we would not use them. They tend to be long, they cost tokens on every turn, they work on one build and fail on the next, and our policy forbids circumventing safety filters, including by jailbreaking at scale. They can also match the abuse-category rules described in the privacy post. A short honest frame does the same job on a model that is actually uncensored.
Does the system prompt cost tokens on every request?
Yes. The API is stateless, so the system message travels with every request and counts as input each time. A 500-token prompt sent 1,000 times a day for 30 days is 15,000,000 input tokens, which is $7.65 at the listed input price of qwen3.8-27b-abliterated and $1.05 if the prefix is served from cache at the listed cached price. The calculator in this post lets you change the numbers.
Where do I put the system prompt in the API?
In the messages array, first, with role system. The chat completions reference says the system role carries instructions for the whole conversation and that developer is accepted too. In Anthropic format the system text is a top-level field, as the Messages documentation shows. The example section of this post has curl and Python.
Do I need a different prompt for each model?
Sometimes. Chat templates differ between model families, and how strongly a build follows its system message differs too. Keep one baseline prompt, run the same twenty test prompts on each model you use and change one sentence at a time. The Qwen against DeepSeek comparison shows two families side by side.
Should I write the prompt as a persona, a rule list or a paragraph?
Use the form that matches the job. A persona fits roleplay and fiction. A short ordered list of rules fits extraction and review work. A plain paragraph fits general answers. Whatever the form, state the audience, the task, the format and the one thing the model must not do. The picker in this post gives a starting template for each use.
Does a longer system prompt work better?
Not as a rule. Past a few hundred tokens each added rule competes with the others, and the model may follow the last or the loudest. We would keep a baseline under 150 words and move rarely used rules into the user message. Measure it: the test plan below counts hard refusals, soft refusals and complete answers for each version.
More in Blog

Try it

One API key for GPT, Grok, DeepSeek, Kimi, GLM, MiniMax, Qwen, Step, Beam, Nemotron, ERNIE, Hunyuan, Gemma, Laguna, LFM, LongCat, Llama, Solar, Jais, Mistral, K2 and Roleplay.

One AI API Key speaks the OpenAI and Anthropic formats, so you change the base URL and the key, not your code. Credit packs start at $10, and every model has a published per-token rate.

New accounts$10 credit on sign-up
  • 100requests
    per day
  • 3Mtokens
    per day
  • 47free
    models
  • $0per
    token
  • No card
  • No end date
Claim $10 credit →