partial-redrawing

v1.0.2

通过 Flyelep AI 工具接口对图片局部区域进行重绘,可结合文本提示词和参考替换图生成新图。 当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。

0· 160·0 current·0 all-time
byflyelep@flyelepai

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for flyelepai/flyelep-partial-redrawing.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "partial-redrawing" (flyelepai/flyelep-partial-redrawing) from ClawHub.
Skill page: https://clawhub.ai/flyelepai/flyelep-partial-redrawing
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install flyelep-partial-redrawing

ClawHub CLI

Package manager switcher

npx clawhub@latest install flyelep-partial-redrawing
Security Scan
VirusTotalVirusTotal
Pending
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk978w32pkcpwmvxe5kanm2xq7h85n2kq
160downloads
0stars
3versions
Updated 1d ago
v1.0.2
MIT-0

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

提示词处理

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

执行时应遵循:

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

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

Comments

Loading comments...