← 返回 Skills 市场
flyelepai

partial-redrawing

作者 flyelep · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
173
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install flyelep-partial-redrawing
功能描述
通过 Flyelep AI 工具接口对图片局部区域进行重绘,可结合文本提示词和参考替换图生成新图。 当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。
使用说明 (SKILL.md)

Flyelep 局部重绘

通过 Flyelep AI Tool API 对图片指定区域进行局部重绘,并返回重绘后的新图片 URL。

重要:这是一个 HTTP API 调用技能。必须通过 HTTP POST 请求调用 API 接口,禁止通过浏览器访问 Flyelep 网站。

API 接口信息

  • URL: POST https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing
  • Content-Type: application/json
  • 认证方式: 在请求头中传入 secretKey
  • 超时时间: 建议 120-300 秒

认证方式

所有 AI 工具接口均需在请求头中传入 secretKey。该密钥需由用户在 Flyelep 开放平台申请获得:https://www.flyelep.cn/controlboard 。

请求头示例:

Content-Type: application/json
secretKey: 用户提供的API密钥

安全说明secretKey 必须放在请求头中,这是 AI 工具接口的统一鉴权要求。不要将真实密钥写入技能文件、示例代码仓库或持久化配置中,应在运行时由用户动态提供。

请求 Body

{
  "sourceUrl": "https://example.com/original.jpg",
  "textPrompt": "将背景替换为夏日海滩",
  "replaceImageUrl": "https://example.com/reference.jpg"
}

响应格式

统一响应结构:

{
  "code": 200,
  "msg": "操作成功",
  "data": "https://example.com/redrawn.jpg"
}
  • code=200 表示调用成功
  • msg 为接口返回说明
  • data 为重绘后的图片 URL

返回结果应直接展示给用户,不要回读图片内容。

参数说明

必传参数

字段 默认值 说明
sourceUrl - 原图链接
textPrompt - 用户提示词,用于描述重绘内容

可选参数

字段 默认值 说明
replaceImageUrl - 参考替换图片链接

参数映射规则

sourceUrl

  • 传入待重绘原图的公网可访问 URL
  • 必须是图片直链,不要传网页地址

textPrompt

  • 直接描述要重绘的内容、目标风格和替换效果
  • 应尽量明确“改哪里、改成什么、保留什么”
  • 优先保留用户原始意图,不要无故扩写成完全不同的需求

推荐写法示例:

  • 将背景替换为纯白背景,保留商品主体和阴影
  • 将杯子上的图案改为蓝色几何纹理,保留杯身材质
  • 把右上角的文字替换为英文促销文案,整体风格保持简洁

replaceImageUrl

  • 当用户提供明确的参考替换图时再传入
  • 适合用于“把某一区域替换成参考图风格或内容”的场景
  • 用户未提供参考图时,不传此字段

说明:文档描述中提到“基于掩码图对图片指定区域进行局部重绘”,但当前参数表仅列出 sourceUrltextPromptreplaceImageUrl,没有单独的掩码字段。因此本 skill 按文档可见参数执行,不额外构造 mask 参数。

调用示例

仅通过文字提示进行局部重绘:

curl -X POST "https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing" \
  -H "Content-Type: application/json" \
  -H "secretKey: 你的密钥" \
  --max-time 300 \
  -d '{
    "sourceUrl": "https://example.com/original.jpg",
    "textPrompt": "将背景替换为夏日海滩"
  }'

结合参考图进行局部替换:

curl -X POST "https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing" \
  -H "Content-Type: application/json" \
  -H "secretKey: 你的密钥" \
  --max-time 300 \
  -d '{
    "sourceUrl": "https://example.com/product.jpg",
    "textPrompt": "将背景更换为更高级的木质桌面场景,保留产品主体不变",
    "replaceImageUrl": "https://example.com/wood-scene.jpg"
  }'

常见错误及解决方案

错误 原因与解决
HTTP 401 / code 非 200 secretKey 无效、缺失或已过期,确认请求头是否正确传入
HTTP 405 Not Allowed 请求方法错误,必须使用 POST
sourceUrl 无法访问 原图 URL 不是公网直链、已过期,或源站限制访问
textPrompt 过于模糊 提示词没有说明要修改的区域或目标效果,应补充“改哪里、改成什么”
replaceImageUrl 无法访问 参考图 URL 无效或不可公开访问,去掉该字段或更换可访问链接
重绘结果偏差较大 提示词不够具体,可补充材质、颜色、构图、保留元素等约束
请求超时 源图较大或处理复杂时,可适当增大超时时间

