
Short answer: No AI tool truly locks your face, because every editor redraws your photo instead of retouching it. What works is an identity anchor: the same reference photo on every prompt, plus a written lock list naming each feature that must not change. Nano Banana Pro and Flux Kontext hold a face best, ChatGPT works with a proper lock list, and Midjourney is wrong for real photos of you.
You asked for a new background. You got a new face: narrower jawline, different eyes, skin smoother than yours has ever been, a cousin you have never met. Ask for a LinkedIn headshot and you come back ten years younger. Ask for a different shirt and your nose changes shape.
This is the most common complaint in AI photo editing. It isn't a bug in one app. It happens in ChatGPT, in Gemini, in every tool that redraws your photo. People describe it the same way everywhere: the edit transformed my face into someone else's, the result doesn't look like me, a simple background swap gave me a slimmer nose, different teeth, a stranger's smile. The fix sounds like it should be simple. It isn't, but it's learnable, and the prompts below are the closest thing to a lock that exists in each tool.
One warning before the prompts: the /identitylock code going around in reels is not a real command, and the ChatGPT section explains why.
Which tool keeps your face best? The comparison
| Tool | Face preservation | Best for | Price / free tier |
|---|---|---|---|
| Gemini Nano Banana Pro | Strongest. Up to 14 reference images; built for identity retention | Editing your real photo, same person across many images | Free in the Gemini app (daily quota, unpublished); API from $0.034 per image, Pro $0.134 |
| Flux Kontext | Very strong. Edits only what you name; the rest stays near pixel-perfect | One precise change to a real photo: background, outfit, object | From $0.025 per image (Dev), Pro $0.04, Max $0.08 |
| ChatGPT Images | Good with a written lock list; no built-in identity feature | Quick edits if you already pay for ChatGPT | Free tier with tight limits; Plus $20/month |
| Midjourney | Strong for AI-made characters; weak for real photos of you | Recurring illustrated characters, comics, storyboards | From $10/month; no free tier or trial |
| Leonardo AI | Good. Character Reference with Low / Mid / High strength, plus trainable Elements | Character series and story work | Free tier available; paid pricing not verified |
| Ideogram | Good. One to five reference images; face stays the anchor | Same person across posters, comics and social series | Free plan available; API $0.10–$0.20 per image |
| Adobe Firefly | Promising but beta. Elements save a character you can @-reference | Brand work inside Adobe's tools | Free tier with daily generations; Standard $9.99/month |
| Grok Imagine | Weakest for face work. References only, no identity lock | Fast drafts, not likeness-critical work | Paid tiers on X and grok.com; no free access |
1. ChatGPT Images: the lock list is the whole trick
ChatGPT has no face lock: no setting, no toggle, no identity mode. Its image model looks at your whole photo and generates a brand-new image from your instruction. As a result, your face is redrawn every single time, even when you only asked to change a T-shirt colour. That one fact explains almost every disappointing result.
So the fix isn't a feature. It's a prompt in a specific order: name the one thing you want changed, then name every facial feature that must stay exactly as it is. Each feature you name is one the model copies instead of reinventing; each one you leave out is open to change. That's why vague prompts fail. "Make this a professional LinkedIn photo" tells the model that professional means a new blazer, smoother skin, whiter teeth and a slightly different face: polished, and not like you.
The hardcore prompt: copy, paste, change only the bracketed part
Edit the uploaded photo. Change ONLY the background to [describe the new background in one sentence, e.g. a softly lit neutral grey studio backdrop].
Keep the person exactly as in the original photo. Preserve facial proportions, eye shape and eye colour, nose, lips, jawline, hairline, hairstyle, age, skin tone, skin texture, expression and body shape. Do not apply beauty filters, do not smooth the skin, do not slim the face or body, do not whiten teeth, do not make the person look younger or older. Keep the clothing, pose, camera angle and framing unchanged. Keep natural skin texture and individual characteristics such as moles, freckles and scars. Match the lighting direction and colour of the original photo so the person does not look pasted in. Photorealistic. Return one edited image in the original aspect ratio, with no added text.
About /identitylock: the viral code that is not a command
You have probably seen the reels: type /identitylock at the end of your prompt and your face stays, then /poseonly, /studioquality, /upscale, and forty more. Here is the honest version: none of them are ChatGPT commands. OpenAI's own documentation lists the real slash commands for the desktop app. And every one manages the chat itself, things like /model or /rename. Not one edits a photo, and not one viral code appears on the list. That was checked against OpenAI's help pages in November 2026.
So why do people swear the codes work? Because ChatGPT reads /identitylock as plain words, and the words identity lock tell it what to keep. The code works the way a sentence works, and only as well as one. The full sentence underneath the code is what does the job. If you type only the code, ChatGPT is left guessing, and the face can drift just the same. Use the long prompt above instead. It's the code, written out.
Settings: none to change. Upload your own photo, paste the prompt, and check the result against the original side by side before you post it. Free tier image generation is tightly limited and OpenAI publishes no exact count; Plus is $20 a month.
2. Gemini Nano Banana Pro: the best face lock you can use for free
Nano Banana is Google's name for the image models inside Gemini, and the strongest option here for one reason: it was trained to treat your reference images as the identity, not as inspiration. The current model is Nano Banana 2.1, released in October 2026, with Nano Banana Pro as the premium version. Where most tools take one reference image, 2.1 accepts up to four character references and ten object references in one workflow, and Pro accepts up to fourteen. That matters, because a face isn't one picture: a front shot, a three-quarter shot from each side, and one in different light give the model far more to anchor to than a single selfie.
The workflow is boring, and that's the point. Pick one master reference: a sharp, front-facing, evenly lit photo with a neutral expression, face filling at least a third of the frame. Attach that same image to every request. Never feed the last output back in as the next reference; that is how drift compounds. Every edit starts from the original. And describe the scene, not the face: the moment you describe your own face in words, you're asking the model to rebuild it from a description. A description is always coarser than a photo.
Two honest caveats. Google's own model card lists the weakness plainly: character consistency isn't always perfect. Small marks drift first. In an independent ten-call test in November 2026, a character's haircut and jacket survived every scene, but a star-shaped scar and mismatched eye colours mostly did not. So put what makes you recognisable into the big, visible things, your hair, your glasses, your build, and check every result against the reference at full size. API images also carry a SynthID watermark, and in the Gemini app the free tier runs Nano Banana 2 with an unpublished daily quota. Meanwhile, 2.1 and Pro need a Google AI plan.
The hardcore prompt: copy, paste, change only the bracketed part
Use the attached photos as the reference for the same person. [IMAGE 1] is the master reference: keep this exact person's face identical in every detail, same eye shape and spacing, same nose, same jawline and face shape, same skin tone and skin texture, same hairline and hairstyle, same age. Do not beautify, slim, smooth or age the face. Do not change the identity.
Place the same person [describe only the new scene, pose, outfit and setting, e.g. sitting at a window table in a bright cafe, holding a laptop, warm afternoon light]. Change only the setting, pose and outfit. Keep the face, expression and identity exactly as in the reference photos. Photorealistic, natural skin texture, same framing and aspect ratio as the reference.
Settings: in the Gemini app, attach two to four photos of yourself from different angles and reuse the same set every time. On the API, 2.1 costs $0.034 per 1K image and Pro $0.134 per 1K or 2K image (November 2026). If the face drifts twice from the original reference, stop re-rolling: frame the face larger, or move the distinguishing trait somewhere more visible.
3. Flux Kontext: change one thing, touch nothing else
Flux Kontext, from Black Forest Labs, is built differently from the tools above. That difference is exactly why it holds a face so well. Most image editors blend your photo with noise and then denoise it back into a picture. That is where the face quietly gets rebuilt. Kontext feeds your photo into the model as context, as tokens the model reads alongside your words. As a result, the parts you didn't mention stay close to the original. There's no strength knob to tune and no mask to paint. You tell it what to change, in one declarative sentence, and it changes that and leaves the rest alone.
The prompting style is the opposite of ChatGPT's. Where ChatGPT needs a long lock list, Kontext wants one short instruction with the preservation stated first. One change per prompt, one sentence, no stacking: "Change the jacket to red leather, keep the face and background" is the shape. The model decides which pixels your instruction describes. The more specific you are about the change, the less it touches. Ask for five changes at once and you hand it permission to repaint five regions. The face is usually one of them.
Three versions exist. Pro is the default for everyday edits. Max handles harder edits, several steps or tricky lighting, at about twice the price. Dev is the cheapest and the only one with style presets, but it is edit-only. For face work, start with Pro. One limitation: Kontext takes a single reference image per edit. So it can't combine several angles of you the way Nano Banana can.
The hardcore prompt: copy, paste, change only the bracketed part
Keep the person's face, pose, clothing and framing exactly unchanged. [Describe the single change as a direct instruction, e.g. Change the background to a beach at sunset, out of focus.] Do not alter the face, eyes, nose, jawline, skin tone, hair or expression in any way. Do not beautify or smooth the skin. Keep the lighting on the person consistent with the new background. Photorealistic.
Settings: Pro, one image attached, one declarative instruction. Pricing via Prodia (November 2026): Dev $0.025, Pro $0.04, Max $0.08 per image. Through another app the price may differ, but the model behaviour is the same.
4. Midjourney: the tutorial most people follow is out of date
Midjourney is the tool where the most advice online is wrong, and the wrongness costs real money. Almost every tutorial tells you to keep a character consistent with --cref and --cw. That was correct for version 6. It isn't correct now. Midjourney's own docs say --cref is only supported on V6 and Niji 6, and unsupported on V7, V8.1 and V8.2. Version 7 replaced it with Omni Reference, and version 8.2, the default since July 2026, replaced that with the Edit Model. Paste --cref into a V7 or V8 prompt and you're using a parameter the model no longer honours.
Here is the version map, from Midjourney's own docs. On V6, use --cref with --cw (0 to 100, default 100). At --cw 100 the model copies face, hair and clothing; at --cw 0 it focuses mainly on the face. That is the setting you want when the outfit needs to change. On V7, use --oref, the Omni Reference, with --ow (1 to 1,000, default 100). One image only, twice the GPU time, and it doesn't work with Fast, Draft or Conversational Mode, or with --q 4. Keep --ow below 400 unless stylize is high. On V8.2, use the Edit Model on the website: upload your image, describe the change in plain words, attach up to four references. No --cref or --oref exists on V8.2.
And the bigger honesty: Midjourney is the wrong tool for keeping your real face. Its reference features work best with characters Midjourney generated itself. Real photos tend to come back distorted, because the model is optimised for style, not likeness. It's superb for an illustrated character across a comic. For a photo of you that must still look like you, Nano Banana or Flux Kontext will beat it every time.
The hardcore prompt: V7 Omni Reference, copy and paste
[Describe the scene and the character in full, e.g. A woman in her thirties with a chin-length black bob and round glasses, standing in a bookshop, holding a paperback, warm window light, photorealistic editorial portrait] --v 7 --oref https://s.mj.run/YOUR-IMAGE-URL --ow 250 --s 100 --ar 4:5
Rules: keep --ow at 250 for a strict hold, drop it to 100 to let style dominate. Keep --s low, because high stylize fights the reference for influence. Use the same reference URL and the same seed in every image of the series.
The hardcore prompt: V6 Character Reference, copy and paste
[Describe the scene and the character in full] --v 6 --cref https://s.mj.run/YOUR-IMAGE-URL --cw 0 --ar 4:5
Rules: --cw 0 holds the face only and lets the outfit change; --cw 100 holds face, hair and clothing together. For a new outfit on the same face, --cw 0 is the setting that actually works.
Settings: pick the version first, then the parameter. Basic is $10 a month, Standard $30, Pro $60, Mega $120, with no free tier or trial, so test on the cheapest plan before committing to a series. Warning: --oref doubles GPU time on every render, so a long series burns through Basic's 200 fast minutes fast.
5. Leonardo AI: a real character lock, with honest limits
Leonardo is one of the few browser tools that offers both ways of holding a face: a reference image you attach to each generation, and a trained model of your own character. The first is Character Reference. Upload one clear, front-facing, evenly lit portrait, open image guidance, choose Character Reference, and set the strength. Low gives the most flexibility and the least resemblance, Mid is the middle ground, and High gives the best resemblance with the least flexibility. For face work, High is the setting for close portraits that must match, Mid for changing pose, outfit or scene. Avoid Low for identity work entirely.
Leonardo's own docs carry a caveat worth repeating: Character Reference isn't intended as a face swap feature and doesn't produce a perfect replica every time. Expect to discard some outputs. That isn't a flaw in your prompting; it's the tool telling you its ceiling. Check each output against your master image at full size, eyes, nose, jawline, hairline, and keep only the matches.
The second method is Elements, Leonardo's custom LoRA training. Generate a dataset of your character from varied angles using Character Reference, curate the best shots, and train an Element on them. It takes longer, but it's the strongest option inside Leonardo, because the model has learned your character instead of glancing at one photo per generation. Combine both, an Element plus a reference at Mid or High, for the most locked-in face Leonardo can produce. Note: Character Reference was built for SDXL-family models. Check your selected model supports it before starting a series.
The hardcore prompt: copy, paste, change only the bracketed part
[Describe only what changes: setting, outfit, action, e.g. Standing on a rooftop at dusk, wearing a navy blazer, city lights behind her, confident relaxed expression.] Keep the character's face identical to the Character Reference: same eye shape, same nose, same jawline, same skin tone, same hairline and hairstyle. Do not beautify, slim or age the face. Photorealistic, natural skin texture, same framing as the reference.
Fixed block, reuse in every prompt of the series: [lens, light and colour, e.g. 85mm portrait lens, soft window light, warm neutral colour grade, shallow depth of field].
Settings: Character Reference strength High for portraits, Mid for new scenes; enable Alchemy for Quality mode. Leonardo has a free tier with daily credits; paid pricing wasn't verified. Check the pricing page before you pay.
6. Ideogram: one photo, same face, new scene
Ideogram Character is the simplest pitch in this list. One reference photo, no training, same face. Upload a clear photo of a person, describe where they are and what they are doing. The model keeps their face while the pose, outfit, lighting and setting change. The current version in the app is Ideogram 4.5, which accepts one to five reference images per run. The older 3.0 Character route takes exactly one image, saved as a named character in your library.
The prompt discipline here is the reverse of ChatGPT's. Don't describe the face. Spend every word on the place, the wardrobe, the wind, the pose, and let the portrait supply the likeness. Refer to the person plainly and leave their features out of the text. The moment you write "beautiful green eyes" you have given the model permission to rebuild the eyes from words. In the app, use the character's tag, for example @img_1 sitting at a cafe table, morning light.
The limits are documented. Character consistency is not absolute: under complex scenes, exaggerated poses and expression changes, the face can still drift. Likeness weakens with steep profile angles, heavy occlusion and low-resolution references. Only one reference portrait is read per request on the 3.0 Character route, so pick your best single shot. Generate two to four takes of each scene and keep the closest match, rather than re-rolling the same prompt twenty times.
The hardcore prompt: copy, paste, change only the bracketed part
@img_1 [describe the new scene only, e.g. sitting at a cafe table, reading a newspaper, morning light, wearing a cream linen shirt]. The person from the reference photo, same face, same hairstyle, same features. Do not change the face. Do not beautify or smooth the skin. Photorealistic.
Rules: never describe the face in the prompt. Attach the same reference photo to every image in the series. If the likeness slips, use a sharper, better-lit reference, not a longer prompt.
Settings: Ideogram 4.5 in the app with one to five reference images, or the 3.0 Character app with one saved character. On the API, 3.0 Character costs $0.10 per image at Turbo, $0.15 at Default and $0.20 at Quality, checked November 2026. A free plan exists in the app.
Two more, briefly: Firefly is promising, Grok is a skip for face work
Adobe Firefly is the one to watch. Its Elements feature, in beta, lets you save a character, a location or an object once and then reference it in any prompt by typing @ and picking its name. You can add face and body views, generate a character sheet, and Firefly shows a consistency score for how well the element is defined. In Firefly Boards you can also use partner models, including Nano Banana. The catch: Elements is beta, the interface is still moving, and partner models need premium features and credits. Standard is $9.99 a month with 2,000 generative credits (October 2026), and a free tier with daily generations exists. If you already live in Adobe's tools, build your character as an Element. If not, start with Nano Banana.
Grok Imagine is the skip. It's fast and follows instructions well, and Image 2.0 takes up to three reference images you can name with @ in the prompt. But it has no identity lock, no character weight, no strength dial for likeness, and its face consistency is the least tested of any tool here. It is also paid-only now on X and grok.com. Use it for quick drafts. Don't use it when the whole point is that the person in the picture must still be you.
Why AI keeps changing your face
Once you understand the mechanism, the prompts above stop looking like superstition. Five things are going on.
1. The tool rebuilds your photo; it does not retouch it. An AI editor doesn't paint over your picture the way a person would in Photoshop. It compresses the image into a dense mathematical summary, then paints a brand-new picture to match it. The exact spacing of your eyes and the curve of your lip are the first details lost. The result looks like your description, not like your face.
2. Every generation starts from random noise. A diffusion model begins with a grid of random values and refines it into a picture. Hugging Face's own documentation puts it plainly: diffusion is a random process that generates a different output every time. A new seed means a new starting point, and the face is one of the things that comes out differently. Nothing in a plain generation remembers the person from the last image. Text alone can't fix this, because language is too coarse to pin down a face. You can add fifty descriptors and still get drift, because the model re-interprets them from scratch each run.
3. Faces slide toward the average. These models learned from millions of faces, and that training pulls every output toward a statistical middle. Skin gets smoother, features more symmetrical, proportions more conventional. That's why AI so often makes people look younger and slightly generic. It isn't flattering you; it's reaching for the most probable face. The most probable face is an average one. Beauty words, beautiful, stunning, flawless, make it worse, because they point the model straight at the average.
4. Chained edits compound the drift. Edit image one to get image two, then edit image two to get image three, and each step treats the last output as correct. A slip in step two becomes the starting point for step three. A June 2026 research paper on multi-turn editing found that current editing models often struggle with identity drift and error accumulation over successive steps. After four or five edits stacked on top of each other, the face belongs to someone else. This is why every prompt in this post says the same thing: always start from the original.
5. Small faces give the model nothing to hold on to. If your face fills less than a fifth of the frame, the model has few pixels to copy and fills in the rest from its idea of a generic face. Low-resolution and blurry photos do the same damage. A sharp, well-lit, front-facing photo with the face filling a third of the frame or more is the single biggest practical factor in whether the result still looks like you.
How to lock your face in any tool: the checklist
These seven checks work in every tool in this post, because they fix the causes above instead of fighting one app's quirks.
- Start from the original, every time. Never edit an edited image. Keep the full-resolution original in a separate file and go back to it for every new change.
- One change per prompt: background now, outfit next, colour grading after that. Each extra change is another region the model may repaint. The face is always a candidate.
- Name the face feature by feature. Eyes, nose, jawline, skin tone, hairline, expression. Every feature you name is one the model copies. Every feature you leave out is open to change.
- Ban beauty words. No beautiful, flawless, stunning, perfect skin. Those words point the model at the average face. Write photorealistic and natural skin texture instead.
- Make the face big: it should fill at least a third of the frame in your reference photo. Crop tight before you upload. A small face in a wide shot is the fastest route to a stranger.
- Reuse the same reference and the same words: one master photo on every request, the same fixed prompt block copied verbatim, the same seed where the tool offers one. Consistency comes from repetition, not rewording.
- Compare side by side before you post: put the result next to the original and check the eyes, teeth, hands, hairline and any writing on clothes, the details models change first. If the face has drifted twice from the original reference, stop re-rolling and change the setup, a larger face, a sharper reference, a different tool, instead of the words.
One last note. Only edit photos you have the right to edit: your own, or photos of people who have agreed. These prompts keep a real person's face intact, and that power cuts both ways. Don't use them to change how someone else looks without their say-so, or to make fake photos of real people doing things they never did.
Related questions
Why does ChatGPT change my face when I only asked for a new background?
Because it redraws the whole image instead of editing pixels. Your face is regenerated with the background, and anything you didn't tell it to protect is free to change. The lock-list prompt in section 1 is the fix.
What is the best AI tool to keep my face the same?
For editing your real photo, Nano Banana Pro in the Gemini app, with Flux Kontext a close second for single precise changes. Both treat your photo as an identity reference, not a rough suggestion.
Does /identitylock really work in ChatGPT?
No, not as a command. ChatGPT has no such feature, and OpenAI's documentation lists no photo-editing slash commands. The words work only as plain language; the full sentence underneath the code is what does the job. Copy the long prompt instead.
Can Midjourney keep my real face?
Not reliably. Its reference features work best with characters Midjourney generated itself, and real photos tend to come back distorted. If you use it, pick --oref on V7 or the Edit Model on V8.2, not --cref, which only works on V6.
How many reference photos do I need to lock a face?
One sharp front-facing photo is the minimum. Two to four, front and three-quarter angles in even light, is much better. Pro accepts up to fourteen, but three good ones beat ten bad ones.
Why does AI make me look younger and slimmer?
Because the model pulls every face toward the average of the millions it trained on, and the average is smoother, more symmetrical and younger-looking than you. Beauty words make it worse. Name your real features instead.
Is it safe to upload my photo to these AI tools?
Your photo goes to the company's servers, so read the privacy terms of whichever tool you use, and don't upload photos of other people without their permission. For anything sensitive, prefer a tool whose terms you have actually read over whichever one is trending.
Last checked and updated: 24 November 2026. Prices and features change fast; the prices in this post were verified against vendor and third-party pricing pages in November 2026, and anything we could not verify is marked as such above.
Also read: why your AI headshot looks nothing like you, and why your AI image has six fingers.
No comments yet - be the first
Add a comment