---
title: 接收「老图」与「新图」生成图片新旧对比图|万维易源ShowAPI
canonical_url: "https://www.showapi.com/ai/skills/image-comparison-generator"
last_updated: "2026-09-21T17:20:01.396Z"
meta:
  description: "基于用户上传的两张图片，分别作为「老图」与「新图」，老图固定放置左侧，新图固定放置右侧，合成为一张统一的对比图，不添加任何文字水印。 免费在线使用，也支持 API / Agent 接入。"
  keywords: "接收「老图」与「新图」生成图片新旧对比图, AI Skill, 万维易源, showapi, 大模型, ai技能, AI工具, 异步任务, Agent技能包, api接口, 在线使用, api接口, api接口大全, 免费api, 免费数据接口, 数据接口, api开放平台, 万维易源, showapi, 大模型, AI Skills"
  "og:description": "基于用户上传的两张图片，分别作为「老图」与「新图」，老图固定放置左侧，新图固定放置右侧，合成为一张统一的对比图，不添加任何文字水印。 免费在线使用，也支持 API / Agent 接入。"
  "og:title": "接收「老图」与「新图」生成图片新旧对比图 AI Skill|万维易源ShowAPI"
---

# **接收「老图」与「新图」生成图片新旧对比图**

基于用户上传的两张图片，分别作为「老图」与「新图」，老图固定放置左侧，新图固定放置右侧，合成为一张统一的对比图，不添加任何文字水印。

M**Marwen** 2026-09-11 13:38 · 4 个步骤

约 ¥0.22/次调用，实际计费按输出内容消耗token多少有所浮动

ID`6aa3736a3c51f23f0c00b62a`

### **能力组成**

**立即试一试** 在线体验此 Skill，输入参数即可看到实时效果

### **输出案例**

-
-
-
-

### **内部编排**

共 4 步 · AI 自动编排的执行流程与原始定义 收起

1合规校验优化

2构建新老图片对比生图指令

3提交对比图生成任务(默认引擎)

4轮询对比图生成状态

**完整定义 (JSON)**110 行

```
{
  "workflow_id": "image_comparison_generator",
  "input": {
    "new_image": {
      "field_name": "new_image",
      "default": "",
      "description": "用户上传的第二张图片URL或Base64编码，固定作为「新图」并放置右侧",
      "example": "https://oss.showapi.com/doc/4888/185/79a28f356540_1789098149902.jpg?x-oss-process=image/resize,p_100",
      "type": "base64",
      "required": true
    },
    "old_image": {
      "field_name": "old_image",
      "default": "",
      "description": "用户上传的第一张图片URL或Base64编码，固定作为「老图」并放置左侧",
      "example": "https://oss.showapi.com/doc/4888/185/326adac2a269_1789097894877.jpg?x-oss-process=image/resize,p_100",
      "type": "base64",
      "required": true
    },
    "aspect_ratio": {
      "field_name": "aspect_ratio",
      "default": "1:1",
      "description": "图片比例：1:1、3:4、4:3、16:9、9:16；默认为 1:1",
      "example": "1:1",
      "type": "string",
      "required": false
    }
  },
  "steps": [
    {
      "id": "step_0_prompt_guardian",
      "point_code": "1",
      "backend_type": "sys_api",
      "api_code": "prompt_guardian",
      "status": "PENDING",
      "name": "合规校验优化",
      "action": "run",
      "params": []
    },
    {
      "point_code": "1",
      "id": "step_1_build_prompt",
      "result": [],
      "api_code": "image_comparison_prompt_builder",
      "backend_type": "prompt_api",
      "status": "PENDING",
      "name": "构建新老图片对比生图指令",
      "action": "run",
      "params": {
        "merge_context": {
          "upstream_content": "将图片合并，然后 生成 老图 | 新图 的对比图 ，不要有文字\n【内容规则】\n  1、要先分辨新图、老图\n  2、老图固定放置左侧，新图固定放置右侧；\n  3、使用固定线条分割\n禁止出现文字、标题、标签、编号、水印、额外人物及额外道具。",
          "fusion_strategy": "固定构图与位置约束融合"
        },
        "new_image": "{{@input.new_image}}",
        "old_image": "{{@input.old_image}}",
        "aspect_ratio": "{{@input.aspect_ratio}}"
      }
    },
    {
      "point_code": "1",
      "id": "step_2_submit_image_task",
      "result": [],
      "api_code": "3373",
      "backend_type": "sys_api",
      "status": "PENDING",
      "name": "提交对比图生成任务(默认引擎)",
      "action": "run",
      "params": {
        "referImages": [
          "{{@input.old_image}}",
          "{{@input.new_image}}"
        ],
        "prompt": "{{@step_1_build_prompt.result.data.result}}",
        "aspect_ratio": "{{@input.aspect_ratio}}"
      },
      "depends_on": [
        "step_1_build_prompt"
      ]
    },
    {
      "point_code": "",
      "id": "step_3_poll_image_status",
      "result": [],
      "api_code": "polling",
      "backend_type": "sys_api",
      "status": "PENDING",
      "name": "轮询对比图生成状态",
      "action": "run",
      "params": {
        "result_url": "{{@step_2_submit_image_task.result.data.result_url}}"
      },
      "depends_on": [
        "step_2_submit_image_task"
      ],
      "polling": {
        "interval_seconds": 5,
        "timeout_seconds": 1200,
        "success_condition": "{{@step_3_poll_image_status.result.data.task_status}} === 'SUCCEEDED'"
      }
    }
  ],
  "output": {
    "comparison_image_url": {
      "field_name": "comparison_image_url",
      "description": "生成的对比图URL",
      "value": "{{@step_3_poll_image_status.result.data.result_url}}",
      "type": "string"
    }
  }
}
```

介绍

在线运行

Skill与API