创建时间: 2026-06-22 13:12 | 步骤: 5 个
标准化商业海报生成工作流,依托用户上传基底参考图与设计需求,经过意图校验、提示词优化、高清生图与视觉质检,输出符合电商、品牌宣传、新媒体投放标准的高清商用海报,支持单图/双格/四宫格排版
{
"workflow_id": "commercial_poster_generation",
"input": {
"grid_num": {
"field_name": "grid_num",
"default": 1,
"description": "画面宫格排版枚举,仅支持固定值:1=单幅,2=双格2宫格,4=四格2×2四宫格;非法值自动降级为1",
"example": "1",
"type": "integer",
"required": true
},
"prompt": {
"field_name": "prompt",
"default": "",
"description": "海报用途、视觉风格、投放场景、主辅配色、版式布局、整体氛围、材质肌理、光影质感、文字排版要求等完整设计需求",
"example": "新品宣传海报,ins极简奶油风,低饱和暖米色配色,柔和漫射柔光,充足留白,适配小红书竖版投放",
"type": "string",
"required": true
},
"reference_image": {
"field_name": "reference_image",
"default": "",
"description": "海报核心基底参考图URL,支持人像、实物产品、风景、品牌LOGO",
"example": "https://oss.showapi.com/doc/4888/2/8d6cc45a3227_1779938008066.jpg?x-oss-process=image/resize,p_100",
"type": "base64",
"required": true
},
"aspect_ratio": {
"field_name": "aspect_ratio",
"default": "3:4",
"description": "成品图像宽高比例,可选枚举:1:1、3:4、4:3、16:9、9:16;未传入默认使用3:4",
"example": "1:1",
"type": "string",
"required": false
}
},
"steps": [
{
"id": "step_1_intent_validator",
"point_code": "",
"result": [],
"api_code": "poster_intent_validator",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "意图校验与参数解析",
"action": "run",
"params": {
"grid_num": "{{@input.grid_num}}",
"prompt": "{{@input.prompt}}",
"reference_image": "{{@input.reference_image}}",
"aspect_ratio": "{{@input.aspect_ratio}}"
}
},
{
"id": "step_2_prompt_optimizer",
"point_code": "",
"result": [],
"api_code": "poster_prompt_optimizer",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "提示词专业优化",
"action": "run",
"params": {
"design_constraints": "{{@step_1_intent_validator.result.data.design_constraints}}",
"validated_params": "{{@step_1_intent_validator.result.data.validated_params}}",
"structured_intent": "{{@step_1_intent_validator.result.data.structured_intent}}"
},
"depends_on": [
"step_1_intent_validator"
]
},
{
"id": "step_3_generate_image",
"point_code": "1",
"result": [],
"api_code": "3373",
"backend_type": "sys_api",
"status": "PENDING",
"name": "启动高清海报生成",
"action": "run",
"params": {
"referImages": [
"{{@input.reference_image}}"
],
"negative_prompt": "{{@step_2_prompt_optimizer.result.data.negative_prompt}}",
"prompt": "{{@step_2_prompt_optimizer.result.data.optimized_prompt}}",
"aspect_ratio": "{{@step_1_intent_validator.result.data.validated_params.aspect_ratio_applied}}"
},
"depends_on": [
"step_2_prompt_optimizer"
]
},
{
"id": "step_4_polling_image",
"point_code": "",
"result": [],
"api_code": "polling",
"backend_type": "sys_api",
"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": 120,
"success_condition": "{{@step_4_polling_image.result.data.task_status}} === 'SUCCEEDED'"
}
},
{
"id": "step_5_quality_inspector",
"point_code": "",
"result": [],
"api_code": "commercial_quality_inspector",
"backend_type": "prompt_api",
"status": "PENDING",
"name": "商业级视觉质检诊断",
"action": "run",
"params": {
"design_constraints": "{{@step_1_intent_validator.result.data.design_constraints}}",
"img_list": [
{
"url": "{{@step_4_polling_image.result.data.result_url}}"
}
],
"validated_params": "{{@step_1_intent_validator.result.data.validated_params}}",
"user_prompt": "对图中商用海报进行严格视觉质检:1.检查主体是否完整保留(无裁切/替换/扭曲/缺失);2.检查文字是否规整清晰(中文无畸形/颠倒/错乱,图文层级分明);3.检查画面纯净度(无畸变/模糊/噪点/水印/杂物/穿帮);4.检查排版合规性(是否为指定宫格排版,无缝拼接无白色分割线);5.检查画质是否满足8K超高清标准(色调/光影/画风统一,细节锐利);逐一对照硬性规则给出合规性评分与缺陷清单"
},
"depends_on": [
"step_4_polling_image"
]
}
],
"output": {
"defect_list": {
"field_name": "defect_list",
"description": "质检发现的缺陷清单(按严重程度排序)",
"value": "{{@step_5_quality_inspector.result.data.defect_list}}",
"type": "array"
},
"optimized_prompt": {
"field_name": "optimized_prompt",
"description": "专业优化后的正向生图提示词",
"value": "{{@step_2_prompt_optimizer.result.data.optimized_prompt}}",
"type": "string"
},
"poster_url": {
"field_name": "poster_url",
"description": "最终生成的商用海报图片URL",
"value": "{{@step_4_polling_image.result.data.result_url}}",
"type": "string"
},
"negative_prompt": {
"field_name": "negative_prompt",
"description": "专业反向提示词(排除裁切/畸形/水印/模糊等)",
"value": "{{@step_2_prompt_optimizer.result.data.negative_prompt}}",
"type": "string"
},
"validated_params": {
"field_name": "validated_params",
"description": "校验后参数集合(含宫格降级记录、实际应用比例)",
"value": "{{@step_1_intent_validator.result.data.validated_params}}",
"type": "object"
},
"structured_intent": {
"field_name": "structured_intent",
"description": "深度解析的设计意图结构(核心目标、视觉风格、配色、排版、光影等)",
"value": "{{@step_1_intent_validator.result.data.structured_intent}}",
"type": "object"
},
"quality_report": {
"field_name": "quality_report",
"description": "商业级视觉质检报告(综合评分、合规状态、各维度评分)",
"value": "{{@step_5_quality_inspector.result.data.quality_report}}",
"type": "object"
}
}
} 提交后立即返回 task_id,系统每 2 秒自动轮询一次运行状态并可视化执行步骤,适合耗时较长的 Skill。
grid_num必填integer画面宫格排版枚举,仅支持固定值:1=单幅,2=双格2宫格,4=四格2×2四宫格;非法值自动降级为1
prompt必填string海报用途、视觉风格、投放场景、主辅配色、版式布局、整体氛围、材质肌理、光影质感、文字排版要求等完整设计需求
reference_image必填base64海报核心基底参考图URL,支持人像、实物产品、风景、品牌LOGO
aspect_ratiostring成品图像宽高比例,可选枚举:1:1、3:4、4:3、16:9、9:16;未传入默认使用3:4
把这个 Skill 接入你的应用或 AI Agent —— 自带 REST API、OpenAPI 规范与 Agent 技能包。
下载技能包导入 AI Agent 客户端,即可作为技能使用
appKey={AppKey},与 API 文档一致。Agent 技能包接入教程 帮助文档
不知道如何接入?跟随图文步骤一步步完成配置
不同 Agent 客户端对技能包名称格式有不同要求,请选择你使用的客户端下载对应版本。
WorkBuddy
腾讯 Agent 客户端
DuMate
EN百度智能体 · 英文名称
阿里悟空
EN阿里 Agent · 英文名称
QoderWork CN
EN编程智能体 · 英文名称
QwenPaw
通义千问 Agent
Trae Work
字节跳动 Agent
有道 LobsterAI
网易有道智能体
智谱 AutoClaw
智谱 AI Agent
CodeX
ENCodex AI Agent
标注 EN 的客户端要求 Skill 英文命名,其余使用中文命名版本。

7*24小时服务
保证您的售后无忧

1v1专属服务
保证服务质量

担保交易
全程担保交易保证资金安全

服务全程监管
全周期保证商品服务质量
© 2015-2023 WWW.SHOWAPI.COM ALL RIGHTS RESERVED.昆明秀派科技有限公司
本网站所列接口及文档全部由SHOWAPI网站提供,并对其拥有最终解释权 POWERED BY SHOWAPI