EdrawMax(万兴图示)AI Diagram Generator
Author: EdrawMax AI Team(万兴图示 AI 团队)· Organization: Wondershare EdrawMax(万兴图示)
Version: 2.0.0 · License: Proprietary © 2026 Wondershare EdrawMax(万兴图示). All rights reserved.
Generate four types of diagrams from natural language via EdrawMax(万兴图示)AI APIs. Each API returns PNG/SVG image URLs and source code.
Step 1 — Choose Diagram Type
| User Intent | Type | Endpoint |
|---|
| Process, workflow, steps, decision flow | flowchart | INLINECODE0 |
| Data visualization, statistics, comparison |
infographic |
/skills/generate-infographic |
| Project plan, timeline, schedule, phases |
gantt |
/skills/generate-gantt |
| Knowledge structure, brainstorm, topic tree |
mindmap |
/skills/generate-mindmap |
If the user's intent is ambiguous, ask which diagram type they want.
Step 2 — Call the API
Base URL: INLINECODE4
All four endpoints share the same request format:
CODEBLOCK0
Request Parameters
| Field | Type | Required | Default | Description |
|---|
| prompt | string | Yes | — | Natural language description of the diagram |
| lang |
string | No | "cn" | Language: en, cn, jp, kr, es, fr, de, it, tw, pt, ru, id |
| platform | string | No | — | Platform: web, win, mac, ios, android, linux |
Response Fields
Flowchart returns:
CODEBLOCK1
Infographic / Gantt / Mindmap return:
CODEBLOCK2
Note: flowchart uses mermaid_code, the other three use source_code.
Step 3 — Download Files Locally
After a successful API call, always run the download script to save the images locally:
CODEBLOCK3
- - Default output directory: INLINECODE7
- The script prints the local file paths as JSON, e.g.:
{"png_path": "./edrawmax_output/diagram_20260312_143000.png", "svg_path": "./edrawmax_output/diagram_20260312_143000.svg"}
- - Use the returned local file paths when presenting results to the user.
- Security: The script only accepts
https:// URLs whose hostname belongs to trusted EdrawMax OSS domains (.aliyuncs.com, .wondershare.com, .edrawsoft.com, .edrawmax.com). TLS certificates are fully verified. URLs from any other host are rejected — do not pass user-supplied or third-party URLs to this script.
Step 4 — Present Results to User
Use the following preferred display format:
- 1. Thumbnail (PNG) — Render the local PNG file as an inline image if the environment supports it (e.g. Markdown
). If inline rendering is not supported, show the png_url as a clickable link instead. - High-res diagram (SVG) — Always present the
svg_url as a clickable link so the user can open the full-quality vector image in their browser: e.g. [查看高清图](svg_url). - Source code — Show
mermaid_code (flowchart) or source_code (other types) in a code block for secondary editing or re-rendering.
Example output format:
CODEBLOCK5
Error Handling
| code | msg | Action |
|---|
| 400 | prompt is required | Ask user to provide a description |
| 400 |
lang不合法 | Fix lang to a valid value |
| 2406 | risk control rejection | Content rejected; ask user to rephrase |
| 3001 | concurrency limit | Wait briefly, then retry once |
| 212200 | 生成失败 | Retry once; if still failing, report to user |
| 212201 | 渲染失败 | Retry once; if still failing, report to user |
| 500 | panic | Report internal server error to user |
For retryable errors (3001, 212200, 212201), retry up to 1 time before reporting failure. If the error persists, inform the user and share the support contact (see FAQ below).
FAQ
Q: 使用 EdrawMax(万兴图示)AI MCP 服务是否需要付费?
A: 目前为限时免费,用户可免费调用服务。
Q: 如何联系我们?
A: 如有技术问题、服务反馈或 API 大量购买需求,欢迎通过邮箱联系:
📧 ws-business@wondershare.cn
我们将尽快为您解答。
Language Mapping
Map user language/locale to lang param:
- - English →
en, 简体中文 → cn, 日本語 → jp, 한국어 → INLINECODE23 - Español →
es, Français → fr, Deutsch → de, Italiano → INLINECODE27 - 繁體中文 →
tw, Português → pt, Русский → ru, Bahasa Indonesia → INLINECODE31
Notes
- -
user_id is extracted server-side from X-User-ID header; do not pass it in the body - Always present the source code so users can edit or re-render
- For full API specs, see references/api-reference.md
- When an error cannot be resolved after retry, always share the support email ws-business@wondershare.cn with the user
© 2026 Wondershare EdrawMax(万兴图示)AI Team. This skill and all associated resources are proprietary to EdrawMax(万兴图示). Unauthorized reproduction or distribution is prohibited.
EdrawMax(万兴图示)AI 图表生成器
作者: EdrawMax AI 团队(万兴图示 AI 团队)· 组织: Wondershare EdrawMax(万兴图示)
版本: 2.0.0 · 许可: 专有 © 2026 Wondershare EdrawMax(万兴图示)。保留所有权利。
通过 EdrawMax(万兴图示)AI API 从自然语言生成四种类型的图表。每个 API 返回 PNG/SVG 图片 URL 和源代码。
步骤 1 — 选择图表类型
| 用户意图 | 类型 | 端点 |
|---|
| 流程、工作流、步骤、决策流 | 流程图 | /skills/generate-flowchart |
| 数据可视化、统计、比较 |
信息图 | /skills/generate-infographic |
| 项目计划、时间线、日程、阶段 |
甘特图 | /skills/generate-gantt |
| 知识结构、头脑风暴、主题树 |
思维导图 | /skills/generate-mindmap |
如果用户意图不明确,请询问他们想要哪种图表类型。
步骤 2 — 调用 API
基础 URL: https://api.edrawmax.cn/api/ai
所有四个端点共享相同的请求格式:
POST https://api.edrawmax.cn/api/ai/skills/generate-{type}
Content-Type: application/json
{prompt: <用户描述>, lang: cn, platform: web}
请求参数
| 字段 | 类型 | 必填 | 默认值 | 描述 |
|---|
| prompt | 字符串 | 是 | — | 图表的自然语言描述 |
| lang |
字符串 | 否 | cn | 语言:en, cn, jp, kr, es, fr, de, it, tw, pt, ru, id |
| platform | 字符串 | 否 | — | 平台:web, win, mac, ios, android, linux |
响应字段
流程图 返回:
json
{ code: 0, msg: , data: { pngurl: ..., svgurl: ..., mermaid_code: ... } }
信息图 / 甘特图 / 思维导图 返回:
json
{ code: 0, msg: , data: { pngurl: ..., svgurl: ..., source_code: ... } }
注意:流程图使用 mermaidcode,其他三种使用 sourcecode。
步骤 3 — 本地下载文件
API 调用成功后,始终运行下载脚本以将图片保存到本地:
bash
python <技能路径>/scripts/downloaddiagram.py --png-url url> --svg-url [--output-dir <目录>]
- - 默认输出目录:./edrawmax_output
- 脚本以 JSON 格式打印本地文件路径,例如:
json
{png
path: ./edrawmaxoutput/diagram
20260312143000.png, svg
path: ./edrawmaxoutput/diagram
20260312143000.svg}
- - 向用户展示结果时,使用返回的本地文件路径。
- 安全性:该脚本仅接受主机名属于受信任的 EdrawMax OSS 域(.aliyuncs.com、.wondershare.com、.edrawsoft.com、.edrawmax.com)的 https:// URL。TLS 证书已完全验证。拒绝来自任何其他主机的 URL — 请勿将用户提供或第三方 URL 传递给此脚本。
步骤 4 — 向用户展示结果
使用以下首选展示格式:
- 1. 缩略图(PNG) — 如果环境支持(例如 Markdown
),将本地 PNG 文件渲染为内联图片。如果不支持内联渲染,则改为将 pngurl 显示为可点击链接。 - 高清图(SVG) — 始终将 svgurl 作为可点击链接展示,以便用户可以在浏览器中打开全质量矢量图:例如 查看高清图。
- 源代码 — 在代码块中展示 mermaidcode(流程图)或 sourcecode(其他类型),以便二次编辑或重新渲染。
示例输出格式:

