How to Write an Identity Lock Line

An identity lock line is a short instruction at the end of a photo prompt that tells the model to keep your face, skin tone, hair and body proportions the same as in the photo you upload. Put it last, keep it specific, and send it again on its own if the face drifts.

A man holds two prints of the same face in different outfits under the headline Keep The Same Face.
A lock line asks the model to keep your face while it changes the scene.

When you upload your own photo, most image models will still try to beautify, age or reshape the face. A single extra sentence, placed at the end of the prompt, is the simplest way to ask them not to. This guide explains what that sentence should say, where to put it, and what to do when the face still changes.

Quick answer

Write one plain sentence that names the things that must stay the same: face, skin tone, hair and body proportions. Say they must match the uploaded photo. Add that the model should not beautify, age or reshape those features. Put the sentence last. If the first result drifts, send that sentence again as its own follow-up.

What the line is for

Photo-editing models read your prompt as a creative brief. Without a lock, they often move toward a generic face that they have seen more often in training. The lock is not a secret code. It is a clear limit: change the scene, keep the person.

You need it whenever the prompt uses your photo. You do not need it for a text-only scene with no real person, or for a product, logo or room. Our library adds the line automatically on every prompt that says it needs your photo.

A laptop lists face, skin tone, hair and proportions with all four ticked.
Name face, skin tone, hair and proportions.

A line you can copy

Use this wording, or something very close to it: keep my face, skin tone, hair and body proportions exactly the same as in the photo I upload. Do not beautify, age or reshape my features. Do not change my identity.

For two people, change "my exact face" to "each person's exact face" and name who is in photo 1 and photo 2. For a child, a parent should write the prompt and keep the result private. See the kids photoshoot collection for that note.

A prompt box highlights the lock line at the end of the text.
Write the edit, then put the lock last.

Where to put it

Put the lock last. Models weigh the end of a prompt when instructions conflict. If you bury the line in the middle and then ask for a dramatic style, the style often wins.

  1. First: the edit you want, in one or two sentences.
  2. Then: clothes, place, light and lens.
  3. Last: the identity lock.

Do not stack five versions of the same lock. One clear paragraph is enough. Repeat it only if the first image drifted.

A split result: a beautified stranger versus the same man in a navy coat.
Do not beautify. Keep the face you uploaded.

When the face still changes

The line is a request, not a guarantee. If the face still drifts, start a new chat, upload a sharper front-facing photo in daylight, and paste the same prompt. Then send the lock line alone as a second message.

  • Crop other people out of the photo.
  • Avoid sunglasses, heavy filters and deep shadow on the face.
  • Ask for one change at a time after the first good result.
  • Try the same prompt in Gemini and ChatGPT and keep the closer face.

The seven fixes article walks through photo quality, variations and switching models.

What not to write

Avoid vague praise such as beautiful, perfect skin or flawless. Those words push the model toward a retouched look. Avoid naming a celebrity or a brand face. Avoid asking the model to make you look younger or older if you want a true likeness.

Do not hide the lock inside a joke or a role-play. Plain words work better. Do not ask the model to ignore its safety rules. If a request is refused, rewrite the scene in ordinary language instead of trying to trick the filter.

Couple, group and pet photos

When two photos are merged, name who is who before the lock. Photo 1 is the first person. Photo 2 is the second person. Then ask the model to keep each person's face. The couple prompt generator writes those lines for you.

For a group, list people in order and say how they stand. For a pet, upload a clear photo of the animal and say keep this exact animal, markings and colours. The pets collection is written that way.

How our library uses the line

Every PhotoPrompts card that needs your photo already includes a lock. Press Copy and the line comes with the rest of the prompt. You can still edit it. If you write your own prompt in the prompt enhancer, tick the photo box and the tool adds a lock for you.

We do not claim the line works in every model or every version. We say it is worth keeping because it is the cheapest way to reduce face drift. Test it on your own photos and keep the wording that holds your face best.

A short practice

Pick one portrait from the headshot collection. Run it with the lock, then run the same prompt without the lock. Compare only the face. Keep a note of which model and which photo held up better. That note will save you time the next time a face drifts.

If you want a person to look at a result with you, use the contact page. Send the prompt, the model and a screenshot. Do not send photos of other people without their agreement.

Field notes

Think of the lock as a constraint, not as a style. Style words describe the picture. Constraint words describe what the model is not allowed to invent. If you mix them, the style often wins, which is why the lock sits last.

A lock cannot recover detail that is not in the photo. A blurry file will still be blurry in the face, even if the outline is right. Take a new picture before you rewrite the sentence for the fifth time.

Different versions of Gemini read the same lock with different care. If your app shows a model picker, test the lock in each version you can access and keep a note. Do not trust a ranking from a post that did not run that test.

When you edit a child or a family member, the lock is also a safety habit. You are asking the model not to invent a different person. Keep those results off public feeds unless everyone in the picture has agreed.

If you write prompts for clients, put the lock in your template so you never send a brief without it. The cost of one extra sentence is nothing next to a portrait that looks like a stranger.

Saved prompts on this site store the full text, including the lock. If you edit a copied prompt, glance at the last two lines before you press send. That glance catches most accidental deletions.

If you submit a prompt to the library, include the lock in the text you paste. Reviewers should not have to guess whether a photo prompt is meant to hold a real face. The submit page is the place for that.

If you only remember three things

  1. Put one lock line last, and name face, skin tone, hair and proportions.
  2. Use a sharp, front-facing photo with one person in it.
  3. If the face drifts, send the lock again on its own before you rewrite the whole prompt.

Worked example

Here is the same idea written two ways. The second one is the one to paste.

Before: Cinematic portrait of me, make it stunning, like a movie star, beauty skin.

After: Edit my uploaded photo into a cinematic portrait on a quiet street at dusk, camel coat, 50mm lens. Keep my face, skin tone, hair and body proportions exactly the same. Do not beautify, age or reshape my features.

The second version names the scene and forbids beautifying. The first version invites a generic face.

A practice you can finish today

Set a timer for twenty minutes. Do not chase a perfect picture. Chase a note you can reuse.

  1. Pick one prompt from the selfie collection.
  2. Run it with the lock line and save the image.
  3. Run it again without the lock in a new chat.
  4. Write two sentences about which face is closer to the photo.
  5. Keep the wording that won and reuse it this week.

Write down the line that worked, the model name you saw, and the date. That note is worth more than a long prompt library you never open.

Mistakes that waste attempts

Most wasted attempts come from changing too much at once, or from asking the model to guess.

  • Putting the lock in the middle, then adding a dramatic style after it.
  • Using a dark, filtered selfie and blaming the model.
  • Asking to look younger or like a named public figure.
  • Repeating the lock five different ways in one prompt.
  • Uploading a group photo and hoping the model picks you.

What to do next

When a face holds, save that prompt. When it does not, change the photo first, then the lock, then the model. The seven fixes article and the contact page are the next stops if you are still stuck.

Frequently asked questions

Do I need the line for text-only prompts?

No. Use it when you upload a photo of a real person or a pet you want to keep looking the same.

Can I shorten the line?

Yes. Keep face, skin tone, hair and the words do not beautify. Shorter is fine if those parts stay.

Does Midjourney use this line?

Midjourney is mostly text to image. The line helps more in Gemini and ChatGPT when you attach a photo.

What if two people swap faces?

Name photo 1 and photo 2, add one clothing detail for each person, and send the lock again.