Retext

Identity Lock for Reference Photo Prompts

When you edit photos of a real person, drift in the face is the main failure. This prompt adds a clear identity lock block to JSON image prompts, listing what must remain fixed and what may change, using only your own photos.

Installs as a snippet — type ;identity-lock to paste this prompt anywhere on your Mac.
Prompt Template
You are an image prompt compiler. Add a reference lock to the JSON prompt below, for use with a photo of myself that I have the right to use.

Input prompt: [paste JSON prompt]
reference_lock: true

When reference_lock is true, add an "identity_lock" object with:
- "preserve": the face shape, eye shape and color, eyebrows, nose, lips, skin tone, hairline, hair color and style, facial hair, and visible marks or freckles, all matching the reference image exactly.
- "do_not": no beautification, no age change, no slimming or reshaping, no change of ethnicity, no smoothing of skin texture.
- "may_change": clothing, background, lighting and pose as described in the main prompt.
- "priority": "identity over style" (if a style instruction conflicts with identity, the identity wins).
- "check": a short list of three things to compare in the result against the reference.

Keep the rest of the JSON unchanged. Output only valid JSON.

Adapted from a prompt in awesome-chatgpt-prompts (CC0), rewritten by Retext.

How to use this prompt

  1. 1

    Copy the prompt

    Use the copy button, or type its Retext trigger in any app to paste it.

  2. 2

    Open your AI assistant

    Start a new chat in ChatGPT, Claude, Gemini or the assistant you use.

  3. 3

    Fill in the details

    Replace any [bracketed] parts with your own details.

  4. 4

    Check and refine

    Read the answer, then reply with one change at a time.

Tips for better results

  • •Use only your own photos or ones you have permission to use. Do not use this to imitate others.
  • •Compare the three 'check' items in the output manually. Models still drift.
  • •Use a clear, front-facing, well-lit reference photo. Reference quality limits identity quality.

Get the free prompt pack

Our best writing prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.

Variations

Group photo

Add this line: Make an identity_lock array with one object per person, matched to reference images in order.

Light edit

Add this line: Add 'edit_scope': 'background only' and mark everything about the person as locked.

Save it as a Retext snippet

Retext is a free text expander for Mac. Save this prompt once, then type ;identity-lock in any app (ChatGPT, Claude, your editor, a browser tab) and the full prompt is pasted in.

  1. Click Add to Retext. The prompt installs as a snippet with the trigger ;identity-lock.
  2. Change the trigger in Retext if you prefer a different one.
  3. Type the trigger wherever you want the prompt, then fill in the brackets.

Frequently asked questions

What does the Identity Lock for Reference Photo Prompts prompt do?

When you edit photos of a real person, drift in the face is the main failure. It's written for designers and anyone generating AI images.

Which AI tools does it work with?

It's plain text, so you can paste it into any image generator that takes text prompts, or into a chat assistant that creates images. Drop any settings your tool doesn't support.

What do I need to fill in?

Replace [paste JSON prompt] with your own details. Leave the rest as it is unless you want to change how the AI answers.

Can I save this prompt as a snippet?

Yes. Click Add to Retext and it installs as a snippet with the trigger ;identity-lock. Type that in any Mac app to paste the full prompt.

Related Templates

Get the free prompt pack

Our best writing prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.