Loading...
Loading...
Compare original and translation side by side
Author: EdrawMax AI Team(万兴图示 AI 团队)· Organization: Wondershare EdrawMax(万兴图示) Version: 2.0.0 · License: Proprietary © 2026 Wondershare EdrawMax(万兴图示). All rights reserved.
作者: EdrawMax AI 团队(万兴图示 AI 团队)· 组织: 万兴EdrawMax(万兴图示) 版本: 2.0.0 · 版权: 专有版权 © 2026 万兴EdrawMax(万兴图示)。保留所有权利。
| User Intent | Type | Endpoint |
|---|---|---|
| Process, workflow, steps, decision flow | flowchart | |
| Data visualization, statistics, comparison | infographic | |
| Project plan, timeline, schedule, phases | gantt | |
| Knowledge structure, brainstorm, topic tree | mindmap | |
| 用户意图 | 类型 | 接口地址(Endpoint) |
|---|---|---|
| 流程、工作流、步骤、决策流 | flowchart | |
| 数据可视化、统计、对比 | infographic | |
| 项目计划、时间线、进度安排、阶段 | gantt | |
| 知识结构、头脑风暴、主题树 | mindmap | |
https://api.edrawmax.cn/api/aiPOST https://api.edrawmax.cn/api/ai/skills/generate-{type}
Content-Type: application/json
{"prompt": "<user description>", "lang": "cn", "platform": "web"}https://api.edrawmax.cn/api/aiPOST https://api.edrawmax.cn/api/ai/skills/generate-{type}
Content-Type: application/json
{"prompt": "<用户描述>", "lang": "cn", "platform": "web"}| 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 |
| 字段 | 类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| prompt | string | 是 | — | 图表的自然语言描述 |
| lang | string | 否 | "cn" | 语言:en, cn, jp, kr, es, fr, de, it, tw, pt, ru, id |
| platform | string | 否 | — | 平台:web, win, mac, ios, android, linux |
{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "mermaid_code": "..." } }{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "source_code": "..." } }Note: flowchart uses, the other three usemermaid_code.source_code
{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "mermaid_code": "..." } }{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "source_code": "..." } }注意:flowchart使用,其他三种使用mermaid_code。source_code
python <skill-path>/scripts/download_diagram.py --png-url "<png_url>" --svg-url "<svg_url>" [--output-dir "<dir>"]./edrawmax_output{"png_path": "./edrawmax_output/diagram_20260312_143000.png", "svg_path": "./edrawmax_output/diagram_20260312_143000.svg"}https://.aliyuncs.com.wondershare.com.edrawsoft.com.edrawmax.compython <skill-path>/scripts/download_diagram.py --png-url "<png_url>" --svg-url "<svg_url>" [--output-dir "<dir>"]./edrawmax_output{"png_path": "./edrawmax_output/diagram_20260312_143000.png", "svg_path": "./edrawmax_output/diagram_20260312_143000.svg"}.aliyuncs.com.wondershare.com.edrawsoft.com.edrawmax.comhttps://png_urlsvg_url[查看高清图](svg_url)mermaid_codesource_code
[查看高清图(SVG)](https://xxx.oss.com/.../main.svg)png_urlsvg_url[查看高清图](svg_url)mermaid_codesource_code
[查看高清图(SVG)](https://xxx.oss.com/.../main.svg)| 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 |
| 错误码 | 提示信息 | 操作 |
|---|---|---|
| 400 | prompt is required | 请用户提供图表描述 |
| 400 | lang不合法 | 将lang修正为有效值 |
| 2406 | risk control rejection | 内容被拒绝;请用户重新表述 |
| 3001 | concurrency limit | 稍等片刻后,重试一次 |
| 212200 | 生成失败 | 重试一次;如果仍然失败,告知用户 |
| 212201 | 渲染失败 | 重试一次;如果仍然失败,告知用户 |
| 500 | panic | 告知用户内部服务器错误 |
langencnjpkresfrdeittwptruidlangencnjpkresfrdeittwptruiduser_idX-User-IDuser_idX-User-ID