GEMINI OMNI PROMPTS

Blog / 6 min read · 2026-07-25

用于获得更佳前后对比效果的 Gemini 图片编辑提示词示例

使用这些 Gemini 图片编辑提示词示例,清楚说明编辑目标、原始画面内容和需要保留的限制条件,从而获得自然、稳定且更易控制的前后对比效果。

gemini-prompts photo-editing examples prompt-templates

最好的 Gemini 图片编辑提示词,会告诉模型要改什么、图片中原本有什么,以及哪些内容绝不能动。与“把这个弄得更好看”这类简短指令相比,这种简单结构能带来更干净的前后对比效果。使用下方可直接复制的示例,再将方括号中的细节替换成你自己的照片内容。

稳定编辑背后的三段式结构

一条实用的 Gemini 图片编辑提示词包含三部分:

  1. 编辑目标: 明确说明你想要的具体改动。
  2. 原始图片描述: 标明主体、场景、光线、颜色,以及画面中已有的重要物体。
  3. 限制条件: 说明哪些内容必须保持不变,以及结果应当看起来多自然、多克制。

使用这个基础模板:

Edit this photo by [specific editing goal].

Original image: [describe the main subject, background, lighting, clothing, colors, and notable details].

Keep unchanged: [features, objects, composition, text, brand details, pose, or aspect ratio]. Make the result [natural, realistic, subtle, clean, etc.]. Do not add unrelated objects or change the subject’s identity.

“保持不变”这一行很关键。它为 Gemini 设定了边界,尤其适用于人脸、产品、室内空间和包含文字的照片。

Gemini 图片编辑提示词示例

移除分散注意力的背景物体

Edit this photo by removing the parked car behind the person on the left.

Original image: A full-body outdoor portrait of one person standing on a city sidewalk. The person is wearing a beige jacket and dark jeans. There are trees, storefronts, and a parked car in the background. The lighting is soft daylight.

Keep unchanged: the person’s face, body shape, pose, clothing, sidewalk, storefronts, and overall composition. Reconstruct the background naturally where the car was removed. Do not blur the entire background or add new people.

如果第一次结果移除了太多内容,可以继续输入:

Restore the sidewalk edge and the storefront window behind the person. Keep the person exactly as shown in the original photo.

将随手拍改成专业头像照

Edit this photo into a polished but realistic professional headshot.

Original image: A close-up portrait of one person taken indoors near a window. The person is wearing a dark shirt. The background contains a room with shelves and household items. Natural side lighting falls across the face.

Keep unchanged: the person’s identity, facial features, hairstyle, skin tone, expression, and clothing. Replace only the background with a softly blurred neutral office-style setting. Keep natural skin texture and avoid heavy beauty retouching.

如果用于个人资料头像,还可以补充:

Crop for a square profile photo while keeping the head and shoulders comfortably framed.

提升旅行照片,但不让它显得失真

Enhance this travel photo by correcting the exposure, recovering detail in the bright sky, and making the colors slightly warmer.

Original image: A landscape photo of a mountain lake with trees around the shore and snow-capped mountains in the distance. The sky is bright and the foreground is a little dark.

Keep unchanged: the lake, mountains, tree positions, people, and framing. Preserve a realistic daytime appearance. Do not add dramatic clouds, extra reflections, wildlife, buildings, or a sunset.

这条提示词之所以有效,是因为它要求的是校正,而不是模糊的“电影感”效果。如果你想要更有氛围的结果,应当把要求限定得更具体:

Add a restrained film-like contrast and slightly muted greens while preserving realistic mountain colors and daylight.

清理用于线上商品详情页的产品照片

Edit this product photo for a clean online product listing.

Original image: A white ceramic mug photographed on a light wooden table. The mug has a small blue logo printed on the front. There are crumbs, a folded napkin, and a shadow near the edge of the table.

Keep unchanged: the mug’s shape, color, blue logo, handle position, and visible texture. Remove the crumbs and napkin. Use a clean light background with soft natural shadows. Do not alter the logo, add text, change the mug design, or make the surface look plastic.

对于产品照片,应点明每一个必须保持准确的品牌标记、标签或印刷文字。如果没有加以保护,生成式编辑可能会扭曲这些细小细节。

替换暗淡的天空,同时保留原有场景

Replace the flat gray sky with a realistic pale blue sky containing soft, thin clouds.

Original image: A daytime photo of a red brick house with a green lawn, driveway, and two small trees. The house occupies the center of the image. The existing sky is overcast.

Keep unchanged: the house architecture, brick color, windows, lawn, driveway, trees, shadows, season, and camera angle. Match the new sky to the existing daytime lighting. Do not add birds, aircraft, mountains, or extra buildings.

替换后的天空应与照片中已有的光线相匹配。当房屋呈现平直的正午阴影时,要求明亮的日落通常会让画面显得不协调。

修复老旧家庭照片

Restore this scanned old photograph carefully.

