How do you roleplay with ChatGPT, Claude, Gemini or Grok?
Can ChatGPT roleplay with you, can Claude, does Gemini, and how to roleplay with Grok AI. Where each one takes a persona, what its usage policy says about fiction, and a prompt to copy.
You roleplay with ChatGPT, Claude, Gemini or Grok by telling the model who it plays, where the scene is, what the rules are and how a reply should look. Each one takes that text in a saved instruction field, in the first message of a chat, or as a system prompt through its API. The three usage policies we could read on 3 December 2026 (OpenAI, Anthropic and Google) do not ban roleplay. Each bans specific content, and the rule about minors is the same in all three.
Where do you set a persona in each model?
| Model | Where to set a persona | What its policy says about fiction and roleplay | Source |
|---|---|---|---|
| ChatGPT | Custom instructions, or the first message; a system message in the API | Bans "underaged sexual or violent roleplay"; does not mention other roleplay | OpenAI usage policies, effective 20 November 2026 |
| Claude | Project instructions, or the first message; a system prompt in the API | Allows "clearly disclosed parody, satire, or fiction"; bans sexually explicit content | Anthropic usage policy, effective 12 November 2026 |
| Gemini | A Gem's instructions, or the first message; a system instruction in the API | Does not mention roleplay; says "context matters"; bans explicit sexual content | Gemini policy guidelines, undated |
| Grok | The first message; a system message in the API | Page could not be read on 3 December 2026 | xAI API docs |
Can ChatGPT roleplay with you?
Yes. OpenAI's usage policies name roleplay once, in the list of things that endanger young people: "underaged sexual or violent roleplay". They also ban "sexual violence or non-consensual intimate content" and using a real person's likeness without consent. Fiction and character play are not on the list.
For a persona that lasts across chats, open Settings, then Personalization, and write it under Custom instructions. OpenAI's help page says "Your custom instructions are applied immediately to all chats." Free and Go accounts can save 1,500 characters there, and Plus accounts 5,000. That is about 250 words on a free account, enough for one of the templates in AI roleplay prompts.
Custom instructions apply to every chat, including the ones where you ask for a recipe. For a single story, paste the prompt as the first message instead.
Can Claude roleplay?
Yes. Anthropic's published constitution for Claude uses roleplay as an example: a user asks Claude "to role-play as a fictional human", and Claude "can use its judgment and maintain the persona in later turns even if it's asked if it's an AI."
The usage policy sets the limits. It bans sexually explicit content, including "erotic chats". It bans content that sexualizes minors "including in fictional settings or via roleplay with the model". It bans convincing people they are talking to a human, and adds: "This does not prohibit clearly disclosed parody, satire, or fiction."
In the Claude app, a project holds the persona. Anthropic's help page says projects are "available to all users, including those with free Claude accounts", up to five on a free account, and each one has project instructions. Through the API the persona goes in the system prompt. Anthropic's prompting guide says: "Setting a role in the system prompt focuses Claude's behavior and tone for your use case."
Does Gemini roleplay?
Yes, within Google's content rules. The Gemini policy guidelines do not mention roleplay. They say Gemini should not generate "outputs that describe or depict explicit or graphic sexual acts or sexual violence", and their rule on gratuitous violence covers violence "whether real or fictional". They also say "context matters", and list artistic use among the things Google weighs.
A Gem is Gemini's saved persona. In the Gemini web app, open Settings, then Gems, then New Gem. Google's help page says: "Name your Gem and write instructions for it to follow." In the API the same text is a system instruction, and the example in Google's own docs is a character: "You are a cat. Your name is Neko."
How do you roleplay with Grok AI?
Paste the prompt as your first message, or send it as the system message through the API. xAI's chat guide shows the system message in its first code sample: "You are Grok, an AI agent built to answer helpful questions." Replace that line with your character.
xAI's acceptable use policy page refused to load on the day of checking, so this page does not quote it. Read it at x.ai/legal/acceptable-use-policy before you start a story there.
What does a general chat app lack for a long roleplay?
Three things.
It forgets. A model keeps nothing between messages, so the app re-sends the conversation on every turn up to a limit, and the oldest messages drop out with no warning. Can AI remember a long roleplay? has the numbers.
It keeps no stats. Ask a chat model to track Health and it writes whatever number suits the scene, then loses count once the early messages are gone.
Its instructions are fixed text. Custom instructions, project instructions and a Gem's instructions go to the model whole, every turn. None of the help pages above describes lore that is sent only when its keyword comes up, such as an innkeeper's backstory that appears when someone says her name.
A roleplay prompt for Claude, ChatGPT, Gemini or Grok
This prompt has the four parts taught in AI roleplay prompts: role, setting, rules and format. The last line works around the missing stats by putting the numbers back in front of the model each turn.
You are the narrator of [setting in one sentence].
I play [name], who wants [goal].
The danger is [threat], and it gets worse over time.
Describe what I see and what happens when I act. Never write my words or actions.
If I try something unlikely, it can fail.
Reply in under 150 words, in present tense. End by asking what I do.
Show "Health: 10 | Day: 1" on the last line of every reply and update it.
Fill the brackets and paste it as your first message, or save it as custom instructions, project instructions or a Gem. The first reply sets the length for the rest, so if it runs long, say so at once.
How do the same models run inside a roleplay app?
A roleplay app sends the same models a longer prompt that it builds for you. On Yumina a story is a world. The creator's text goes first on every turn and is never cut. Numbers such as health or gold are variables that the engine stores and changes from structured data, so the story model cannot rewrite them. Keyword lore is sent only when its word shows up in the recent conversation. Memory is unlimited, up to what the model can hold. On Yumina's hosted models the story memory starts at 64,000 tokens, with your own key Yumina sets no cap, and older scenes fold into a recap.
Yumina is free to play, build and publish. It gives every account free models with no message limit. The other story models are the ones on OpenRouter, including Claude, Gemini and Grok, and you can paste your own key from OpenRouter, Anthropic, OpenAI or Google and pay that provider directly. AI roleplay with your own API key compares the apps that accept a key. The provider's usage policy still applies to what you send through it.
FAQ
Can ChatGPT roleplay with you?
Yes. Tell it who to play in the first message or under Settings, Personalization, Custom instructions. OpenAI's usage policies ban "underaged sexual or violent roleplay" and do not mention other roleplay.
Does Gemini roleplay?
Yes. Write the character into a Gem's instructions or the first message. Google's policy guidelines do not mention roleplay, and they rule out explicit sexual content.
Can Claude roleplay?
Yes. Anthropic's constitution for Claude describes a user asking it to play a fictional human, and its usage policy allows clearly disclosed fiction. Sexually explicit content is banned.
How do you roleplay with Grok AI?
Paste a prompt with role, setting, rules and format as your first message. In the API, send it as the system message.
What is a good Claude AI roleplay prompt?
A short one with four parts: who Claude plays, where the scene is, what must stay true, and how long a reply is. The prompt above fits in a project's instructions.
Sources
Checked 3 December 2026. OpenAI: Usage policies, effective 20 November 2026, and Custom instructions for ChatGPT. Anthropic: Usage policy, effective 12 November 2026, Claude's constitution, What are projects? and Prompting best practices. Google: Gemini policy guidelines, the Gems help page at support.google.com/gemini/answer/15235603, and the text generation guide at aistudio.google.com/docs/text-generation. xAI: the chat guide at docs.grok.com/docs/guides/chat. xAI's acceptable use policy at x.ai/legal/acceptable-use-policy could not be read on the day of checking and is not quoted, and we found no xAI help page for saved instructions in the Grok app. Yumina: Openings and lore, Variables, Choosing an AI model, Does Yumina remember my story? and Is Yumina free?. The prompt is original to this page.