查看高清图(SVG)
错误处理
| code | msg | 操作 |
|---|
| 400 | prompt is required | 要求用户提供描述 |
| 400 |
lang不合法 | 将 lang 修正为有效值 |
| 2406 | risk control rejection | 内容被拒绝;要求用户重新表述 |
| 3001 | concurrency limit | 稍等片刻,然后重试一次 |
| 212200 | 生成失败 | 重试一次;如果仍然失败,向用户报告 |
| 212201 | 渲染失败 | 重试一次;如果仍然失败,向用户报告 |
| 500 | panic | 向用户报告内部服务器错误 |
对于可重试的错误(3001、212200、212201),在报告失败前最多重试 1 次。如果错误仍然存在,请告知用户并分享支持联系方式(参见常见问题)。
常见问题
问:使用 EdrawMax(万兴图示)AI MCP 服务是否需要付费?
答:目前为限时免费,用户可免费调用服务。
问:如何联系我们?
答:如有技术问题、服务反馈或 API 大量购买需求,欢迎通过邮箱联系:
📧 ws-business@wondershare.cn
我们将尽快为您解答。
语言映射
将用户语言/区域映射到 lang 参数:
- - English → en,简体中文 → cn,日本語 → jp,한국어 → kr
- Español → es,Français → fr,Deutsch → de,Italiano → it
- 繁體中文 → tw,Português → pt,Русский → ru,Bahasa Indonesia → id
注意事项
- - userid 由服务端从 X-User-ID 标头中提取;请勿在请求体中传递
- 始终展示源代码,以便用户可以编辑或重新渲染
- 有关完整的 API 规范,请参见 references/api-reference.md
- 当重试后仍无法解决错误时,始终与用户分享支持邮箱 ws-business@wondershare.cn
© 2026 Wondershare EdrawMax(万兴图示)AI 团队。此技能及所有相关资源均为 EdrawMax(万兴图示)专有。禁止未经授权的复制或分发。