Original image: A faded color family photo from an indoor gathering. There are four people standing in front of patterned wallpaper. The image has dust marks, small scratches, faded colors, and low contrast.

Keep unchanged: every person’s identity, facial features, clothing, pose, background pattern, and original composition. Remove dust and scratches, improve clarity, and gently restore natural-looking color. Do not change expressions, add details that are not visible, smooth faces heavily, or modernize clothing.

对于历史照片,先要求保守修复。一张轻微改善的原图,通常比一张看似惊艳、却改动了人物面孔或服装的编辑图更有价值。

去除眼镜反光

Reduce the glare on the glasses in this portrait.

Original image: A close-up indoor portrait of one person wearing rectangular glasses. A bright window reflection covers part of both lenses. The person is facing the camera with a neutral expression.

Keep unchanged: the person’s identity, eyes, glasses frame, face shape, skin texture, hairstyle, expression, lighting direction, and background. Remove only the reflection blocking the eyes and preserve realistic lens transparency. Do not change eye color or create an unnatural sharpness around the eyes.

修改服装颜色,同时保持服装完整

Change the color of the person’s jacket from bright red to deep navy blue.

Original image: A person standing outdoors wearing a zip-up red jacket, black trousers, and white sneakers. The jacket has visible seams, a small chest pocket, and a silver zipper.

Keep unchanged: the person’s face, body, pose, background, trousers, shoes, jacket material, seams, pocket, zipper, fit, and folds. Change only the jacket color to deep navy blue with realistic lighting and shadows. Do not add logos or alter the jacket design.

如何获得更好的前后对比效果

先从最小且真正有用的改动开始。如果你在一条提示词中同时要求清除杂物、替换天空、重塑房间、调整服装颜色和修饰人脸,就更难判断是哪一项指令导致了不想要的变化。

一个实用的流程是:

  1. 上传原图,并请求进行一项主要编辑。
  2. 仔细检查结果,尤其是人脸、手部、文字、Logo 和笔直的建筑线条。
  3. 用后续提示词只修正出现问题的部分。
  4. 在尝试更大胆的变体前,先保存你喜欢的版本。

例如,可以分步骤编辑一张餐厅照片:

First, remove the empty cups and crumpled napkins from the table. Keep all food, plates, people, and lighting unchanged.

然后:

Now brighten the image slightly and reduce the yellow color cast from the indoor lighting. Keep the food colors realistic.

这种方式比要求“一张完美的 Instagram 修图”更容易控制。

常见问题的修复提示词

当 Gemini 改动了你本想保留的内容时,要直接说明问题。先描述错误,再重申需要保护的细节。

Keep the edited background, but restore the original facial features, hairstyle, and expression from the uploaded photo. Do not retouch the face further.
Keep the object removal, but restore the original text on the product label exactly as visible in the source image.
Undo the changes to the building windows and roofline. Keep only the improved sky and original camera perspective.
Make the color adjustment subtler. Preserve the original skin tone, white balance, and contrast of the photo.

你也可以在不丢失原始要求的前提下索取多个版本:

Create two restrained variations of this edit: one with slightly warmer colors and one with neutral colors. Keep all other edits identical.

如果你经常使用 Gemini 处理图片,提示词图库或图片提示词工具可以帮助你保存这些模式的可复用版本,用于人像、商品详情页、旅行照片和清理工作。

常见问题

我可以使用简短的 Gemini 图片编辑提示词吗?

可以,但简短提示词会给不必要的改动留下更多空间。对于简单图片,“移除背景中的人”已经足够;但当主体、构图或产品细节必须保持准确时,应补充限制条件。

编辑人物照片时应该包含哪些内容?

先说明想要的编辑,再保护与身份相关的细节:面部特征、肤色、发型、表情、体型、服装和姿势。如果不想让结果过度磨皮,请要求保留自然纹理。

如何阻止 Gemini 修改我的产品 Logo 或文字?

在原始图片描述中提及 Logo、标签或文字,并重复说明它们必须保持不变。对于重要的商业素材,发布前务必仔细检查结果,因为小号文字和标记可能仍需手动修正。

我应该在同一条提示词中同时要求风格和编辑吗?

可以,前提是这种风格简单且与源照片相容。要具体说明:“略带暖调的胶片对比度”比“让它更有艺术感”更容易控制。对于较大的风格变化,建议单独创建一个版本,这样你仍保有一张干净编辑过的原图。

为什么编辑后的图片看起来不真实?

所要求的改动可能与原始光线、透视关系或场景相冲突。让 Gemini 匹配现有的光线方向、阴影、相机角度、色温和景深,然后降低编辑强度。

结语

优秀的 Gemini 图片编辑提示词足够具体,但不会为了冗长而冗长。说明编辑内容,描述原始图片,并清楚限定哪些内容必须保持不变。先从一项改动开始,检查结果,再使用有针对性的后续提示词来完善前后对比图。

同系列更多内容:Gemini Notebook 示例图片编辑提示词,或访问提示词图库