---
title: 基于用户饮食目标自动生成个性化膳食规划图文|万维易源ShowAPI
canonical_url: "https://www.showapi.com/ai/skills/smart-diet-plan-poster-generator"
last_updated: "2026-09-21T17:30:02.666Z"
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-08-21 16:36 · 6 个步骤

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

ID`6a87fdec3c51f20e380220bd`

### **能力组成**

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

### **输出案例**

-
-
-
-

### **内部编排**

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

1合规校验优化

2解析饮食意图

3生成膳食方案

4生成海报提示词

5启动海报生图任务

6轮询海报生图状态

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

```
{
  "workflow_id": "smart_diet_plan_poster_generator",
  "input": {
    "style": {
      "field_name": "style",
      "default": "莫兰迪扁平插画",
      "description": "构图风格：如写实摄影、手绘水彩、极简线条、3D渲染等",
      "example": "可爱贴纸风",
      "type": "string",
      "required": false
    },
    "user_prompt": {
      "field_name": "user_prompt",
      "default": "",
      "description": "用户规划提示词：包含饮食目标、周期、偏好、禁忌、热量要求等全部细节",
      "example": "减脂期7天食谱，不吃香菜，日均1500大卡，高蛋白低碳水",
      "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",
      "backend_type": "sys_api",
      "api_code": "prompt_guardian",
      "status": "PENDING",
      "name": "合规校验优化",
      "action": "run",
      "params": []
    },
    {
      "id": "step_1_parse_intent",
      "point_code": "1",
      "result": [],
      "backend_type": "prompt_api",
      "api_code": "diet_intent_parser",
      "status": "PENDING",
      "name": "解析饮食意图",
      "action": "run",
      "params": {
        "style": "{{@input.style}}",
        "user_prompt": "{{@input.user_prompt}}",
        "aspect_ratio": "{{@input.aspect_ratio}}"
      }
    },
    {
      "id": "step_2_generate_plan",
      "point_code": "1",
      "result": [],
      "api_code": "diet_plan_generator",
      "backend_type": "prompt_api",
      "status": "PENDING",
      "name": "生成膳食方案",
      "action": "run",
      "params": {
        "structured_intent": "{{@step_1_parse_intent.result.data.structured_intent}}"
      },
      "depends_on": [
        "step_1_parse_intent"
      ]
    },
    {
      "id": "step_3_generate_poster_prompt",
      "point_code": "1",
      "result": [],
      "api_code": "poster_prompt_generator",
      "backend_type": "prompt_api",
      "status": "PENDING",
      "name": "生成海报提示词",
      "action": "run",
      "params": {
        "visual_style": "{{@step_1_parse_intent.result.data.structured_intent.visual_style}}",
        "diet_plan_text": "{{@step_2_generate_plan.result.data.diet_plan_text}}",
        "aspect_ratio": "{{@step_1_parse_intent.result.data.structured_intent.aspect_ratio}}"
      },
      "depends_on": [
        "step_2_generate_plan"
      ]
    },
    {
      "id": "step_4_start_image_task",
      "point_code": "1",
      "result": [],
      "api_code": "3373",
      "backend_type": "sys_api",
      "status": "PENDING",
      "name": "启动海报生图任务",
      "action": "run",
      "params": {
        "prompt": "{{@step_3_generate_poster_prompt.result.data.result}}",
        "aspect_ratio": "{{@step_1_parse_intent.result.data.structured_intent.aspect_ratio}}"
      },
      "depends_on": [
        "step_3_generate_poster_prompt"
      ]
    },
    {
      "id": "step_5_poll_image_status",
      "point_code": "1",
      "result": [],
      "backend_type": "sys_api",
      "api_code": "polling",
      "status": "PENDING",
      "name": "轮询海报生图状态",
      "action": "run",
      "params": {
        "result_url": "{{@step_4_start_image_task.result.data.result_url}}"
      },
      "depends_on": [
        "step_4_start_image_task"
      ],
      "polling": {
        "interval_seconds": 5,
        "timeout_seconds": 1200,
        "success_condition": "{{@step_5_poll_image_status.result.data.task_status}} === 'SUCCEEDED'"
      }
    }
  ],
  "output": {
    "structured_intent": {
      "field_name": "structured_intent",
      "description": "解析后的结构化饮食意图",
      "value": "{{@step_1_parse_intent.result.data.structured_intent}}",
      "type": "object"
    },
    "diet_plan_poster_url": {
      "field_name": "diet_plan_poster_url",
      "description": "生成的饮食规划海报图片URL",
      "value": "{{@step_5_poll_image_status.result.data.result_url}}",
      "type": "string"
    },
    "diet_plan_text": {
      "field_name": "diet_plan_text",
      "description": "生成的详细膳食方案文本",
      "value": "{{@step_2_generate_plan.result.data.diet_plan_text}}",
      "type": "string"
    }
  }
}
```

介绍

在线运行

Skill与API