好的改图提示词,先说要改什么,再说哪些必须保持不变。一两句直白的话,通常比一大段描述效果更好。上传多张图时,用 "Image 1"、"Image 2" 指代它们,并给每张图说明用途。
本文介绍基本写法、最常用的几类改图做法,以及结果跑偏时怎么办。
基本写法
[要做的修改]。[位置或方式,如有必要]。保持 [不能变的部分] 不变。示例:
Replace the background with a quiet beach at sunset. Keep the person,
her pose, clothes and face exactly the same.(意思是:把背景换成日落时安静的海滩,人物、姿势、衣服和脸保持完全不变。提示词用中文或英文都可以,本文示例沿用英文,便于直接复制。)
1. 先写修改
把动词放在最前面:替换、去掉、添加、改成、转成某种风格、上色。模型会读完整段提示词,但埋在三句描述之后的指令,最容易被忽略。
要写清楚想要的结果,而不是笼统的要求。"让它更好看" 没有给模型任何可执行的信息;"把房间调亮,暖白色光从左边窗户照进来" 才有。
Google 的 Gemini API 提示词指南对 Nano Banana 给出的建议也一样:描述要具体,并说明图片的用途。"用于网店的产品照片" 比一串形容词更能引导结果。
2. 写明要保留什么
改图模型并不知道照片里哪些部分对你重要,需要你说出来:
- 人物: 脸、发型、表情、姿势、衣服
- 产品: 形状、颜色、Logo、标签文字
- 场景: 构图、拍摄角度、光线
最后加一句 "其余保持不变" 很有用。改动很小时,"只改衬衫" 更清楚。
3. 一次只改一处
一次提多个修改(换背景、换衣服、改成夜景、再加只狗),出错的概率会成倍增加。分步来:下载结果,重新上传,再做下一个修改。
多张图:Image 1、Image 2
上传的图片按添加顺序编号:第一张是 Image 1,第二张是 Image 2,依此类推。在提示词框里输入 @ 即可插入图片名称。本站的 Nano Banana 2、Nano Banana Pro 和 GPT Image 2 最多接收 14 张图,Seedream 5.0 Flash 最多 10 张。
给每张图分配用途。不说明的话,模型只能猜每张图是干什么的。
Put the woman from Image 1 in the jacket from Image 2. Keep her face,
hair and pose from Image 1. Keep the jacket's colour, cut and buttons
from Image 2. Plain light-grey studio background.把要修改的照片放在第一张。画面比例为 auto 时,结果会沿用 Image 1 的形状。
画面比例:保持 "auto"
在改图模式下,auto 会保留 Image 1 的形状,大多数修改都应该这样。只有需要改变画幅时才选具体比例,比如把方形产品图改成 9:16 的竖版。这时模型要为新增的区域补画内容,所以要说明补什么:
Extend this photo to a vertical 9:16 frame. Continue the sky above and
the wooden deck below. Keep the person and the table unchanged.常用做法
换背景
Replace the background with a bright, minimal studio backdrop in light
beige, with a soft shadow under the subject. Keep the subject exactly
the same.描述光线,主体才能和新背景融为一体。更多内容见换背景指南。
换风格
Turn this photo into a watercolor illustration with loose brush strokes
and soft paper texture. Keep the composition and the people's poses.描述风格时,写出能看到的特征(笔触、纸张、平涂色块、胶片颗粒),而不只是一个风格名称。
换衣服
Change his shirt to a navy linen shirt with the top button open. Keep
his face, hair, pose and the background unchanged.如果要换成某件具体的衣服,把它作为 Image 2 上传,用上面的双图提示词。
产品场景
Place the perfume bottle from Image 1 on a wet black stone surface with
a few drops of water around it, dark green leaves in the background,
soft light from above. Keep the bottle's shape, cap and label text
exactly as they are.多个产品同框
Arrange the mug from Image 1, the notebook from Image 2 and the pen
from Image 3 on a light oak desk, seen from above. Morning window light.
Keep each product's colours and logos.去除物体
Remove the people in the background and the trash bin on the right.
Fill the space with the same street and buildings. Keep the couple in
the foreground unchanged.要说明空出来的地方填什么。只写 "去掉",有时会留下一块模糊。
老照片上色和修复
Colorize this black-and-white photo with natural skin tones and muted
1960s colours. Remove the scratches and dust. Keep the faces and
expressions exactly as they are.改光线或时间
Make it night: street lamps on, warm light from the shop windows, dark
blue sky. Keep the buildings, the car and the camera angle the same.替换图中文字
Change the text on the shop sign to "BLUE DOOR CAFE" in the same font
style and colour. Keep everything else the same.把要显示的文字原样放进引号,并尽量简短。
常见问题
人脸不像本人了(身份漂移)
- 直接写明:"keep her face exactly as in Image 1"(她的脸与 Image 1 完全一致)。
- 一次只改一处,不要同时改多处。
- 选脸部大、清晰、光线均匀的照片。合照里只有几个像素宽的脸,可保留的细节很少。
- 用 2K 生成。脸部像素越多,保留的细节越多。
- 一张图里有多人时,试试 Nano Banana Pro。Google 表示它能保持最多 5 个人的一致性和相似度(Google)。
文字拼错
- 把准确的文字放进引号:
the label reads "MATCHA LATTE"。 - 尽量简短。标题比整段文字更稳定。
- 说明位置和样式:"顶部居中,白色粗体无衬线字"。
- 文字较多的设计用 Nano Banana Pro 或 GPT Image 2。
- 一次只修一个词:"Change only the word 'Moring' to 'Morning'."
没有按要求修改
把指令移到开头,写得具体些,并删掉与之矛盾的内容。"其余保持不变" 加 "换背景" 没问题;"照片保持原样" 加一个大改动就会冲突。
改动太多
加上保留清单,或者缩小修改范围:"只改天空"。
用错了图
写明每张图的用途("背景来自 Image 2,人物来自 Image 1"),并检查上传顺序。
选哪个模型?
Nano Banana 2 是默认模型,能处理大多数修改。Nano Banana Pro 更慢、更贵,但在文字和多人场景上表现最好。GPT Image 2 擅长精确修改和清晰的排版文字。Seedream 5.0 Flash 是试想法最便宜的选择。价格和细节见我们的模型对比。
检查清单
- 以修改开头,用动词。
- 写明哪些必须保持不变。
- 一次只改一处。
- 给每张上传的图命名:Image 1、Image 2。
- 除非要改画幅,比例保持 auto。
- 文字放进引号,尽量简短。
新账号赠送 10 积分,可生成 5 张 1K 的 Nano Banana 2 图片;生成失败的图片会退还积分。打开编辑器,试试上面的提示词。