Image Edit logo

Image Edit

Organization
meitu
image-edit

兼容已有 `image-edit` 名称和直接 CLI 调用的图片编辑 Skill。新的底图编辑、重绘、融合或衍生请求优先由 image-to-image 路由;用户明确指定 image-edit 时仍使用本 Skill。会读取 Meitu 凭证、调用本地 `meitu` CLI,并将输入图片与提示词发送到 Meitu OpenAPI,结果写入本地输出目录。

Overview

Publishermeitu
Repositorymeitu-skills
Skill nameimage-edit
Stars
36
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by meitu on GitHub. Read the source before you install it.

Installation

Install the Image Edit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/meitu/meitu-skills/tree/main/skills/image-edit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/meitu/meitu-skills.git /tmp/meitu-skills
mkdir -p .claude/skills
cp -r /tmp/meitu-skills/skills/image-edit .claude/skills/image-edit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image Edit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Image Edit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Image Edit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

图生图(image-edit)

Overview

对已有图片施加内容编辑或基于参考图创作全新图片(必须有底图)。覆盖 5 类场景:电商产品出图(白底/场景/多角度/带文字)、人像编辑(人脸/妆容/发型/姿态)、多图与一致性编辑、通用编辑(替换/添加/构图)、参考图创作(创意视觉稿/名片/封面)。涉及文字添加/替换时目标文字内容保持原样不翻译;"IP"指角色图案而非文字。

执行前应让用户清楚知道:本 Skill 会读取本地 Meitu 凭证、调用 meitu image-edit,并把输入图片、提示词及生成结果发送到/写回外部服务与本地输出目录。

API Mapping

  • 人像编辑:image_gummy_edit_v45
  • 多图/一致性/通用/电商/参考图创作(主):image_praline_edit_v2
  • 通用编辑(降级):image_praline_edit_2
  • 工具内兜底:image_mint_edit
  • Nougat 高质量(外部显式指定):image_nougat_edit(路由不识别;image_list 最多 10 张;不支持 output_format;size 内部常量 2K;quality 由 API 内部默认 Medium 不对外暴露)

model 映射:auto(默认按路由)/gummy_pro→gummy/praline_pro→v2/praline_lite→2/mint_edit→mint/nougat→nougat_edit(外部显式指定触发)

Dependencies

  • meitu-cli: >=2.0.6(npm install -g meitu-cli@latest)
  • 凭证:CONFIG AKSK → meitu tools update;EXEC AKSK → 实际执行(见根 CONFIG.md)
  • 环境变量:MEITU_OPENAPI_TOOL_TASK_MODE=command

路径别名:$VISUAL = {OPENCLAW_HOME}/workspace/visual/

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --version ≥ 2.0.6(否则 npm install -g meitu-cli@latest)
  2. 确认已跑过 meitu tools update(用 CONFIG AKSK)
  3. 当前 AKSK = EXEC,且 MEITU_OPENAPI_TOOL_TASK_MODE=command
  4. 解析 output_dir:openclaw.yaml → ./output/ |else → $VISUAL/output/image-edit/;mkdir -p

Execute

触发信号 / 路由规则

核心判断维度:电商产品出图 → 前置判断(参考图创作 / 多图)→ 单图场景分类。

决策顺序: 0. 前置 0 — 电商产品出图:产品图 + 电商意图(白底/主图/场景/多角度/促销文字) → image_praline_edit_v2

  1. 前置 A — 参考图创作:有参考图 + 生成全新图意图 → image_praline_edit_v2
  2. 前置 B — 多图输入:image_list ≥ 2 张 → image_praline_edit_v2(强制使用 image_list)
  3. 单图场景(优先级:人像 > 一致性 > 通用):
    • 人像(人脸/表情/妆容/发型/肤色/姿态/五官) → image_gummy_edit_v45
    • 一致性(商品微调/保持主体/已有图片文字替换) → image_praline_edit_v2
    • 通用(替换/添加/构图) → image_praline_edit_v2

参数定义

通用参数(所有 API 共用):

参数类型必填说明
image_listARRAY[STRING]是图片地址列表,所有 API 统一使用。缺失 → 提示"请提供图片"
promptSTRING是编辑描述。文字添加/替换场景目标文字保持用户原文不翻译;"IP"指图案/角色而非文字

image_praline_edit_v2 额外参数:

参数类型必填范围默认值说明
ratioSTRING否auto/1:1/2:3/3:2/3:4/4:3/4:5/5:4/9:16/16:9/21:9auto特殊比例需在 prompt 结尾写 Aspect ratio x:y
sizeSTRING否1K/2K/4K--输出分辨率
output_formatSTRING否jpeg/png/webpjpeg输出格式

model 参数(可显式指定绕过 auto 路由):gummy_pro(人像)/praline_pro(通用)/praline_lite(降级)/mint_edit(兜底)/nougat(高质量,外部显式指定触发,路由不识别)。

工具调用

bash
meitu image-edit \
  --skill_name skill_image-edit \
  --image_list <url1,url2> \
  --prompt "<edit_description>" \
  --json \
  --download-dir {output_dir}

可选:--ratio 1:1 --size 2K --output_format png --model praline_pro

错误降级

场景处理方式
image_gummy_edit_v45 失败重试 1 次 → 降级 image_praline_edit_v2,后续按 v2→2→mint
image_praline_edit_v2 失败重试 1 次 → 降级 image_praline_edit_2(多图取 image_list[0])
image_praline_edit_2 失败重试 1 次 → 降级 image_mint_edit
image_mint_edit 失败返回错误
内容合规拦截返回合规提示,不重试、不降级
多图 + 人像意图强制走 v2(gummy 仅支持单图),建议拆分单张处理
prompt 含目标文字文字内容保持原样、不翻译
prompt 含"IP"保留"图案/角色"语义,不得转为"文字"

Deliver

  • 直接使用 Preflight 解析的 output_dir
  • 从 downloaded_files[0].saved_path 读取已下载文件路径
  • mv {downloaded_files[0].saved_path} {output_dir}/{YYYY-MM-DD}_{descriptive}_image-edit.{jpeg|png|webp}

Output

  • 格式:JPEG(默认)/PNG/WebP(由 output_format 决定)
  • 命名:{YYYY-MM-DD}_{descriptive}_image-edit.jpg
  • 位置:项目 → ./output/,一次性 → $VISUAL/output/image-edit/

基线 Task ID

见 references/task-id-baseline.md 中对应行。

Frequently asked questions

What does the Image Edit AI skill do?

兼容已有 `image-edit` 名称和直接 CLI 调用的图片编辑 Skill。新的底图编辑、重绘、融合或衍生请求优先由 image-to-image 路由;用户明确指定 image-edit 时仍使用本 Skill。会读取 Meitu 凭证、调用本地 `meitu` CLI,并将输入图片与提示词发送到 Meitu OpenAPI,结果写入本地输出目录。

Why use Image Edit on TypingMind?

Because you install it once and use it with any model. Image Edit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Image Edit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/meitu/meitu-skills/tree/main/skills/image-edit. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Image Edit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Image Edit?

As many as you like. As long as a model supports skills, you can use Image Edit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Image Edit AI skill free?

Yes. It is published on GitHub by meitu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