---
title: 中药大全-基于图片识别生成科普图文|万维易源ShowAPI
canonical_url: "https://www.showapi.com/ai/skills/herb-encyclopedia-image-generator"
last_updated: "2026-09-21T17:15:00.841Z"
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-28 14:52 · 5 个步骤

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

ID`6a912a243c51f24167024990`

### **能力组成**

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

### **输出案例**

-
-
-
-

### **内部编排**

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

1合规校验优化

2中药材视觉识别

3组装生图提示词

4执行生图任务

5轮询生图结果

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

```
{
  "workflow_id": "herb_encyclopedia_image_generator",
  "input": {
    "photo_image": {
      "field_name": "photo_image",
      "default": "",
      "description": "中药材图片，支持传入标准 Base64 编码字符串或普通 URL",
      "example": "https://oss.showapi.com/doc/4888/168/5961598fb64d_1787900535476.jpg?x-oss-process=image/resize,p_100",
      "type": "base64",
      "required": true
    },
    "prompt": {
      "field_name": "prompt",
      "default": "莫兰迪扁平插画",
      "description": "提示词，可以填写猜测的中药，也可以填入构图视觉风格（可选：莫兰迪扁平插画、清新水彩手绘、商务极简线框、复古粉笔板书）。未传或未识别到时默认使用「莫兰迪扁平插画」",
      "example": "莫兰迪扁平插画",
      "type": "string",
      "required": false
    },
    "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": []
    },
    {
      "point_code": "1",
      "id": "step_1_herb_visual_analyzer",
      "result": [],
      "api_code": "herb_visual_analyzer",
      "backend_type": "prompt_api",
      "status": "PENDING",
      "name": "中药材视觉识别",
      "action": "run",
      "params": {
        "img_list": [
          {
            "url": "{{@input.photo_image}}"
          }
        ],
        "user_prompt": "识别出上传图片的主体最有可能的中药植物，并提取其名称和外观特征。"
      }
    },
    {
      "point_code": "1",
      "id": "step_2_image_prompt_generator",
      "result": [],
      "backend_type": "prompt_api",
      "api_code": "image_prompt_generator",
      "status": "PENDING",
      "name": "组装生图提示词",
      "action": "run",
      "params": {
        "herb_name": "{{@step_1_herb_visual_analyzer.result.data.result}}",
        "user_style": "{{@input.prompt}}"
      },
      "depends_on": [
        "step_1_herb_visual_analyzer"
      ]
    },
    {
      "point_code": "1",
      "id": "step_3_generate_image",
      "result": [],
      "backend_type": "sys_api",
      "api_code": "3373",
      "status": "PENDING",
      "name": "执行生图任务",
      "action": "run",
      "params": {
        "prompt": "{{@step_2_image_prompt_generator.result.data.result}}",
        "aspect_ratio": "{{@input.aspect_ratio}}"
      },
      "depends_on": [
        "step_2_image_prompt_generator"
      ]
    },
    {
      "id": "step_4_poll_image_status",
      "point_code": "1",
      "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": {
    "generated_image_url": {
      "field_name": "generated_image_url",
      "description": "生成的中药科普图URL",
      "value": "{{@step_4_poll_image_status.result.data.result_url}}",
      "type": "string"
    },
    "final_prompt": {
      "field_name": "final_prompt",
      "description": "融合后的最终生图提示词",
      "value": "{{@step_2_image_prompt_generator.result.data.result}}",
      "type": "string"
    }
  }
}
```

介绍

在线运行

Skill与API