# GPT Image Hub prompt

## 结构化换脸任务定义
- URL: https://www.gptimagehub.com/zh-CN/library/structured-face-swap-task-definition
- Generator URL: https://www.gptimagehub.com/zh-CN/generate?promptId=oss-ym-mm-10551
- Markdown URL: https://www.gptimagehub.com/api/agent/markdown?path=%2Fzh-CN%2Flibrary%2Fstructured-face-swap-task-definition
- Category: 人像与摄影
- Model: nanobananapro
- Aspect ratio: 1:1
- Style: photorealistic
- Tags: 换脸, json提示词, 照片编辑, 人像, 写实, 工作流
- Updated: 2026-10-27T07:07:58.098Z
- Created: 2026-10-27T07:07:58.098Z

用于在两张参考照片之间进行高保真无缝换脸的结构化 JSON 提示词。可调整图像标记或属性参数以适配工作流。

### Full prompt
```text
{
  "task": "face_swap",
  "instructions": {
    "primary_goal": "将源参考图 [image1] 的面部无缝且逼真地融合到目标参考图 [image2] 的人物主体上",
    "source_mapping": {
      "face_source": "[image1]",
      "face_target": "[image2]",
      "preserve_source_identity": true
    },
    "identity": {
      "match_skin_tone": true,
      "match_facial_expression": true,
      "maintain_face_structure": true
    },
    "blending": {
      "seamless_edges": true,
      "match_lighting": true,
      "match_color_grading": true,
      "preserve_shadows_and_highlights": true,
      "no_visible_artifacts": true
    },
    "background": {
      "preserve_original_background": true,
      "preserve_environment_details": true,
      "no_changes_to_objects": true,
      "no_blur_or_distortion": true
    },
    "composition": {
      "keep_original_pose": true,
      "keep_camera_angle": true,
      "keep_framing": true,
      "maintain_depth_of_field": true
    },
    "quality": {
      "photorealistic": true,
      "high_resolution": true,
      "natural_skin_texture": true
    }
  }
}
```