← 返回 Skills 市场
flyelepai

image-clarity-enhance

作者 flyelep · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
182
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install flyelep-image-clarity-enhance
功能描述
通过 Flyelep AI 工具接口增强图片清晰度,支持单张或批量处理。 当用户要求做 AI 超清、提升图片清晰度、批量增强模糊图片时使用此技能。
使用说明 (SKILL.md)

Flyelep AI超清

通过 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/imageClarityEnhance
  • Content-Type: application/json
  • 认证方式: 在请求头中传入 secretKey
  • 超时时间: 建议 120-300 秒

认证方式

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

请求头示例:

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

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

请求 Body

{
  "imgUrls": "https://example.com/img1.jpg,https://example.com/img2.jpg",
  "enhanceStrength": "light"
}

响应格式

统一响应结构:

{
  "code": 200,
  "msg": "操作成功",
  "data": "https://example.com/clear1.jpg,https://example.com/clear2.jpg"
}
  • code=200 表示调用成功
  • msg 为接口返回说明
  • data 为超清后的图片地址
  • 多张图片时,data 中多个 URL 以英文逗号 , 分隔

返回结果应按逗号拆分后逐个展示给用户,不要回读图片内容。

参数说明

必传参数

字段 默认值 说明
imgUrls - 多张图片链接字符串,英文逗号分隔
enhanceStrength - 增强强度:lightstandardstrong

参数映射规则

imgUrls

  • 接口要求传字符串,不是数组
  • 单张图片时直接传一个 URL 字符串
  • 多张图片时,用英文逗号 , 按顺序拼接
  • 每个链接都应为公网可访问的图片直链,不要传网页地址

enhanceStrength

  • light:轻度增强
  • standard:标准增强
  • strong:强力增强

推荐默认规则:

  • 用户未指定增强强度时,默认传 light
  • 用户强调“尽量自然、轻微增强”时,传 light
  • 用户强调“尽可能清晰、强力修复”时,传 strong

图片规格限制

文档明确要求源图满足以下限制:

  • 格式仅支持:JPGPNGBMP
  • 最短边不低于 10px
  • 最长边不超过 5000px
  • 长宽比不超过 4:1
  • 文件大小不超过 8MB

如果任一条件不满足,接口可能报错或处理失败。

调用示例

单张图片标准超清:

curl -X POST "https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/imageClarityEnhance" \
  -H "Content-Type: application/json" \
  -H "secretKey: 你的密钥" \
  --max-time 300 \
  -d '{
    "imgUrls": "https://example.com/img1.jpg",
    "enhanceStrength": "standard"
  }'

批量图片轻度超清:

curl -X POST "https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/imageClarityEnhance" \
  -H "Content-Type: application/json" \
  -H "secretKey: 你的密钥" \
  --max-time 300 \
  -d '{
    "imgUrls": "https://example.com/img1.jpg,https://example.com/img2.jpg",
    "enhanceStrength": "light"
  }'

常见错误及解决方案

错误 原因与解决
HTTP 401 / code 非 200 secretKey 无效、缺失或已过期,确认请求头是否正确传入
HTTP 405 Not Allowed 请求方法错误,必须使用 POST
imgUrls 格式错误 该字段必须是字符串,多张图用英文逗号分隔,不是 JSON 数组
图片 URL 无法访问 传入的链接不是公网直链、已过期,或源站限制访问
enhanceStrength 非法 只支持 lightstandardstrong
图片规格不符合要求 检查格式、尺寸、长宽比和文件大小是否满足文档限制
请求超时 批量图片较多或增强强度较高时,可适当增大超时时间

提示词处理

该接口不接收自然语言提示词,不需要构造额外文案。

执行时只需要:

  1. 收集一张或多张图片 URL
  2. 将多张 URL 用英文逗号拼接为 imgUrls
  3. 根据用户意图选择 enhanceStrength
  4. 确认源图尽量满足规格限制
  5. 在请求头中传入 secretKey
  6. 调用接口并将返回的结果按逗号拆分后逐个展示

当用户只是说“帮我变清晰一点”时,优先使用 light;如果用户已经用过无损放大 skill,但更需要遵守文档里的规格限制和 light/standard/strong 语义,则优先使用此技能。

安全使用建议
This skill is internally consistent, but before installing: (1) Verify Flyelep (www.flyelep.cn) is a service you trust and review its data-retention/privacy policy — images are sent to an external API. (2) Provide the API secretKey at runtime only; do not hard-code or store it in skill files or shared configs. (3) Avoid sending sensitive or private images to the remote service; test with non-sensitive images first. (4) Confirm the HTTPS endpoint and certificate are valid in your environment, and check rate limits/costs on the Flyelep account. (5) If you need local/offline processing for privacy, consider a local tool instead.
能力评估
Purpose & Capability
The name/description match the SKILL.md: the skill documents how to call Flyelep's imageClarityEnhance API to enhance one or multiple images. There are no unrelated binaries, credentials, or installs requested in the package.
Instruction Scope
SKILL.md limits behavior to collecting image URLs, selecting an enhanceStrength, adding a runtime-provided secretKey header, and POSTing JSON to the documented Flyelep endpoint. It does not instruct the agent to read arbitrary files, environment variables, or other system state. Note: SKILL.md explicitly warns not to persist the secretKey and not to return image content, which is appropriate.
Install Mechanism
No install spec and no code files — instruction-only. No downloads or package installs are performed by the skill, minimizing installation risk.
Credentials
The skill does not declare required env vars or primary credentials. It does require a Flyelep 'secretKey' to be provided at runtime (sent in an HTTP header). This is proportionate to the documented API but users must supply the key dynamically — the skill does not and should not persist it.
Persistence & Privilege
always is false and the skill is instruction-only, so it does not request permanent presence or elevated privileges. It does not modify other skills or system config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install flyelep-image-clarity-enhance
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /flyelep-image-clarity-enhance 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- No user-facing changes; documentation was modified with minor formatting (a space added in the platform URL). - Skill functionality and behavior remain unchanged.
v1.0.1
- 更新认证方式文档,新增 Flyelep 开放平台(https://www.flyelep.cn/controlboard)获取 secretKey 的说明 - 其余功能和接口保持不变
v1.0.0
- Initial release of the image-clarity-enhance skill. - Supports enhancing image clarity via the Flyelep AI API, with single or batch image processing. - Allows users to specify enhancement strength (`light`, `standard`, `strong`), with sensible defaults based on user intent. - Enforces strict input requirements: image URLs as comma-separated strings, supported formats, and size constraints. - Requires an API `secretKey` in HTTP request headers for authentication. - Returns enhanced image URLs, which are to be individually displayed to users.
元数据
Slug flyelep-image-clarity-enhance
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

image-clarity-enhance 是什么?

通过 Flyelep AI 工具接口增强图片清晰度,支持单张或批量处理。 当用户要求做 AI 超清、提升图片清晰度、批量增强模糊图片时使用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 182 次。

如何安装 image-clarity-enhance?

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

image-clarity-enhance 是免费的吗?

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

image-clarity-enhance 支持哪些平台?

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

谁开发了 image-clarity-enhance?

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

💬 留言讨论