Learn how to prompt
A practical prompting guide for writing reliable edit instructions in AfterGen.
AfterGen uses an instruction-based image editing model: you upload a source image and write a short edit instruction. The model tries to apply *only* the requested change while preserving identity, geometry, and the rest of the scene.
Write prompts like you are giving precise instructions to the AfterGen editor. Clarity beats creativity.
1) Start with one clear edit
Write the main change in a single sentence.
Examples
- Change the jacket color to dark green.
- Remove the person in the background on the left.
- Replace the sky with a warm sunset.
If you need multiple changes, keep it short (2–4 items max) and related. Long “story prompts†increase drift.
2) Always say what must stay the same
This is the single best habit for reliable edits.
Preservation phrases
- Keep the face, hairstyle, and expression unchanged.
- Keep the camera angle and framing unchanged.
- Keep the background and lighting unchanged.
- Do not change the logo placement.
Prompt pattern
[Edit instruction]. Keep [things to preserve]. Do not change [things to protect].
3) Name the target object clearly
If the change should apply to a specific object, name it like a human would:
Good targets
- the sign on the storefront
- the label on the bottle
- the red car in the foreground
- the woman wearing a blue coat
Add position only if needed
- on the left / on the right
- in the background / in the foreground
Avoid pixel-perfect instructions unless necessary.
4) Text edits: put the text in double quotes
When adding or replacing text, put the *exact* text inside English double quotes.
Recommended patterns
- Replace "SALE" with "NEW".
- Change the sign text to "AfterGen Studio".
- Correct the label to "Nitrogen".
Preserve typography (if needed)
- Keep the original font, size, color, spacing, and perspective.
If the image contains multiple texts, specify *which* one
- Replace the text on the top banner "..." with "...".
- Replace the small label near the cap "..." with "...".
5) Protect identity (faces, outfits, the same person)
AfterGen’s model is strong at identity stability, but you still need to protect the subject.
Identity protection phrases
- Preserve facial features.
- Keep the same person (identity).
- Keep the same pose and expression.
- Keep skin tone and age unchanged.
If you change clothing or hairstyle, keep the edit minimal
- Change the outfit to a black leather jacket. Keep the face, body shape, and hairstyle unchanged.
If you still see drift, split edits into steps (small change → background/style → polish).
6) Multi-person edits (group photos)
Group edits are harder than single-subject edits. Be explicit.
Best practices
- Identify people by role and position ("the person on the left", "the man in the center").
- Preserve each person’s identity ("keep each face unchanged").
- Avoid heavy global style changes at the same time as identity-sensitive edits.
Example
- Change the background to a modern office. Keep all people’s faces, hairstyles, and body proportions unchanged.
7) Choose the right tone: minimal vs creative
AfterGen supports both “surgical†edits and creative transformations.
Minimal / appearance edits
- Remove the scratch on the car door. Do not alter anything else.
Creative / semantic edits
- Turn the scene into a cinematic cyberpunk style, neon lighting, rainy street.
If you want minimal change, say it
- Make a minimal edit. Keep everything else unchanged.
8) When prompts fail: quick fixes
Most failures come from ambiguity or asking for too much.
Common problems → fixes
- Changes too much → add stronger preservation constraints; reduce edits.
- Unclear target → name the object precisely; add left/right/background.
- Style or identity drift → split into multiple edits; protect identity.
- Wrong text/font → use double quotes; preserve typography; keep text short.
9) Copy/paste templates
Minimal edit
- [Do X]. Keep the rest of the image unchanged.
Product photo
- Change the material of the [product] to [material]. Keep the logo, proportions, and lighting unchanged.
Text replacement
- Replace "[OLD]" with "[NEW]". Keep the original font, size, color, and perspective. Do not change anything else.
Face-protected edit
- Change [thing]. Preserve facial features, expression, hairstyle, and body proportions.
For more examples, open the Questions section and start with “How to edit text in images?†and “Why does image drift happen?â€.