提示词处理

该接口接收自然语言提示词,textPrompt 的质量会直接影响结果。

执行时应遵循:

  1. 明确保留项:主体、品牌标识、材质、构图等不应被误改的内容
  2. 明确修改项:背景、局部文案、某个物体、某种颜色或纹理
  3. 有参考图时再传 replaceImageUrl
  4. 若用户只说“帮我改一下图”,应先补足最少必要信息,再调用接口

当用户目标是“小范围替换”时,提示词应避免写成整张图重做;当用户目标是“换背景”时,应在 textPrompt 中强调保留主体不变。

安全使用建议
This skill appears coherent for calling Flyelep's partial-redrawing API, but before installing consider: (1) It will send the supplied image URLs and prompts to an external service (https://www.flyelep.cn). Do not use with sensitive or private images unless you accept their data handling policy. (2) You must provide a Flyelep API key ('secretKey') at runtime—do not embed keys in skill files or public repos. (3) The SKILL.md lacks a mask parameter even though the product mentions masks; expect limited control over exact masked regions. (4) The skill source and homepage are unknown—verify the Flyelep service and your API key through official channels and review their privacy/TOS before use. If you want a stricter assessment, provide the skill's source code, an official homepage, or confirmation of the Flyelep account/terms.
能力评估
Purpose & Capability
Name/description claim partial image redrawing via Flyelep; SKILL.md provides a single HTTP POST API endpoint and parameters that align with that purpose. There are no unrelated binaries, credentials, or install steps requested.
Instruction Scope
Instructions are narrowly scoped to making an HTTPS POST to the Flyelep endpoint with sourceUrl, textPrompt, and optional replaceImageUrl. Two points to note: (1) the doc warns to not use the website and requires sending the API key in a header — this means images and prompts are transmitted to a third-party service (privacy/exfiltration risk). (2) The SKILL.md acknowledges a mask-based capability in product docs but the provided parameters lack any mask field, so precise partial masking may not be supported by this skill as written (functional limitation).
Install Mechanism
No install spec and no code files — instruction-only skill. Nothing is written to disk or fetched at install time.
Credentials
The skill does not declare required env vars in metadata, but runtime requires the user to supply a Flyelep 'secretKey' in the HTTP header. Requesting a single service API key is proportional to the described task, but the key is not declared in the metadata (user must provide it at call time). The skill explicitly advises not to persist the key in the skill file.
Persistence & Privilege
always is false and the skill is user-invocable only. It does not request persistent system presence, nor does it modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install flyelep-partial-redrawing
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /flyelep-partial-redrawing 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
No functional or documentation changes in this release. - Version update with no file or content changes detected. - Skill behavior and documentation remain unchanged.
v1.0.1
- 增加 Flyelep 开放平台官网链接,便于用户获取 API 密钥。 - 其他文档内容和功能保持不变。
v1.0.0
Flyelep 局部重绘技能初始发布。 - 支持通过 Flyelep AI 工具接口对图片指定区域进行重绘,结合文本提示词及可选参考图。 - 详细文档说明 API 调用方法、参数意义、响应格式和认证方式。 - 提供典型调用示例与常见错误解决方案。 - 仅需传入图片直链 URL 与文本提示,optionally 支持参考图片替换。 - 强调按需保留图片主体与局部精确修改,明确提示词编写建议。
元数据
Slug flyelep-partial-redrawing
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

partial-redrawing 是什么?

通过 Flyelep AI 工具接口对图片局部区域进行重绘,可结合文本提示词和参考替换图生成新图。 当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 173 次。

如何安装 partial-redrawing?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install flyelep-partial-redrawing」即可一键安装,无需额外配置。

partial-redrawing 是免费的吗?

是的,partial-redrawing 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

partial-redrawing 支持哪些平台?

partial-redrawing 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 partial-redrawing?

由 flyelep(@flyelepai)开发并维护,当前版本 v1.0.2。

💬 留言讨论