{"id":"f69d61be-23b6-42c6-b064-a0c031adf3ad","entityType":"agent","slug":"clawhub-flyelepai-flyelep-partial-redrawing","name":"partial-redrawing","canonicalUrl":"https://www.xpersona.co/agent/clawhub-flyelepai-flyelep-partial-redrawing","canonicalPath":"/agent/clawhub-flyelepai-flyelep-partial-redrawing","generatedAt":"2026-10-11T10:50:12.809Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-11T06:41:47.279Z","emptyReason":null},"description":"通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。 当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。 Skill: partial-redrawing Owner: flyelepai Summary: 通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。 当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。 Tags: latest:1.0.4 Version history: v1.0.4 | 2026-08-28T03:11:33.757Z | user - Expanded API参数支持，新增 maskDataUrl、modelType（字符串类型）、languageType 等可选参数，详细说明参数映射与用法。 - 增补“本地文件上传”全流程说明，包括 curl 多平台用法、返回结构与错误处理。 - 明确支持多种模型类型的指定，并更新调用说明和注意事项（如 modelType 必须为字符串）。 - 完善执行流程，强调必须向用户索取 secre","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.","installCommand":"clawhub skill install s175rfkzzv81fcfhp65sjggxa984fmry:flyelep-partial-redrawing","sourceUrl":"https://clawhub.ai/flyelepai/flyelep-partial-redrawing","homepage":"https://clawhub.ai/flyelepai/skills/flyelep-partial-redrawing","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/flyelepai/flyelep-partial-redrawing","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/flyelepai/skills/flyelep-partial-redrawing","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":61,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。 当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。 Skill: partial-redrawing Owner: flyelepai Summary: 通过 Flyelep AI 工具接"},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-11T06:41:47.279Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T06:41:47.279Z","emptyReason":null},"stars":null,"forks":null,"downloads":1131,"packageName":null,"latestVersion":"1.0.4","tractionLabel":"1.1K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-11T06:41:47.267Z","emptyReason":null},"lastUpdatedAt":"2026-10-11T06:41:47.279Z","lastCrawledAt":"2026-10-11T06:41:47.267Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-12T06:41:47.267Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.4","createdAt":"2026-08-28T03:11:33.757Z","changelog":"- Expanded API参数支持，新增 maskDataUrl、modelType（字符串类型）、languageType 等可选参数，详细说明参数映射与用法。 - 增补“本地文件上传”全流程说明，包括 curl 多平台用法、返回结构与错误处理。 - 明确支持多种模型类型的指定，并更新调用说明和注意事项（如 modelType 必须为字符串）。 - 完善执行流程，强调必须向用户索取 secretKey、原图直链、参考图等必要信息，agent 不可自行填写。 - 补充更多错误场景与排查提示，细化跨平台 curl 调用示例与注意点。 - 移除了 skill-card.md 文件，不影响功能。","fileCount":3,"zipByteSize":6396},{"version":"1.0.3","createdAt":"2026-08-07T06:22:55.876Z","changelog":"- Removed the file skill-card.md. - 明确要求所有必填参数必须通过用户提供，agent 不可自行填写，并在参数说明处强调调用需先询问用户并由用户确认。 - 针对 API 调用的操作流程，新增分 Windows/PowerShell 和 macOS/Linux 平台详细指令和注意事项，尤其强调 GBK/UTF-8 编码、文件创建与命令行用法。 - 所有调用示例均细化为“先写 JSON 文件再用 curl.exe 读文件调用”，并补充临时文件的创建/清理过程说明。 - 增强对 Content-Type 请求头（需含 charset=utf-8）规范的说明，防止解码错误。 - 其余接口逻辑无变化，仅文档和调用安全、合规处理指引增强。","fileCount":3,"zipByteSize":5231},{"version":"1.0.2","createdAt":"2026-04-27T03:57:54.591Z","changelog":"No functional or documentation changes in this release. - Version update with no file or content changes detected. - Skill behavior and documentation remain unchanged.","fileCount":3,"zipByteSize":4099},{"version":"1.0.1","createdAt":"2026-04-27T01:16:15.786Z","changelog":"- 增加 Flyelep 开放平台官网链接，便于用户获取 API 密钥。 - 其他文档内容和功能保持不变。","fileCount":2,"zipByteSize":2938},{"version":"1.0.0","createdAt":"2026-04-20T08:47:18.882Z","changelog":"Flyelep 局部重绘技能初始发布。 - 支持通过 Flyelep AI 工具接口对图片指定区域进行重绘，结合文本提示词及可选参考图。 - 详细文档说明 API 调用方法、参数意义、响应格式和认证方式。 - 提供典型调用示例与常见错误解决方案。 - 仅需传入图片直链 URL 与文本提示，optionally 支持参考图片替换。 - 强调按需保留图片主体与局部精确修改，明确提示词编写建议。","fileCount":2,"zipByteSize":2926}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s175rfkzzv81fcfhp65sjggxa984fmry:flyelep-partial-redrawing","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-flyelepai-flyelep-partial-redrawing/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-flyelepai-flyelep-partial-redrawing/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-flyelepai-flyelep-partial-redrawing/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-flyelepai-flyelep-partial-redrawing/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-flyelepai-flyelep-partial-redrawing/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-flyelepai-flyelep-partial-redrawing/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-11T10:50:12.808Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-flyelepai-flyelep-partial-redrawing/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-flyelepai-flyelep-partial-redrawing/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-flyelepai-flyelep-partial-redrawing/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-flyelepai-flyelep-partial-redrawing/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-11T06:41:47.279Z","emptyReason":null},"readme":"Skill: partial-redrawing\n\nOwner: flyelepai\n\nSummary: 通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。 当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。\n\nTags: latest:1.0.4\n\nVersion history:\n\nv1.0.4 | 2026-08-28T03:11:33.757Z | user\n\n- Expanded API参数支持，新增 maskDataUrl、modelType（字符串类型）、languageType 等可选参数，详细说明参数映射与用法。\n- 增补“本地文件上传”全流程说明，包括 curl 多平台用法、返回结构与错误处理。\n- 明确支持多种模型类型的指定，并更新调用说明和注意事项（如 modelType 必须为字符串）。\n- 完善执行流程，强调必须向用户索取 secretKey、原图直链、参考图等必要信息，agent 不可自行填写。\n- 补充更多错误场景与排查提示，细化跨平台 curl 调用示例与注意点。\n- 移除了 skill-card.md 文件，不影响功能。\n\nv1.0.3 | 2026-08-07T06:22:55.876Z | user\n\n- Removed the file skill-card.md.\n- 明确要求所有必填参数必须通过用户提供，agent 不可自行填写，并在参数说明处强调调用需先询问用户并由用户确认。\n- 针对 API 调用的操作流程，新增分 Windows/PowerShell 和 macOS/Linux 平台详细指令和注意事项，尤其强调 GBK/UTF-8 编码、文件创建与命令行用法。\n- 所有调用示例均细化为“先写 JSON 文件再用 curl.exe 读文件调用”，并补充临时文件的创建/清理过程说明。\n- 增强对 Content-Type 请求头（需含 charset=utf-8）规范的说明，防止解码错误。\n- 其余接口逻辑无变化，仅文档和调用安全、合规处理指引增强。\n\nv1.0.2 | 2026-04-27T03:57:54.591Z | user\n\nNo functional or documentation changes in this release.\n\n- Version update with no file or content changes detected.\n- Skill behavior and documentation remain unchanged.\n\nv1.0.1 | 2026-04-27T01:16:15.786Z | user\n\n- 增加 Flyelep 开放平台官网链接，便于用户获取 API 密钥。\n- 其他文档内容和功能保持不变。\n\nv1.0.0 | 2026-04-20T08:47:18.882Z | user\n\nFlyelep 局部重绘技能初始发布。\n\n- 支持通过 Flyelep AI 工具接口对图片指定区域进行重绘，结合文本提示词及可选参考图。\n- 详细文档说明 API 调用方法、参数意义、响应格式和认证方式。\n- 提供典型调用示例与常见错误解决方案。\n- 仅需传入图片直链 URL 与文本提示，optionally 支持参考图片替换。\n- 强调按需保留图片主体与局部精确修改，明确提示词编写建议。\n\nArchive index:\n\nArchive v1.0.4: 3 files, 6396 bytes\n\nFiles: skill-card.md (2281b), SKILL.md (12321b), _meta.json (144b)\n\nFile v1.0.4:SKILL.md\n\n---\nname: partial-redrawing\ndescription: >-\n  通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。\n  当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。\n---\n# Flyelep 局部重绘\n\n通过 Flyelep AI Tool API 对图片指定区域进行局部重绘，并返回重绘后的新图片 URL。\n\n**重要：这是一个 HTTP API 调用技能。必须通过 HTTP POST 请求调用 API 接口，禁止通过浏览器访问 Flyelep 网站。**\n\n## API 接口信息\n\n- **URL**: `POST https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing`\n- **Content-Type**: `application/json`\n- **认证方式**: 在请求头中传入 `secretKey`（密钥需由用户在 Flyelep 开放平台申请：https://www.flyelep.cn/controlboard）\n- **超时时间**: 建议 120-300 秒\n\n请求头示例：\n\n```http\nContent-Type: application/json\nsecretKey: 用户提供的API密钥\n```\n\n> **安全说明**：不要将真实密钥写入技能文件、示例代码仓库或持久化配置中，应在运行时由用户动态提供。\n\n## 请求 Body\n\n```json\n{\n  \"sourceUrl\": \"https://example.com/original.jpg\",\n  \"textPrompt\": \"将背景替换为夏日海滩\",\n  \"replaceImageUrl\": \"https://example.com/reference.jpg\"\n}\n```\n\n## 响应格式\n\n```json\n{\n  \"code\": 200,\n  \"msg\": \"操作成功\",\n  \"data\": \"https://example.com/redrawn.jpg\"\n}\n```\n\n- `code=200` 表示调用成功\n- `msg` 为接口返回说明\n- `data` 为重绘后的图片 URL\n- 返回结果应直接展示给用户，不要回读图片内容\n\n## 参数说明\n\n### 必传参数\n\n> **重要**：以下必传参数必须通过询问用户获取，agent 不可自行填写。调用本技能时，应先向用户列出必传参数与可选参数表格，由用户确认或提供后再执行。\n\n| 字段 | 默认值 | 说明 |\n|------|--------|------|\n| sourceUrl | - | 原图链接 |\n| textPrompt | - | 用户提示词，用于描述重绘内容 |\n\n### 可选参数\n\n| 字段 | 默认值 | 说明 |\n|------|--------|------|\n| replaceImageUrl | - | 参考替换图片链接 |\n| maskDataUrl | - | 掩码图链接，用于限定重绘区域 |\n| modelType | `\"0\"` | 模型类型，字符串：`\"0\"`=gemini-2.5，`\"2\"`=gemini-3.1，`\"9\"`=Flyelep Image 2 |\n| languageType | - | 语言类型，用于约束重绘文案的语种 |\n\n### 参数映射规则\n\n**sourceUrl**：\n- 传入待重绘原图的公网可访问 URL\n- 必须是图片直链，不要传网页地址\n- 如果用户提供本地文件路径，先按「本地文件上传」章节换取公网直链，再填入此参数\n\n**textPrompt**：\n- 直接描述要重绘的内容、目标风格和替换效果\n- 应尽量明确“改哪里、改成什么、保留什么”\n- 优先保留用户原始意图，不要无故扩写成完全不同的需求\n\n推荐写法示例：\n\n- `将背景替换为纯白背景，保留商品主体和阴影`\n- `将杯子上的图案改为蓝色几何纹理，保留杯身材质`\n- `把右上角的文字替换为英文促销文案，整体风格保持简洁`\n\n**replaceImageUrl**：\n- 当用户提供明确的参考替换图时再传入\n- 适合用于“把某一区域替换成参考图风格或内容”的场景\n- 用户未提供参考图时，不传此字段\n- 如果用户提供本地文件路径，先按「本地文件上传」章节换取公网直链，再填入此参数\n\n**maskDataUrl**：\n- 掩码图链接，白色区域表示要重绘的部分\n- 不传时由模型依据 `textPrompt` 自行判断重绘范围，因此提示词要写清\"改哪里\"\n- 只有用户已经有现成掩码图时才需要传，agent 不要自己构造掩码\n\n**modelType**：\n- 该字段是**字符串**，不是数字，例如 `\"0\"`\n- `\"0\"`：gemini-2.5（默认）\n- `\"2\"`：gemini-3.1，按 3.1 档计费\n- `\"9\"`：Flyelep Image 2，计费按 3.1 档处理，实际模型由工作流路由\n- 不传时服务端按 `\"0\"` 处理；不要显式传 `null`，会导致解析失败\n\n## 本地文件上传\n\n用户提供的是本地文件路径而不是公网直链时，先把文件上传换取直链，再调用本接口。已安装 `file-upload` 技能时以该技能为准；未安装时按下面的说明直接调用上传接口。\n\n- **URL**: `POST https://www.flyelep.cn/prod-api/poster-design/api/v1/file/upload`\n- **请求方式**: `multipart/form-data`，文件字段名固定为 `file`，单次只能上传一个文件，多个文件并发调用多次\n- **认证方式**: 请求头传 `secretKey`，与本技能使用同一个密钥\n- **超时时间**: 图片建议 60-120 秒\n- **不要手动设置 `Content-Type` 请求头**，让 HTTP 客户端自动生成带 boundary 的值，手写会导致服务端解析失败\n- 图片仅支持 `bmp`、`gif`、`jpg`、`jpeg`、`png`，`webp` 需先转成 `png` 或 `jpg`；文件名必须带正确后缀，服务端靠它判断格式\n- 原文件名不会出现在 URL 里，中文名、空格、特殊字符都能直接上传，不需要提前改名\n- 上传不消耗算力，但服务端不做去重：同一个文件在一次任务里只上传一次，记下 `fullPath` 复用\n\n成功响应取 `data.fullPath` 作为公网直链，永久有效、不带签名：\n\n```json\n{\n  \"code\": 200,\n  \"msg\": null,\n  \"data\": {\n    \"relativePath\": \"cos_ai_agent/2026-08-11/3f2a9c1b7d84e6f5a012.png\",\n    \"fullPath\": \"https://agent-1404002717.cos.ap-guangzhou.myqcloud.com/cos_ai_agent/2026-08-11/3f2a9c1b7d84e6f5a012.png\",\n    \"serviceProvider\": null\n  }\n}\n```\n\n判断成功只看 `code`，业务失败时 HTTP 状态码仍是 200，`code` 为 500 或 9999，原因在 `msg` 里。\n\n```bash\n# Windows/PowerShell（用 curl.exe，PowerShell 里的 curl 是 Invoke-WebRequest 的别名）\ncurl.exe -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/file/upload\" -H \"secretKey: 你的密钥\" --max-time 120 -F \"file=@C:/path/to/product.png\"\n\n# macOS/Linux\ncurl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/file/upload\" -H \"secretKey: 你的密钥\" --max-time 120 -F \"file=@./product.png\"\n```\n\n图片入桶前会先过内容审核，审核不通过整个请求失败，需换图重试。拿到 `code=9999`、`msg` 为 `服务繁忙，请稍后再试` 时，先自查三项：是否漏了 `secretKey` 请求头、表单字段名是否为 `file`、文件是否超出服务端体积上限。密钥、格式、审核、体积类错误重试无效，只有网络超时、5xx 和存储类异常值得重试。\n\n## 调用示例\n\n> **跨平台调用说明**：\n> - 请求头必须包含 `Content-Type: application/json; charset=utf-8` 和 `secretKey`\n> - **Windows/PowerShell**：因 GBK 编码问题，必须先将 JSON 写入临时文件 `payload_temp.json`（UTF-8 无 BOM），再用 `curl.exe --% --data-binary @payload_temp.json` 发送请求。使用 Write 工具创建文件，或用 .NET API `[System.IO.File]::WriteAllText(\"payload_temp.json\", $json, [System.Text.UTF8Encoding]::new($false))`。调用后用 `rm payload_temp.json` 清理。\n> - **macOS/Linux**：bash/zsh 默认 UTF-8，可直接内联 JSON：`curl -X POST URL -H \"Content-Type: application/json; charset=utf-8\" -H \"secretKey: 你的密钥\" --data-binary 'JSON单行内容'`\n\n### 示例 1：仅通过文字提示进行局部重绘\n\n**前置步骤**：向用户索取图片路径或 URL。如用户提供本地文件，先按「本地文件上传」章节换取公网直链。\n\n**Windows/PowerShell**：\n\n步骤 1：创建 `payload_temp.json`（两种方式任选其一）：\n\n方式 A（使用 Write 工具）：\n```json\n{\n  \"sourceUrl\": \"https://example.com/original.jpg\",\n  \"textPrompt\": \"将背景替换为夏日海滩\"\n}\n```\n\n方式 B（无 Write 工具，PowerShell 执行）：\n```powershell\n[System.IO.File]::WriteAllText(\"payload_temp.json\", '{\"sourceUrl\":\"https://example.com/original.jpg\",\"textPrompt\":\"将背景替换为夏日海滩\"}', [System.Text.UTF8Encoding]::new($false))\n```\n\n步骤 2：执行请求：\n```bash\ncurl.exe --% -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" -H \"Content-Type: application/json; charset=utf-8\" -H \"secretKey: 你的密钥\" --max-time 300 --data-binary @payload_temp.json\n```\n\n步骤 3：清理临时文件：\n```bash\nrm payload_temp.json\n```\n\n**macOS/Linux**：\n```bash\ncurl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" -H \"Content-Type: application/json; charset=utf-8\" -H \"secretKey: 你的密钥\" --max-time 300 --data-binary '{\"sourceUrl\":\"https://example.com/original.jpg\",\"textPrompt\":\"将背景替换为夏日海滩\"}'\n```\n\n### 示例 2：结合参考图进行局部替换\n\n**前置步骤**：向用户索取原图路径或 URL，以及参考替换图路径或 URL。如用户提供本地文件，先按「本地文件上传」章节换取公网直链。\n\n**Windows/PowerShell**：\n\n步骤 1：创建 `payload_temp.json`（两种方式任选其一）：\n\n方式 A（使用 Write 工具）：\n```json\n{\n  \"sourceUrl\": \"https://example.com/product.jpg\",\n  \"textPrompt\": \"将背景更换为更高级的木质桌面场景，保留产品主体不变\",\n  \"replaceImageUrl\": \"https://example.com/wood-scene.jpg\"\n}\n```\n\n方式 B（无 Write 工具，PowerShell 执行）：\n```powershell\n[System.IO.File]::WriteAllText(\"payload_temp.json\", '{\"sourceUrl\":\"https://example.com/product.jpg\",\"textPrompt\":\"将背景更换为更高级的木质桌面场景，保留产品主体不变\",\"replaceImageUrl\":\"https://example.com/wood-scene.jpg\"}', [System.Text.UTF8Encoding]::new($false))\n```\n\n步骤 2：执行请求：\n```bash\ncurl.exe --% -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" -H \"Content-Type: application/json; charset=utf-8\" -H \"secretKey: 你的密钥\" --max-time 300 --data-binary @payload_temp.json\n```\n\n步骤 3：清理临时文件：\n```bash\nrm payload_temp.json\n```\n\n**macOS/Linux**：\n```bash\ncurl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" -H \"Content-Type: application/json; charset=utf-8\" -H \"secretKey: 你的密钥\" --max-time 300 --data-binary '{\"sourceUrl\":\"https://example.com/product.jpg\",\"textPrompt\":\"将背景更换为更高级的木质桌面场景，保留产品主体不变\",\"replaceImageUrl\":\"https://example.com/wood-scene.jpg\"}'\n```\n\n## 常见错误及解决方案\n\n| 错误 | 原因与解决 |\n|------|-----------|\n| HTTP 401 / `code` 非 200 | `secretKey` 无效、缺失或已过期，确认请求头是否正确传入 |\n| HTTP 405 Not Allowed | 请求方法错误，必须使用 `POST` |\n| `sourceUrl` 无法访问 | 原图 URL 不是公网直链、已过期，或源站限制访问 |\n| `textPrompt` 过于模糊 | 提示词没有说明要修改的区域或目标效果，应补充“改哪里、改成什么” |\n| `replaceImageUrl` 无法访问 | 参考图 URL 无效或不可公开访问，去掉该字段或更换可访问链接 |\n| 传 `\"modelType\": null` 后报错 | 该字段为字符串且不接受 null，要么不传，要么传 `\"0\"` |\n| 重绘结果偏差较大 | 提示词不够具体，可补充材质、颜色、构图、保留元素等约束 |\n| 请求超时 | 源图较大或处理复杂时，可适当增大超时时间 |\n\n## 执行流程\n\n1. **向用户询问 `secretKey`**（API 密钥必须由用户提供，agent 不可自行填写）\n2. 收集原图 URL `sourceUrl`（如用户提供本地文件，先按「本地文件上传」章节换取公网直链）\n3. 明确保留项：主体、品牌标识、材质、构图等不应被误改的内容\n4. 明确修改项：背景、局部文案、某个物体、某种颜色或纹理，整理为 `textPrompt`\n5. 有参考图时再传 `replaceImageUrl`（同样需为公网链接，本地文件先按「本地文件上传」章节换取公网直链）\n6. 若用户只说\"帮我改一下图\"，应先补足最少必要信息，再调用接口\n7. 在请求头中传入 `secretKey`，调用接口并返回重绘后的图片 URL\n\n该接口接收自然语言提示词，`textPrompt` 的质量会直接影响结果。当用户目标是“小范围替换”时，提示词应避免写成整张图重做；当用户目标是“换背景”时，应在 `textPrompt` 中强调保留主体不变。\n\nFile v1.0.4:_meta.json\n\n{\n  \"ownerId\": \"kn7fp1zsg4nwdq826y0awapkks84fkq1\",\n  \"slug\": \"flyelep-partial-redrawing\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1787886693757\n}\n\nFile v1.0.4:skill-card.md\n\n## Description:\n\nUses the Flyelep AI Tool API to redraw selected regions of an image from a source image URL, text prompt, and optional reference or mask image.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[flyelepai](https://clawhub.ai/user/flyelepai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to perform localized image edits, such as replacing backgrounds or modifying a specific region while preserving the main subject.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Local images supplied for editing may be uploaded to Flyelep and exposed through permanent public links without a clear deletion path.\n\nMitigation: Ask for explicit user acceptance before uploading local files, and avoid identity documents, private photos, confidential designs, regulated data, or other sensitive images unless the user accepts that exposure.\n\nRisk: The Flyelep secretKey could be exposed if written into files, examples, repositories, or logs.\n\nMitigation: Request the API key only at runtime, pass it in request headers, and do not persist it in skill files, configuration, examples, or shared logs.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/flyelepai/skills/flyelep-partial-redrawing)\n- [Flyelep partial redrawing API endpoint](https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing)\n- [Flyelep file upload API endpoint](https://www.flyelep.cn/prod-api/poster-design/api/v1/file/upload)\n- [Flyelep control board](https://www.flyelep.cn/controlboard)\n\n## Skill Output:\n\n**Output Type(s):** [API Calls, Shell commands, Configuration instructions, Guidance]\n\n**Output Format:** [Markdown with JSON and shell command examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Returns the redrawn image URL from the Flyelep API and instructs the agent not to read back image contents.]\n\n## Skill Version(s):\n\n1.0.4 (source: release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.0.3: 3 files, 5231 bytes\n\nFiles: skill-card.md (2204b), SKILL.md (9491b), _meta.json (144b)\n\nFile v1.0.3:SKILL.md\n\n---\r\nname: partial-redrawing\r\ndescription: >-\r\n  通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。\r\n  当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。\r\n---\r\n# Flyelep 局部重绘\r\n通过 Flyelep AI Tool API 对图片指定区域进行局部重绘，并返回重绘后的新图片 URL。\r\n\r\n**重要：这是一个 HTTP API 调用技能。必须通过 HTTP POST 请求调用 API 接口，禁止通过浏览器访问 Flyelep 网站。**\r\n\r\n## API 接口信息\r\n- **URL**: `POST https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing`\r\n- **Content-Type**: `application/json`\r\n- **认证方式**: 在请求头中传入 `secretKey`\r\n- **超时时间**: 建议 120-300 秒\r\n\r\n## 认证方式\r\n所有 AI 工具接口均需在请求头中传入 `secretKey`。该密钥需由用户在 Flyelep 开放平台申请获得：https://www.flyelep.cn/controlboard 。\r\n\r\n请求头示例：\r\n\r\n```http\r\nContent-Type: application/json\r\nsecretKey: 用户提供的API密钥\r\n```\r\n\r\n> **安全说明**：`secretKey` 必须放在请求头中，这是 AI 工具接口的统一鉴权要求。不要将真实密钥写入技能文件、示例代码仓库或持久化配置中，应在运行时由用户动态提供。\r\n\r\n## 请求 Body\r\n```json\r\n{\r\n  \"sourceUrl\": \"https://example.com/original.jpg\",\r\n  \"textPrompt\": \"将背景替换为夏日海滩\",\r\n  \"replaceImageUrl\": \"https://example.com/reference.jpg\"\r\n}\r\n```\r\n\r\n## 响应格式\r\n统一响应结构：\r\n\r\n```json\r\n{\r\n  \"code\": 200,\r\n  \"msg\": \"操作成功\",\r\n  \"data\": \"https://example.com/redrawn.jpg\"\r\n}\r\n```\r\n\r\n- `code=200` 表示调用成功\r\n- `msg` 为接口返回说明\r\n- `data` 为重绘后的图片 URL\r\n\r\n返回结果应直接展示给用户，不要回读图片内容。\r\n\r\n## 参数说明\r\n### 必传参数\r\n\r\n> **重要**：以下必传参数必须通过询问用户获取，agent 不可自行填写。调用本技能时，应先向用户列出必传参数与可选参数表格，由用户确认或提供后再执行。\r\n\r\n| 字段 | 默认值 | 说明 |\r\n|------|--------|------|\r\n| sourceUrl | - | 原图链接 |\r\n| textPrompt | - | 用户提示词，用于描述重绘内容 |\r\n\r\n### 可选参数\r\n| 字段 | 默认值 | 说明 |\r\n|------|--------|------|\r\n| replaceImageUrl | - | 参考替换图片链接 |\r\n\r\n## 参数映射规则\r\n### sourceUrl\r\n- 传入待重绘原图的公网可访问 URL\r\n- 必须是图片直链，不要传网页地址\r\n\r\n### textPrompt\r\n- 直接描述要重绘的内容、目标风格和替换效果\r\n- 应尽量明确“改哪里、改成什么、保留什么”\r\n- 优先保留用户原始意图，不要无故扩写成完全不同的需求\r\n\r\n推荐写法示例：\r\n\r\n- `将背景替换为纯白背景，保留商品主体和阴影`\r\n- `将杯子上的图案改为蓝色几何纹理，保留杯身材质`\r\n- `把右上角的文字替换为英文促销文案，整体风格保持简洁`\r\n\r\n### replaceImageUrl\r\n- 当用户提供明确的参考替换图时再传入\r\n- 适合用于“把某一区域替换成参考图风格或内容”的场景\r\n- 用户未提供参考图时，不传此字段\r\n\r\n> **说明**：文档描述中提到“基于掩码图对图片指定区域进行局部重绘”，但当前参数表仅列出 `sourceUrl`、`textPrompt`、`replaceImageUrl`，没有单独的掩码字段。因此本 skill 按文档可见参数执行，不额外构造 mask 参数。\r\n\r\n## 调用示例\r\n- **重要**：调用 API 时，必须设置 `Content-Type: application/json; charset=utf-8` 请求头。以下分平台说明：\r\n- **Windows/PowerShell 环境**：\r\n  - 必须采用以下流程：**先将请求体 JSON 写入当前工作目录下的临时文件 `payload_temp.json`，再通过 Shell 工具调用 `curl.exe --data-binary @payload_temp.json` 发送请求**。这是因为 PowerShell 使用 GBK 编码，而服务端使用 UTF-8 解析，直接在命令行中嵌入中文 JSON 会导致乱码。\r\n  - 使用 `curl.exe`（而非 `curl`，后者在 PowerShell 中是 `Invoke-WebRequest` 的别名）。必须在 `curl.exe` 后加 `--%` 停止 PowerShell 解析，否则 `@` 会被误判为 splatting 操作符导致报错。\r\n  - **文件创建方式**：根据可用工具选择其一（均需确保 UTF-8 **无 BOM** 编码，否则服务端 JSON 解析会在 position 0 报错）：\r\n    - **方式 A（有 Write 工具）**：使用 Write 工具创建 `payload_temp.json`\r\n    - **方式 B（无 Write 工具）**：使用 Shell 的 .NET API 创建文件（`Set-Content -Encoding UTF8` 会带 BOM，不可用）\r\n- **macOS/Linux 环境**：\r\n  - bash/zsh 默认使用 UTF-8 编码，可直接内联中文 JSON，无需临时文件。命令中使用 `curl`（无需 `.exe`，无需 `--%`）。\r\n  - 推荐内联写法：`curl -X POST URL -H \"Content-Type: application/json; charset=utf-8\" -H \"secretKey: 你的密钥\" --data-binary 'JSON单行内容'`，一步完成\r\n  - 也可使用临时文件方式：`curl --data-binary @payload_temp.json`\r\n- **清理**：API 返回结果后，务必删除 `payload_temp.json` 临时文件（如使用了临时文件）。\r\n\r\n**示例 1：仅通过文字提示进行局部重绘**\r\n\r\n步骤 1：创建 `payload_temp.json`，内容如下：\r\n```json\r\n{\r\n  \"sourceUrl\": \"https://example.com/original.jpg\",\r\n  \"textPrompt\": \"将背景替换为夏日海滩\"\r\n}\r\n```\r\n> 方式 B（无 Write 工具）：\r\n> ```powershell\r\n> $json = '{\"sourceUrl\":\"https://example.com/original.jpg\",\"textPrompt\":\"将背景替换为夏日海滩\"}'\r\n> [System.IO.File]::WriteAllText(\"payload_temp.json\", $json, [System.Text.UTF8Encoding]::new($false))\r\n> ```\r\n\r\n步骤 2：使用 Shell 工具执行：\r\n```bash\r\ncurl.exe --% -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" -H \"Content-Type: application/json; charset=utf-8\" -H \"secretKey: 你的密钥\" --max-time 300 --data-binary @payload_temp.json\r\n```\r\n\r\n> **macOS/Linux 内联写法**（无需临时文件）：\r\n> ```bash\r\n> curl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" -H \"Content-Type: application/json; charset=utf-8\" -H \"secretKey: 你的密钥\" --max-time 300 --data-binary '{\"sourceUrl\":\"https://example.com/original.jpg\",\"textPrompt\":\"将背景替换为夏日海滩\"}'\r\n> ```\r\n\r\n步骤 3：清理临时文件：\r\n```bash\r\nrm payload_temp.json\r\n```\r\n\r\n**示例 2：结合参考图进行局部替换**\r\n\r\n步骤 1：创建 `payload_temp.json`，内容如下：\r\n```json\r\n{\r\n  \"sourceUrl\": \"https://example.com/product.jpg\",\r\n  \"textPrompt\": \"将背景更换为更高级的木质桌面场景，保留产品主体不变\",\r\n  \"replaceImageUrl\": \"https://example.com/wood-scene.jpg\"\r\n}\r\n```\r\n> 方式 B（无 Write 工具）：\r\n> ```powershell\r\n> $json = '{\"sourceUrl\":\"https://example.com/product.jpg\",\"textPrompt\":\"将背景更换为更高级的木质桌面场景，保留产品主体不变\",\"replaceImageUrl\":\"https://example.com/wood-scene.jpg\"}'\r\n> [System.IO.File]::WriteAllText(\"payload_temp.json\", $json, [System.Text.UTF8Encoding]::new($false))\r\n> ```\r\n\r\n步骤 2：使用 Shell 工具执行：\r\n```bash\r\ncurl.exe --% -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" -H \"Content-Type: application/json; charset=utf-8\" -H \"secretKey: 你的密钥\" --max-time 300 --data-binary @payload_temp.json\r\n```\r\n\r\n> **macOS/Linux 内联写法**（无需临时文件）：\r\n> ```bash\r\n> curl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" -H \"Content-Type: application/json; charset=utf-8\" -H \"secretKey: 你的密钥\" --max-time 300 --data-binary '{\"sourceUrl\":\"https://example.com/product.jpg\",\"textPrompt\":\"将背景更换为更高级的木质桌面场景，保留产品主体不变\",\"replaceImageUrl\":\"https://example.com/wood-scene.jpg\"}'\r\n> ```\r\n\r\n步骤 3：清理临时文件：\r\n```bash\r\nrm payload_temp.json\r\n```\r\n\r\n## 常见错误及解决方案\r\n| 错误 | 原因与解决 |\r\n|------|-----------|\r\n| HTTP 401 / `code` 非 200 | `secretKey` 无效、缺失或已过期，确认请求头是否正确传入 |\r\n| HTTP 405 Not Allowed | 请求方法错误，必须使用 `POST` |\r\n| `sourceUrl` 无法访问 | 原图 URL 不是公网直链、已过期，或源站限制访问 |\r\n| `textPrompt` 过于模糊 | 提示词没有说明要修改的区域或目标效果，应补充“改哪里、改成什么” |\r\n| `replaceImageUrl` 无法访问 | 参考图 URL 无效或不可公开访问，去掉该字段或更换可访问链接 |\r\n| 重绘结果偏差较大 | 提示词不够具体，可补充材质、颜色、构图、保留元素等约束 |\r\n| 请求超时 | 源图较大或处理复杂时，可适当增大超时时间 |\r\n\r\n## 提示词处理\r\n该接口接收自然语言提示词，`textPrompt` 的质量会直接影响结果。\r\n\r\n执行时应遵循：\r\n\r\n1. 明确保留项：主体、品牌标识、材质、构图等不应被误改的内容\r\n2. 明确修改项：背景、局部文案、某个物体、某种颜色或纹理\r\n3. 有参考图时再传 `replaceImageUrl`\r\n4. 若用户只说“帮我改一下图”，应先补足最少必要信息，再调用接口\r\n\r\n当用户目标是“小范围替换”时，提示词应避免写成整张图重做；当用户目标是“换背景”时，应在 `textPrompt` 中强调保留主体不变。\n\nFile v1.0.3:_meta.json\n\n{\n  \"ownerId\": \"kn7fp1zsg4nwdq826y0awapkks84fkq1\",\n  \"slug\": \"flyelep-partial-redrawing\",\n  \"version\": \"1.0.3\",\n  \"publishedAt\": 1786083775876\n}\n\nFile v1.0.3:skill-card.md\n\n## Description:\n\nUses the Flyelep AI Tool API to redraw part of an image from a source image URL, a text prompt, and an optional reference image URL.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[flyelepai](https://clawhub.ai/user/flyelepai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers and image-editing agents use this skill when a user wants to partially modify an image, replace a background or region, or preserve the main subject while changing specific content through Flyelep's API.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill sends image URLs, the editing prompt, an optional reference image URL, and the Flyelep API key to Flyelep.\n\nMitigation: Use runtime-only key entry, avoid sensitive or private image content unless Flyelep is acceptable for that data, and delete temporary payload files after use.\n\nRisk: A vague editing prompt can produce an unintended redraw or alter more of the image than the user expects.\n\nMitigation: Ask the user to specify what to change, what to preserve, and whether a reference image should be used before calling the API.\n\n## Reference(s):\n\n- [Flyelep partial redrawing API endpoint](https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing)\n- [Flyelep controlboard](https://www.flyelep.cn/controlboard)\n- [ClawHub skill page](https://clawhub.ai/flyelepai/skills/flyelep-partial-redrawing)\n\n## Skill Output:\n\n**Output Type(s):** [Guidance, Shell commands, API Calls, Text]\n\n**Output Format:** [Markdown guidance with JSON payload examples and shell commands; runtime API response is JSON containing the redrawn image URL.]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Requires a user-provided source image URL, text prompt, optional reference image URL, and runtime Flyelep API key.]\n\n## Skill Version(s):\n\n1.0.3 (source: ClawHub release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.\n\nArchive v1.0.2: 3 files, 4099 bytes\n\nFiles: skill-card.md (2167b), SKILL.md (5499b), _meta.json (144b)\n\nFile v1.0.2:SKILL.md\n\n---\nname: partial-redrawing\ndescription: >-\n  通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。\n  当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。\n---\n# Flyelep 局部重绘\n通过 Flyelep AI Tool API 对图片指定区域进行局部重绘，并返回重绘后的新图片 URL。\n\n**重要：这是一个 HTTP API 调用技能。必须通过 HTTP POST 请求调用 API 接口，禁止通过浏览器访问 Flyelep 网站。**\n\n## API 接口信息\n- **URL**: `POST https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing`\n- **Content-Type**: `application/json`\n- **认证方式**: 在请求头中传入 `secretKey`\n- **超时时间**: 建议 120-300 秒\n\n## 认证方式\n所有 AI 工具接口均需在请求头中传入 `secretKey`。该密钥需由用户在 Flyelep 开放平台申请获得：https://www.flyelep.cn/controlboard 。\n\n请求头示例：\n\n```http\nContent-Type: application/json\nsecretKey: 用户提供的API密钥\n```\n\n> **安全说明**：`secretKey` 必须放在请求头中，这是 AI 工具接口的统一鉴权要求。不要将真实密钥写入技能文件、示例代码仓库或持久化配置中，应在运行时由用户动态提供。\n\n## 请求 Body\n```json\n{\n  \"sourceUrl\": \"https://example.com/original.jpg\",\n  \"textPrompt\": \"将背景替换为夏日海滩\",\n  \"replaceImageUrl\": \"https://example.com/reference.jpg\"\n}\n```\n\n## 响应格式\n统一响应结构：\n\n```json\n{\n  \"code\": 200,\n  \"msg\": \"操作成功\",\n  \"data\": \"https://example.com/redrawn.jpg\"\n}\n```\n\n- `code=200` 表示调用成功\n- `msg` 为接口返回说明\n- `data` 为重绘后的图片 URL\n\n返回结果应直接展示给用户，不要回读图片内容。\n\n## 参数说明\n### 必传参数\n| 字段 | 默认值 | 说明 |\n|------|--------|------|\n| sourceUrl | - | 原图链接 |\n| textPrompt | - | 用户提示词，用于描述重绘内容 |\n\n### 可选参数\n| 字段 | 默认值 | 说明 |\n|------|--------|------|\n| replaceImageUrl | - | 参考替换图片链接 |\n\n## 参数映射规则\n### sourceUrl\n- 传入待重绘原图的公网可访问 URL\n- 必须是图片直链，不要传网页地址\n\n### textPrompt\n- 直接描述要重绘的内容、目标风格和替换效果\n- 应尽量明确“改哪里、改成什么、保留什么”\n- 优先保留用户原始意图，不要无故扩写成完全不同的需求\n\n推荐写法示例：\n\n- `将背景替换为纯白背景，保留商品主体和阴影`\n- `将杯子上的图案改为蓝色几何纹理，保留杯身材质`\n- `把右上角的文字替换为英文促销文案，整体风格保持简洁`\n\n### replaceImageUrl\n- 当用户提供明确的参考替换图时再传入\n- 适合用于“把某一区域替换成参考图风格或内容”的场景\n- 用户未提供参考图时，不传此字段\n\n> **说明**：文档描述中提到“基于掩码图对图片指定区域进行局部重绘”，但当前参数表仅列出 `sourceUrl`、`textPrompt`、`replaceImageUrl`，没有单独的掩码字段。因此本 skill 按文档可见参数执行，不额外构造 mask 参数。\n\n## 调用示例\n**仅通过文字提示进行局部重绘：**\n\n```bash\ncurl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"secretKey: 你的密钥\" \\\n  --max-time 300 \\\n  -d '{\n    \"sourceUrl\": \"https://example.com/original.jpg\",\n    \"textPrompt\": \"将背景替换为夏日海滩\"\n  }'\n```\n\n**结合参考图进行局部替换：**\n\n```bash\ncurl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"secretKey: 你的密钥\" \\\n  --max-time 300 \\\n  -d '{\n    \"sourceUrl\": \"https://example.com/product.jpg\",\n    \"textPrompt\": \"将背景更换为更高级的木质桌面场景，保留产品主体不变\",\n    \"replaceImageUrl\": \"https://example.com/wood-scene.jpg\"\n  }'\n```\n\n## 常见错误及解决方案\n| 错误 | 原因与解决 |\n|------|-----------|\n| HTTP 401 / `code` 非 200 | `secretKey` 无效、缺失或已过期，确认请求头是否正确传入 |\n| HTTP 405 Not Allowed | 请求方法错误，必须使用 `POST` |\n| `sourceUrl` 无法访问 | 原图 URL 不是公网直链、已过期，或源站限制访问 |\n| `textPrompt` 过于模糊 | 提示词没有说明要修改的区域或目标效果，应补充“改哪里、改成什么” |\n| `replaceImageUrl` 无法访问 | 参考图 URL 无效或不可公开访问，去掉该字段或更换可访问链接 |\n| 重绘结果偏差较大 | 提示词不够具体，可补充材质、颜色、构图、保留元素等约束 |\n| 请求超时 | 源图较大或处理复杂时，可适当增大超时时间 |\n\n## 提示词处理\n该接口接收自然语言提示词，`textPrompt` 的质量会直接影响结果。\n\n执行时应遵循：\n\n1. 明确保留项：主体、品牌标识、材质、构图等不应被误改的内容\n2. 明确修改项：背景、局部文案、某个物体、某种颜色或纹理\n3. 有参考图时再传 `replaceImageUrl`\n4. 若用户只说“帮我改一下图”，应先补足最少必要信息，再调用接口\n\n当用户目标是“小范围替换”时，提示词应避免写成整张图重做；当用户目标是“换背景”时，应在 `textPrompt` 中强调保留主体不变。\n\nFile v1.0.2:_meta.json\n\n{\n  \"ownerId\": \"kn7fp1zsg4nwdq826y0awapkks84fkq1\",\n  \"slug\": \"flyelep-partial-redrawing\",\n  \"version\": \"1.0.2\",\n  \"publishedAt\": 1777262274591\n}\n\nFile v1.0.2:skill-card.md\n\n## Description: <br>\nUses the Flyelep AI Tool API to partially redraw an image from a source image URL, a natural-language edit prompt, and an optional replacement reference image URL. <br>\n\nThis skill is ready for commercial/non-commercial use. <br>\n\n## Publisher: <br>\n[flyelepai](https://clawhub.ai/user/flyelepai) <br>\n\n### License/Terms of Use: <br>\nMIT-0 <br>\n\n\n## Use Case: <br>\nExternal users and developers use this skill when they need an agent to call Flyelep's partial image redrawing API for localized image edits, background replacement, or reference-guided region replacement while preserving the main subject. <br>\n\n### Deployment Geography for Use: <br>\nGlobal <br>\n\n## Known Risks and Mitigations: <br>\nRisk: The skill sends image URLs, edit prompts, optional reference image URLs, and a Flyelep API key to Flyelep. <br>\nMitigation: Avoid sensitive or private images unless third-party processing is acceptable, and provide the API key only at runtime. <br>\nRisk: Saving the Flyelep secret key in shared files or examples could expose credentials. <br>\nMitigation: Keep the secret key out of skill files, repositories, and persistent configuration. <br>\n\n\n## Reference(s): <br>\n- [Flyelep partial redrawing API endpoint](https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing) <br>\n- [Flyelep controlboard](https://www.flyelep.cn/controlboard) <br>\n- [ClawHub skill page](https://clawhub.ai/flyelepai/flyelep-partial-redrawing) <br>\n\n\n## Skill Output: <br>\n**Output Type(s):** [text, shell commands, configuration, guidance] <br>\n**Output Format:** [Markdown guidance with JSON and curl examples] <br>\n**Output Parameters:** [1D] <br>\n**Other Properties Related to Output:** [Produces API request guidance and returns or presents the redrawn image URL from Flyelep.] <br>\n\n## Skill Version(s): <br>\n1.0.2 (source: server release evidence) <br>\n\n## Ethical Considerations: <br>\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment. <br>\n\nArchive v1.0.1: 2 files, 2938 bytes\n\nFiles: SKILL.md (5498b), _meta.json (144b)\n\nFile v1.0.1:SKILL.md\n\n---\nname: partial-redrawing\ndescription: >-\n  通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。\n  当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。\n---\n# Flyelep 局部重绘\n通过 Flyelep AI Tool API 对图片指定区域进行局部重绘，并返回重绘后的新图片 URL。\n\n**重要：这是一个 HTTP API 调用技能。必须通过 HTTP POST 请求调用 API 接口，禁止通过浏览器访问 Flyelep 网站。**\n\n## API 接口信息\n- **URL**: `POST https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing`\n- **Content-Type**: `application/json`\n- **认证方式**: 在请求头中传入 `secretKey`\n- **超时时间**: 建议 120-300 秒\n\n## 认证方式\n所有 AI 工具接口均需在请求头中传入 `secretKey`。该密钥需由用户在 Flyelep 开放平台申请获得：https://www.flyelep.cn/controlboard。\n\n请求头示例：\n\n```http\nContent-Type: application/json\nsecretKey: 用户提供的API密钥\n```\n\n> **安全说明**：`secretKey` 必须放在请求头中，这是 AI 工具接口的统一鉴权要求。不要将真实密钥写入技能文件、示例代码仓库或持久化配置中，应在运行时由用户动态提供。\n\n## 请求 Body\n```json\n{\n  \"sourceUrl\": \"https://example.com/original.jpg\",\n  \"textPrompt\": \"将背景替换为夏日海滩\",\n  \"replaceImageUrl\": \"https://example.com/reference.jpg\"\n}\n```\n\n## 响应格式\n统一响应结构：\n\n```json\n{\n  \"code\": 200,\n  \"msg\": \"操作成功\",\n  \"data\": \"https://example.com/redrawn.jpg\"\n}\n```\n\n- `code=200` 表示调用成功\n- `msg` 为接口返回说明\n- `data` 为重绘后的图片 URL\n\n返回结果应直接展示给用户，不要回读图片内容。\n\n## 参数说明\n### 必传参数\n| 字段 | 默认值 | 说明 |\n|------|--------|------|\n| sourceUrl | - | 原图链接 |\n| textPrompt | - | 用户提示词，用于描述重绘内容 |\n\n### 可选参数\n| 字段 | 默认值 | 说明 |\n|------|--------|------|\n| replaceImageUrl | - | 参考替换图片链接 |\n\n## 参数映射规则\n### sourceUrl\n- 传入待重绘原图的公网可访问 URL\n- 必须是图片直链，不要传网页地址\n\n### textPrompt\n- 直接描述要重绘的内容、目标风格和替换效果\n- 应尽量明确“改哪里、改成什么、保留什么”\n- 优先保留用户原始意图，不要无故扩写成完全不同的需求\n\n推荐写法示例：\n\n- `将背景替换为纯白背景，保留商品主体和阴影`\n- `将杯子上的图案改为蓝色几何纹理，保留杯身材质`\n- `把右上角的文字替换为英文促销文案，整体风格保持简洁`\n\n### replaceImageUrl\n- 当用户提供明确的参考替换图时再传入\n- 适合用于“把某一区域替换成参考图风格或内容”的场景\n- 用户未提供参考图时，不传此字段\n\n> **说明**：文档描述中提到“基于掩码图对图片指定区域进行局部重绘”，但当前参数表仅列出 `sourceUrl`、`textPrompt`、`replaceImageUrl`，没有单独的掩码字段。因此本 skill 按文档可见参数执行，不额外构造 mask 参数。\n\n## 调用示例\n**仅通过文字提示进行局部重绘：**\n\n```bash\ncurl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"secretKey: 你的密钥\" \\\n  --max-time 300 \\\n  -d '{\n    \"sourceUrl\": \"https://example.com/original.jpg\",\n    \"textPrompt\": \"将背景替换为夏日海滩\"\n  }'\n```\n\n**结合参考图进行局部替换：**\n\n```bash\ncurl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"secretKey: 你的密钥\" \\\n  --max-time 300 \\\n  -d '{\n    \"sourceUrl\": \"https://example.com/product.jpg\",\n    \"textPrompt\": \"将背景更换为更高级的木质桌面场景，保留产品主体不变\",\n    \"replaceImageUrl\": \"https://example.com/wood-scene.jpg\"\n  }'\n```\n\n## 常见错误及解决方案\n| 错误 | 原因与解决 |\n|------|-----------|\n| HTTP 401 / `code` 非 200 | `secretKey` 无效、缺失或已过期，确认请求头是否正确传入 |\n| HTTP 405 Not Allowed | 请求方法错误，必须使用 `POST` |\n| `sourceUrl` 无法访问 | 原图 URL 不是公网直链、已过期，或源站限制访问 |\n| `textPrompt` 过于模糊 | 提示词没有说明要修改的区域或目标效果，应补充“改哪里、改成什么” |\n| `replaceImageUrl` 无法访问 | 参考图 URL 无效或不可公开访问，去掉该字段或更换可访问链接 |\n| 重绘结果偏差较大 | 提示词不够具体，可补充材质、颜色、构图、保留元素等约束 |\n| 请求超时 | 源图较大或处理复杂时，可适当增大超时时间 |\n\n## 提示词处理\n该接口接收自然语言提示词，`textPrompt` 的质量会直接影响结果。\n\n执行时应遵循：\n\n1. 明确保留项：主体、品牌标识、材质、构图等不应被误改的内容\n2. 明确修改项：背景、局部文案、某个物体、某种颜色或纹理\n3. 有参考图时再传 `replaceImageUrl`\n4. 若用户只说“帮我改一下图”，应先补足最少必要信息，再调用接口\n\n当用户目标是“小范围替换”时，提示词应避免写成整张图重做；当用户目标是“换背景”时，应在 `textPrompt` 中强调保留主体不变。\n\nFile v1.0.1:_meta.json\n\n{\n  \"ownerId\": \"kn7fp1zsg4nwdq826y0awapkks84fkq1\",\n  \"slug\": \"flyelep-partial-redrawing\",\n  \"version\": \"1.0.1\",\n  \"publishedAt\": 1777252575786\n}\n\nArchive v1.0.0: 2 files, 2926 bytes\n\nFiles: SKILL.md (5460b), _meta.json (144b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: partial-redrawing\ndescription: >-\n  通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。\n  当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。\n---\n# Flyelep 局部重绘\n通过 Flyelep AI Tool API 对图片指定区域进行局部重绘，并返回重绘后的新图片 URL。\n\n**重要：这是一个 HTTP API 调用技能。必须通过 HTTP POST 请求调用 API 接口，禁止通过浏览器访问 Flyelep 网站。**\n\n## API 接口信息\n- **URL**: `POST https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing`\n- **Content-Type**: `application/json`\n- **认证方式**: 在请求头中传入 `secretKey`\n- **超时时间**: 建议 120-300 秒\n\n## 认证方式\n所有 AI 工具接口均需在请求头中传入 `secretKey`。该密钥需由用户在 Flyelep 开放平台申请获得。\n\n请求头示例：\n\n```http\nContent-Type: application/json\nsecretKey: 用户提供的API密钥\n```\n\n> **安全说明**：`secretKey` 必须放在请求头中，这是 AI 工具接口的统一鉴权要求。不要将真实密钥写入技能文件、示例代码仓库或持久化配置中，应在运行时由用户动态提供。\n\n## 请求 Body\n```json\n{\n  \"sourceUrl\": \"https://example.com/original.jpg\",\n  \"textPrompt\": \"将背景替换为夏日海滩\",\n  \"replaceImageUrl\": \"https://example.com/reference.jpg\"\n}\n```\n\n## 响应格式\n统一响应结构：\n\n```json\n{\n  \"code\": 200,\n  \"msg\": \"操作成功\",\n  \"data\": \"https://example.com/redrawn.jpg\"\n}\n```\n\n- `code=200` 表示调用成功\n- `msg` 为接口返回说明\n- `data` 为重绘后的图片 URL\n\n返回结果应直接展示给用户，不要回读图片内容。\n\n## 参数说明\n### 必传参数\n| 字段 | 默认值 | 说明 |\n|------|--------|------|\n| sourceUrl | - | 原图链接 |\n| textPrompt | - | 用户提示词，用于描述重绘内容 |\n\n### 可选参数\n| 字段 | 默认值 | 说明 |\n|------|--------|------|\n| replaceImageUrl | - | 参考替换图片链接 |\n\n## 参数映射规则\n### sourceUrl\n- 传入待重绘原图的公网可访问 URL\n- 必须是图片直链，不要传网页地址\n\n### textPrompt\n- 直接描述要重绘的内容、目标风格和替换效果\n- 应尽量明确“改哪里、改成什么、保留什么”\n- 优先保留用户原始意图，不要无故扩写成完全不同的需求\n\n推荐写法示例：\n\n- `将背景替换为纯白背景，保留商品主体和阴影`\n- `将杯子上的图案改为蓝色几何纹理，保留杯身材质`\n- `把右上角的文字替换为英文促销文案，整体风格保持简洁`\n\n### replaceImageUrl\n- 当用户提供明确的参考替换图时再传入\n- 适合用于“把某一区域替换成参考图风格或内容”的场景\n- 用户未提供参考图时，不传此字段\n\n> **说明**：文档描述中提到“基于掩码图对图片指定区域进行局部重绘”，但当前参数表仅列出 `sourceUrl`、`textPrompt`、`replaceImageUrl`，没有单独的掩码字段。因此本 skill 按文档可见参数执行，不额外构造 mask 参数。\n\n## 调用示例\n**仅通过文字提示进行局部重绘：**\n\n```bash\ncurl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"secretKey: 你的密钥\" \\\n  --max-time 300 \\\n  -d '{\n    \"sourceUrl\": \"https://example.com/original.jpg\",\n    \"textPrompt\": \"将背景替换为夏日海滩\"\n  }'\n```\n\n**结合参考图进行局部替换：**\n\n```bash\ncurl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"secretKey: 你的密钥\" \\\n  --max-time 300 \\\n  -d '{\n    \"sourceUrl\": \"https://example.com/product.jpg\",\n    \"textPrompt\": \"将背景更换为更高级的木质桌面场景，保留产品主体不变\",\n    \"replaceImageUrl\": \"https://example.com/wood-scene.jpg\"\n  }'\n```\n\n## 常见错误及解决方案\n| 错误 | 原因与解决 |\n|------|-----------|\n| HTTP 401 / `code` 非 200 | `secretKey` 无效、缺失或已过期，确认请求头是否正确传入 |\n| HTTP 405 Not Allowed | 请求方法错误，必须使用 `POST` |\n| `sourceUrl` 无法访问 | 原图 URL 不是公网直链、已过期，或源站限制访问 |\n| `textPrompt` 过于模糊 | 提示词没有说明要修改的区域或目标效果，应补充“改哪里、改成什么” |\n| `replaceImageUrl` 无法访问 | 参考图 URL 无效或不可公开访问，去掉该字段或更换可访问链接 |\n| 重绘结果偏差较大 | 提示词不够具体，可补充材质、颜色、构图、保留元素等约束 |\n| 请求超时 | 源图较大或处理复杂时，可适当增大超时时间 |\n\n## 提示词处理\n该接口接收自然语言提示词，`textPrompt` 的质量会直接影响结果。\n\n执行时应遵循：\n\n1. 明确保留项：主体、品牌标识、材质、构图等不应被误改的内容\n2. 明确修改项：背景、局部文案、某个物体、某种颜色或纹理\n3. 有参考图时再传 `replaceImageUrl`\n4. 若用户只说“帮我改一下图”，应先补足最少必要信息，再调用接口\n\n当用户目标是“小范围替换”时，提示词应避免写成整张图重做；当用户目标是“换背景”时，应在 `textPrompt` 中强调保留主体不变。\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn7fp1zsg4nwdq826y0awapkks84fkq1\",\n  \"slug\": \"flyelep-partial-redrawing\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1776674838882\n}","readmeExcerpt":"Skill: partial-redrawing Owner: flyelepai Summary: 通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。 当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。 Tags: latest:1.0.4 Version history: v1.0.4 | 2026-08-28T03:11:33.757Z | user - Expanded API参数支持，新增 maskDataUrl、modelType（字符串类型）、languageType 等可选参数，详细说明参数映射与用法。 - 增补“本地文件上传”全流程说明，包括 curl 多平台用法、返回结构与错误处理。 - 明确支持多种模型类型的指定，并更新调用说明和注意事项（如 modelType 必须为字符串）。 - 完善执行流程，强调必须向用户索取 secre","codeSnippets":[],"executableExamples":[{"language":"http","snippet":"Content-Type: application/json\nsecretKey: 用户提供的API密钥"},{"language":"json","snippet":"{\n  \"sourceUrl\": \"https://example.com/original.jpg\",\n  \"textPrompt\": \"将背景替换为夏日海滩\",\n  \"replaceImageUrl\": \"https://example.com/reference.jpg\"\n}"},{"language":"json","snippet":"{\n  \"code\": 200,\n  \"msg\": \"操作成功\",\n  \"data\": \"https://example.com/redrawn.jpg\"\n}"},{"language":"json","snippet":"{\n  \"code\": 200,\n  \"msg\": null,\n  \"data\": {\n    \"relativePath\": \"cos_ai_agent/2026-08-11/3f2a9c1b7d84e6f5a012.png\",\n    \"fullPath\": \"https://agent-1404002717.cos.ap-guangzhou.myqcloud.com/cos_ai_agent/2026-08-11/3f2a9c1b7d84e6f5a012.png\",\n    \"serviceProvider\": null\n  }\n}"},{"language":"bash","snippet":"curl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/file/upload\" -H \"secretKey: 你的密钥\" --max-time 120 -F \"file=@./product.png\""},{"language":"bash","snippet":"# Windows/PowerShell（用 curl.exe，PowerShell 里的 curl 是 Invoke-WebRequest 的别名）\ncurl.exe -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/file/upload\" -H \"secretKey: 你的密钥\" --max-time 120 -F \"file=@C:/path/to/product.png\"\n\n# macOS/Linux\ncurl -X POST \"https://www.flyelep.cn/prod-api/poster-design/api/v1/file/upload\" -H \"secretKey: 你的密钥\" --max-time 120 -F \"file=@./product.png\""}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: partial-redrawing\ndescription: >-\n  通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。\n  当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。\n---\n# Flyelep 局部重绘\n\n通过 Flyelep AI Tool API 对图片指定区域进行局部重绘，并返回重绘后的新图片 URL。\n\n**重要：这是一个 HTTP API 调用技能。必须通过 HTTP POST 请求调用 API 接口，禁止通过浏览器访问 Flyelep 网站。**\n\n## API 接口信息\n\n- **URL**: `POST https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing`\n- **Content-Type**: `application/json`\n- **认证方式**: 在请求头中传入 `secretKey`（密钥需由用户在 Flyelep 开放平台申请：https://www.flyelep.cn/controlboard）\n- **超时时间**: 建议 120-300 秒\n\n请求头示例：\n\n```http\nContent-Type: application/json\nsecretKey: 用户提供的API密钥\n```\n\n> **安全说明**：不要将真实密钥写入技能文件、示例代码仓库或持久化配置中，应在运行时由用户动态提供。\n\n## 请求 Body\n\n```json\n{\n  \"sourceUrl\": \"https://example.com/original.jpg\",\n  \"textPrompt\": \"将背景替换为夏日海滩\",\n  \"replaceImageUrl\": \"https://example.com/reference.jpg\"\n}\n```\n\n## 响应格式\n\n```json\n{\n  \"code\": 200,\n  \"msg\": \"操作成功\",\n  \"data\": \"https://example.com/redrawn.jpg\"\n}\n```\n\n- `code=200` 表示调用成功\n- `msg` 为接口返回说明\n- `data` 为重绘后的图片 URL\n- 返回结果应直接展示给用户，不要回读图片内容\n\n## 参数说明\n\n### 必传参数\n\n> **重要**：以下必传参数必须通过询问用户获取，agent 不可自行填写。调用本技能时，应先向用户列出必传参数与可选参数表格，由用户确认或提供后再执行。\n\n| 字段 | 默认值 | 说明 |\n|------|--------|------|\n| sourceUrl | - | 原图链接 |\n| textPrompt | - | 用户提示词，用于描述重绘内容 |\n\n### 可选参数\n\n| 字段 | 默认值 | 说明 |\n|------|--------|------|\n| replaceImageUrl | - | 参考替换图片链接 |\n| maskDataUrl | - | 掩码图链接，用于限定重绘区域 |\n| modelType | `\"0\"` | 模型类型，字符串：`\"0\"`=gemini-2.5，`\"2\"`=gemini-3.1，`\"9\"`=Flyelep Image 2 |\n| languageType | - | 语言类型，用于约束重绘文案的语种 |\n\n### 参数映射规则\n\n**sourceUrl**：\n- 传入待重绘原图的公网可访问 URL\n- 必须是图片直链，不要传网页地址\n- 如果用户提供本地文件路径，先按「本地文件上传」章节换取公网直链，再填入此参数\n\n**textPrompt**：\n- 直接描述要重绘的内容、目标风格和替换效果\n- 应尽量明确“改哪里、改成什么、保留什么”\n- 优先保留用户原始意图，不要无故扩写成完全不同的需求\n\n推荐写法示例：\n\n- `将背景替换为纯白背景，保留商品主体和阴影`\n- `将杯子上的图案改为蓝色几何纹理，保留杯身材质`\n- `把右上角的文字替换为英文促销文案，整体风格保持简洁`\n\n**replaceImageUrl**：\n- 当用户提供明确的参考替换图时再传入\n- 适合用于“把某一区域替换成参考图风格或内容”的场景\n- 用户未提供参考图时，不传此字段\n- 如果用户提供本地文件路径，先按「本地文件上传」章节换取公网直链，再填入此参数\n\n**maskDataUrl**：\n- 掩码图链接，白色区域表示要重绘的部分\n- 不传时由模型依据 `textPrompt` 自行判断重绘范围，因此提示词要写清\"改哪里\"\n- 只有用户已经有现成掩码图时才需要传，agent 不要自己构造掩码\n\n**modelType**：\n- 该字段是**字符串**，不是数字，例如 `\"0\"`\n- `\"0\"`：gemini-2.5（默认）\n- `\"2\"`：gemini-3.1，按 3.1 档计费\n- `\"9\"`：Flyelep Image 2，计费按 3.1 档处理，实际模型由工作流路由\n- 不传时服务端按 `\"0\"` 处理；不要显式传 `null`，会导致解析失败\n\n## 本地文件上传\n\n用户提供的是本地文件路径而不是公网直链时，先把文件上传换取直链，再调用本接口。已安装 `file-upload` 技能时以该技能为准；未安装时按下面的说明直接调用上传接口。\n\n- **URL**: `POST https://www.flyelep.cn/prod-api/poster-design/api/v1/file/upload`\n- **请求方式**: `multipart/form-data`，文件字段名固定为 `file`，单次只能上传一个文件，多个文件并发调用多次\n- **认证方式**: 请求头传 `secretKey`，与本技能使用同一个密钥\n- **超时时间**: 图片建议 60-120 秒\n- **不要手动设置 `Content-Type` 请求头**，让 HTTP 客户端自动生成带 boundary 的值，手写会导致服务端解析失败\n- 图片仅支持 `bmp`、`gif`、`jpg`、`jpeg`、`png`，`webp` 需先转成 `png` 或 `jpg`；文件名必须带正确后缀，服务端靠它判断格式\n- 原文件名不会出现在 URL 里，中文名、空格、特殊字符都能直接上传，不需要提前改名\n- 上传不消耗算力，但服务端不做去重：同一个文件在一次任务里只上传一次，记下 `fullPath` 复用\n\n成功响应取 `data.fullPath` 作为公网直链，永久有效、不带签名：\n\n```json\n{\n  \"code\": 200,\n  \"msg\": null,\n  \"data\": {\n    \"relativePath\": \"cos_ai_agent/2026-08-11/3f2a9c1b7d84e6f5a012.png\",\n    \"fullPath\": \"https://agent-140"},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7fp1zsg4nwdq826y0awapkks84fkq1\",\n  \"slug\": \"flyelep-partial-redrawing\",\n  \"version\": \"1.0.4\",\n  \"publishedAt\": 1787886693757\n}"},{"path":"skill-card.md","content":"## Description:\n\nUses the Flyelep AI Tool API to redraw selected regions of an image from a source image URL, text prompt, and optional reference or mask image.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[flyelepai](https://clawhub.ai/user/flyelepai)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nExternal users and developers use this skill to perform localized image edits, such as replacing backgrounds or modifying a specific region while preserving the main subject.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: Local images supplied for editing may be uploaded to Flyelep and exposed through permanent public links without a clear deletion path.\n\nMitigation: Ask for explicit user acceptance before uploading local files, and avoid identity documents, private photos, confidential designs, regulated data, or other sensitive images unless the user accepts that exposure.\n\nRisk: The Flyelep secretKey could be exposed if written into files, examples, repositories, or logs.\n\nMitigation: Request the API key only at runtime, pass it in request headers, and do not persist it in skill files, configuration, examples, or shared logs.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/flyelepai/skills/flyelep-partial-redrawing)\n- [Flyelep partial redrawing API endpoint](https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/partialRedrawing)\n- [Flyelep file upload API endpoint](https://www.flyelep.cn/prod-api/poster-design/api/v1/file/upload)\n- [Flyelep control board](https://www.flyelep.cn/controlboard)\n\n## Skill Output:\n\n**Output Type(s):** [API Calls, Shell commands, Configuration instructions, Guidance]\n\n**Output Format:** [Markdown with JSON and shell command examples]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Returns the redrawn image URL from the Flyelep API and instructs the agent not to read back image contents.]\n\n## Skill Version(s):\n\n1.0.4 (source: release evidence)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment."}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。 当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。 Skill: partial-redrawing Owner: flyelepai Summary: 通过 Flyelep AI 工具接口对图片局部区域进行重绘，可结合文本提示词和参考替换图生成新图。 当用户要求局部修改图片、替换背景、替换某个区域内容、保留主体仅改局部时使用此技能。 Tags: latest:1.0.4 Version history: v1.0.4 | 2026-08-28T03:11:33.757Z | user - Expanded API参数支持，新增 maskDataUrl、modelType（字符串类型）、languageType 等可选参数，详细说明参数映射与用法。 - 增补“本地文件上传”全流程说明，包括 curl 多平台用法、返回结构与错误处理。 - 明确支持多种模型类型的指定，并更新调用说明和注意事项（如 modelType 必须为字符串）。 - 完善执行流程，强调必须向用户索取 secre","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":816,"uniquenessScore":59,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-11T06:41:47.279Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-11T06:41:47.279Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-11T10:50:12.809Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}