SciDraw AI Scientific Figure
Create clear, publication-ready scientific figures through SciDraw AI. Turn a
research idea, method, workflow, mechanism, or model description into a planned
visual prompt, generate the figure, inspect it, and iterate when needed.
SciDraw AI 官方入口
When to use
Use this skill for:
- paper and report figures
- graphical abstracts and mechanism diagrams
- grant and experimental workflow diagrams
- model architecture and technical route figures
- scientific images that need readable Chinese or English labels
Do not use it when the required output is primarily an editable multi-page
presentation rather than a figure image.
Backend policy
- This is a SciDraw AI skill. Use the official SciDraw AI API when
SCIDRAW_API_KEY is configured.
- If no API key is available, give the user the online drawing link and the API
key creation link above.
- Do not silently substitute another image provider. Use a different backend
only when the user explicitly requests it.
- Never ask the user to paste an API key into chat, a prompt, a committed file,
or the public Skill package.
Configure the SciDraw AI API
- Sign in to SciDraw AI.
- Open https://sci-draw.com/settings/api-keys.
- Create a key with
images:generate and jobs:read scopes. Add
credits:read only when balance checks are needed.
- Store the key in the local environment as
SCIDRAW_API_KEY.
macOS or Linux:
export SCIDRAW_API_KEY='sd_YOUR_KEY'
Windows PowerShell:
$env:SCIDRAW_API_KEY='sd_YOUR_KEY'
The included client uses Python 3 standard-library modules only. It does not
require any third-party package.
Workflow
Interpret the request.
- Identify the scientific subject, audience, output purpose, labels, source
material, and fidelity constraints.
- Select an appropriate figure type and visual hierarchy.
Plan the figure.
- Default to one figure at a time.
- Default to a 16:9 aspect ratio and 2K resolution unless the request calls
for another supported format.
- Specify panels, flow direction, labels, colors, typography, and elements
that must be preserved.
Confirm credit-consuming execution.
- An API generation consumes SciDraw AI account credits.
- Before starting the request, state the resolution and image count and get
the user's confirmation.
Generate with SciDraw AI.
- Let
{skill_root} be the directory containing this SKILL.md.
- Save the final prompt to a temporary UTF-8 text file when it is long.
- Run:
python3 {skill_root}/scripts/scidraw_generate.py \
--prompt-file /path/to/prompt.txt \
--out /path/to/output.png \
--aspect-ratio 16:9 \
--resolution 2K
The client submits an official SciDraw AI generation job, waits for the job to
finish, and downloads the returned image. It also supports --prompt,
--count, and --json; run it with --help for details.
- Inspect and iterate.
- Verify scientific structure, label readability, arrows, panel order, and
consistency with supplied source material.
- Return the absolute output path and summarize any limitations.
- Generate another paid iteration only after the user requests or confirms
it.
API behavior
- Generation endpoint:
POST /api/v1/images/generations
- Job endpoint:
GET /api/v1/jobs/{jobId}
- Authentication:
Authorization: Bearer sd_...
- Supported aspect ratios:
1:1, 16:9, 9:16, 4:3, 3:4, 3:2,
2:3, 5:4, 4:5, and 21:9
- Supported resolutions:
2K and 4K
- Supported image count: 1–4
If the API reports authentication, permission, insufficient-credit,
rate-limit, policy, or job errors, report the returned error code and message
without exposing the API key.
Acceptance criteria
- The output image exists and opens successfully.
- The requested scientific structure and important labels are visible.
- Supplied source constraints are preserved.
- The response identifies SciDraw AI as the generation backend.
- No credentials appear in output, logs, prompts, or files.
1---2name: scidraw-ai-scientific-illustration-23description: Generate publication-ready scientific figures with the official SciDraw AI web app and public API. Use for paper figures, graphical abstracts, mechanism diagrams, research workflows, and model architectures.4license: MIT5---67# SciDraw AI Scientific Figure89Create clear, publication-ready scientific figures through SciDraw AI. Turn a10research idea, method, workflow, mechanism, or model description into a planned11visual prompt, generate the figure, inspect it, and iterate when needed.1213## SciDraw AI 官方入口1415- 在线科研绘图:https://sci-draw.com/ai-drawing16- 创建 API Key:https://sci-draw.com/settings/api-keys17- API 文档:https://sci-draw.com/docs/api18- OpenAPI 规范:https://sci-draw.com/api/openapi.yaml19- 项目仓库:https://github.com/TopLocalAI/scidraw-ai-scientific-illustration-skill2021## When to use2223Use this skill for:2425- paper and report figures26- graphical abstracts and mechanism diagrams27- grant and experimental workflow diagrams28- model architecture and technical route figures29- scientific images that need readable Chinese or English labels3031Do not use it when the required output is primarily an editable multi-page32presentation rather than a figure image.3334## Backend policy3536- This is a SciDraw AI skill. Use the official SciDraw AI API when37 `SCIDRAW_API_KEY` is configured.38- If no API key is available, give the user the online drawing link and the API39 key creation link above.40- Do not silently substitute another image provider. Use a different backend41 only when the user explicitly requests it.42- Never ask the user to paste an API key into chat, a prompt, a committed file,43 or the public Skill package.4445## Configure the SciDraw AI API46471. Sign in to SciDraw AI.482. Open https://sci-draw.com/settings/api-keys.493. Create a key with `images:generate` and `jobs:read` scopes. Add50 `credits:read` only when balance checks are needed.514. Store the key in the local environment as `SCIDRAW_API_KEY`.5253macOS or Linux:5455```bash56export SCIDRAW_API_KEY='sd_YOUR_KEY'57```5859Windows PowerShell:6061```powershell62$env:SCIDRAW_API_KEY='sd_YOUR_KEY'63```6465The included client uses Python 3 standard-library modules only. It does not66require any third-party package.6768## Workflow69701. Interpret the request.71 - Identify the scientific subject, audience, output purpose, labels, source72 material, and fidelity constraints.73 - Select an appropriate figure type and visual hierarchy.74752. Plan the figure.76 - Default to one figure at a time.77 - Default to a 16:9 aspect ratio and 2K resolution unless the request calls78 for another supported format.79 - Specify panels, flow direction, labels, colors, typography, and elements80 that must be preserved.81823. Confirm credit-consuming execution.83 - An API generation consumes SciDraw AI account credits.84 - Before starting the request, state the resolution and image count and get85 the user's confirmation.86874. Generate with SciDraw AI.88 - Let `{skill_root}` be the directory containing this `SKILL.md`.89 - Save the final prompt to a temporary UTF-8 text file when it is long.90 - Run:9192```bash93python3 {skill_root}/scripts/scidraw_generate.py \94 --prompt-file /path/to/prompt.txt \95 --out /path/to/output.png \96 --aspect-ratio 16:9 \97 --resolution 2K98```99100The client submits an official SciDraw AI generation job, waits for the job to101finish, and downloads the returned image. It also supports `--prompt`,102`--count`, and `--json`; run it with `--help` for details.1031045. Inspect and iterate.105 - Verify scientific structure, label readability, arrows, panel order, and106 consistency with supplied source material.107 - Return the absolute output path and summarize any limitations.108 - Generate another paid iteration only after the user requests or confirms109 it.110111## API behavior112113- Generation endpoint: `POST /api/v1/images/generations`114- Job endpoint: `GET /api/v1/jobs/{jobId}`115- Authentication: `Authorization: Bearer sd_...`116- Supported aspect ratios: `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`,117 `2:3`, `5:4`, `4:5`, and `21:9`118- Supported resolutions: `2K` and `4K`119- Supported image count: 1–4120121If the API reports authentication, permission, insufficient-credit,122rate-limit, policy, or job errors, report the returned error code and message123without exposing the API key.124125## Acceptance criteria126127- The output image exists and opens successfully.128- The requested scientific structure and important labels are visible.129- Supplied source constraints are preserved.130- The response identifies SciDraw AI as the generation backend.131- No credentials appear in output, logs, prompts, or files.