---
title: 蛋糕草图效果图生成|万维易源ShowAPI
canonical_url: "https://www.showapi.com/ai/skills/cake-sketch-to-effect-image"
last_updated: "2026-09-21T17:00:01.412Z"
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"
---

*

*

*

*

# **蛋糕草图效果图生成**

面点师通过提示词和蛋糕草图生成蛋糕实际效果图。工作流包含草图视觉深度分析、提示词智能构建（根据用户意图动态调整还原约束）、图像生成及结果轮询四个核心阶段，确保草图设计特征忠实还原，仅在用户明确要求时适度丰富效果。

S**Serenoa** 2026-07-20 16:08 · 5 个步骤

约 ¥0.26/次调用，含模型推理价格

ID`6a5dd4263c51f27b2a04695a`

### **能力组成**

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

### **输出案例**

-
-
-

### **内部编排**

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

1合规校验优化

2蛋糕草图视觉深度分析

3蛋糕效果图生图提示词智能构建

4启动蛋糕效果图生成任务

5轮询蛋糕效果图生成状态

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

```
{
  "workflow_id": "cake_sketch_to_effect_image",
  "input": {
    "img": {
      "field_name": "img",
      "default": "",
      "description": "用户上传的蛋糕草图图片URL地址",
      "example": "http://showapi-pub-hangzhou.oss-cn-hangzhou.aliyuncs.com/huangye/img_bd33a790-352e-4b3b-87cc-274c01c58a9e.jpg",
      "type": "string",
      "required": true
    },
    "prompt": {
      "field_name": "prompt",
      "default": "",
      "description": "用户对蛋糕效果的描述提示词，若包含'丰富效果'或'美化'意图，系统将适度放松还原约束；否则默认严格忠实还原草图",
      "example": "丰富细节，使得蛋糕显得更加精美",
      "type": "string",
      "required": true
    },
    "aspect_ratio": {
      "field_name": "aspect_ratio",
      "default": "1:1",
      "description": "生成图像的宽高比例，可选值：1:1、3:4、4:3、16:9、9:16",
      "example": "1:1",
      "type": "string",
      "required": false
    }
  },
  "steps": [
    {
      "id": "step_0_prompt_guardian",
      "point_code": "1",
      "api_code": "prompt_guardian",
      "backend_type": "sys_api",
      "status": "PENDING",
      "name": "合规校验优化",
      "action": "run",
      "params": []
    },
    {
      "id": "step_1_sketch_analyzer",
      "point_code": "",
      "result": [],
      "backend_type": "prompt_api",
      "api_code": "cake_sketch_analyzer",
      "status": "PENDING",
      "name": "蛋糕草图视觉深度分析",
      "action": "run",
      "params": {
        "img_list": [
          {
            "url": "{{@input.img}}"
          }
        ],
        "user_prompt": "{{@input.prompt}}"
      }
    },
    {
      "id": "step_2_prompt_builder",
      "point_code": "",
      "result": [],
      "backend_type": "prompt_api",
      "api_code": "cake_prompt_builder",
      "status": "PENDING",
      "name": "蛋糕效果图生图提示词智能构建",
      "action": "run",
      "params": {
        "sketch_quality_level": "{{@step_1_sketch_analyzer.result.data.sketch_quality_level}}",
        "design_intent_summary": "{{@step_1_sketch_analyzer.result.data.design_intent_summary}}",
        "user_original_prompt": "{{@input.prompt}}",
        "sketch_structured_entities": "{{@step_1_sketch_analyzer.result.data.structured_analysis.entities}}",
        "sketch_analysis_result": "{{@step_1_sketch_analyzer.result.data.result}}"
      },
      "depends_on": [
        "step_1_sketch_analyzer"
      ]
    },
    {
      "id": "step_3_generate_image",
      "point_code": "1",
      "result": [],
      "backend_type": "sys_api",
      "api_code": "3373",
      "status": "PENDING",
      "name": "启动蛋糕效果图生成任务",
      "action": "run",
      "params": {
        "referImages": [
          "{{@input.img}}"
        ],
        "prompt": "{{@step_2_prompt_builder.result.data.final_prompt_for_3373}}",
        "aspect_ratio": "{{@input.aspect_ratio}}"
      },
      "depends_on": [
        "step_2_prompt_builder"
      ]
    },
    {
      "id": "step_4_poll_image_status",
      "point_code": "",
      "result": [],
      "backend_type": "sys_api",
      "api_code": "polling",
      "status": "PENDING",
      "name": "轮询蛋糕效果图生成状态",
      "action": "run",
      "params": {
        "result_url": "{{@step_3_generate_image.result.data.result_url}}"
      },
      "depends_on": [
        "step_3_generate_image"
      ],
      "polling": {
        "interval_seconds": 5,
        "timeout_seconds": 1200,
        "success_condition": "{{@step_4_poll_image_status.result.data.task_status}} === 'SUCCEEDED'"
      }
    }
  ],
  "output": {
    "sketch_quality_level": {
      "field_name": "sketch_quality_level",
      "description": "草图质量等级评估：high(细节清晰)、medium(轮廓清晰)、low(模糊粗糙)",
      "value": "{{@step_1_sketch_analyzer.result.data.sketch_quality_level}}",
      "type": "string"
    },
    "design_intent_summary": {
      "field_name": "design_intent_summary",
      "description": "基于草图与用户prompt推断的设计意图摘要",
      "value": "{{@step_1_sketch_analyzer.result.data.design_intent_summary}}",
      "type": "string"
    },
    "final_prompt": {
      "field_name": "final_prompt",
      "description": "构建的最终生图提示词完整内容",
      "value": "{{@step_2_prompt_builder.result.data.result}}",
      "type": "string"
    },
    "constraint_strategy": {
      "field_name": "constraint_strategy",
      "description": "提示词构建采用的约束策略：strict_restore(严禁过度美化)、moderate_restore(适度还原)、enriched(允许丰富效果)",
      "value": "{{@step_2_prompt_builder.result.data.constraint_strategy}}",
      "type": "string"
    },
    "result_image_url": {
      "field_name": "result_image_url",
      "description": "最终生成的蛋糕效果图URL",
      "value": "{{@step_4_poll_image_status.result.data.result_url}}",
      "type": "string"
    }
  }
}
```

介绍

在线运行

Skill与API