← Back to Skills Marketplace
flyelepai

intelligent-extension

by flyelep · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
172
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install flyelep-intelligent-extension
Description
通过 Flyelep AI 工具接口对图片进行智能延展,支持批量处理并指定目标比例。 当用户要求扩图、延展图片边缘、补全画布、适配 16:9/1:1 等比例时使用此技能。
README (SKILL.md)

Flyelep 图片智能延展

通过 Flyelep AI Tool API 对一张或多张图片进行智能延展。 重要:这是一个 HTTP API 调用技能。必须通过 HTTP POST 请求调用 API 接口,禁止通过浏览器访问 Flyelep 网站。

API 接口信息

  • URL: POST https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/intelligentExtension
  • Content-Type: application/json
  • 认证方式: 在请求头中传入 secretKey
  • 超时时间: 建议 120-300 秒(批量图片处理可能耗时更长)

认证方式

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

请求头示例:

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

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

请求 Body

{
  "imgUrlList": [
    "https://example.com/image1.jpg",
    "https://example.com/image2.jpg"
  ],
  "ratio": "16:9"
}

响应格式

统一响应结构:

{
  "code": 200,
  "msg": "操作成功",
  "data": [
    "https://example.com/result1.jpg",
    "https://example.com/result2.jpg"
  ]
}
  • code=200 表示调用成功
  • msg 为接口返回说明
  • data 为延展后的图片 URL 数组,与 imgUrlList 的输入顺序一致

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

参数说明

必传参数

字段 默认值 说明
imgUrlList - 源图片 URL 列表,支持批量传入多张图片
ratio - 目标延展比例

参数映射规则

ratio(目标比例)

仅支持以下比例:

  • 1:1
  • 2:3
  • 3:2
  • 3:4
  • 4:3
  • 9:16
  • 16:9
  • 21:9

当用户明确指定目标比例时,原样传入 ratio

当用户仅表达“改成横版”或“适配视频封面”等模糊需求时,可按上下文推断最合理的比例:

  • 横版内容优先考虑 16:9
  • 方图内容优先考虑 1:1
  • 竖版内容优先考虑 9:16

如果上下文不足以安全推断,先向用户确认目标比例。

调用示例

单张图片延展为横版 16:9:

curl -X POST "https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/intelligentExtension" \
  -H "Content-Type: application/json" \
  -H "secretKey: 你的密钥" \
  --max-time 300 \
  -d '{
    "imgUrlList": [
      "https://example.com/image1.jpg"
    ],
    "ratio": "16:9"
  }'

批量图片延展为方图 1:1:

curl -X POST "https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/aiTool/intelligentExtension" \
  -H "Content-Type: application/json" \
  -H "secretKey: 你的密钥" \
  --max-time 300 \
  -d '{
    "imgUrlList": [
      "https://example.com/image1.jpg",
      "https://example.com/image2.jpg"
    ],
    "ratio": "1:1"
  }'

常见错误及解决方案

错误 原因与解决
HTTP 401 / code 非 200 secretKey 无效、缺失或已过期,确认请求头是否正确传入密钥
HTTP 405 Not Allowed 请求方法错误,必须使用 POST
imgUrlList 为空 至少传入一张待处理图片 URL
比例不支持 ratio 只能使用接口支持的固定枚举值
处理超时 批量图片较多或源图较大时可适当增大超时时间
返回数组数量异常 先核对源图 URL 是否可访问,再重试请求

提示词处理

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

执行时只需要:

  1. 收集用户提供的图片 URL 列表
  2. 确定目标比例 ratio
  3. 在请求头中传入 secretKey
  4. 调用接口并按输入顺序展示返回的图片 URL

保留用户原始图片顺序,不要擅自重排 imgUrlList

Usage Guidance
This skill appears to do what it says: call Flyelep's HTTP API to extend images. Before installing or using it, consider: (1) Privacy — the skill sends image URLs to an external service (https://www.flyelep.cn). Do not submit images containing private or sensitive data unless you trust the service and its policies. (2) API key handling — the SKILL.md requires a 'secretKey' header at runtime but the skill metadata does not declare a stored credential; supply the key dynamically and do not embed it in skill files. (3) Local files — if your images are not already hosted at public URLs, decide how you'll upload them to a reachable URL before invoking the skill (the instructions don’t cover this). (4) Test carefully using non-sensitive images first, and verify Flyelep's terms/privacy policy and that responses are as expected. If you need the agent to operate autonomously, be aware it could call this API without further prompts — consider restricting autonomous invocation or monitoring requests.
Capability Analysis
Type: OpenClaw Skill Name: flyelep-intelligent-extension Version: 1.0.2 The skill bundle is a legitimate integration for the Flyelep AI image extension API. It provides clear instructions for the AI agent to perform HTTP POST requests to a specific endpoint (flyelep.cn) using a user-provided API key, with no evidence of data exfiltration, malicious execution, or prompt injection attacks.
Capability Assessment
Purpose & Capability
The name/description and SKILL.md consistently describe calling Flyelep's intelligentExtension HTTP API to extend images and adjust aspect ratios. Nothing in the instructions requires unrelated services or system-level access. The file correctly documents the API endpoint, expected request/response, and that a secretKey header must be supplied at runtime.
Instruction Scope
The instructions are narrowly scoped to collecting image URLs, the target ratio, and POSTing to the Flyelep endpoint. They explicitly tell the agent not to persist the secretKey. Important operational gaps: (1) the skill assumes images are available via public URLs — it gives no guidance for handling local files (uploading them to a reachable URL), (2) it will send image data (via URLs) to an external domain (flyelep.cn), which inherently carries data-exfiltration/privacy risk if images contain sensitive information.
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest-risk install profile (no code written to disk).
Credentials
The SKILL.md requires a runtime 'secretKey' in the HTTP header but the registry metadata lists no required environment variables or primary credential. This is not necessarily malicious (author advises dynamic provision of the key and not to embed it), but there is a minor metadata mismatch: the skill does require a credential at runtime even though none are declared in the skill metadata.
Persistence & Privilege
always is false and the skill does not request persistent or system-wide privileges. It does not ask to modify other skills or agent configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install flyelep-intelligent-extension
  3. After installation, invoke the skill by name or use /flyelep-intelligent-extension
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- 修订认证方式说明,明确 Flyelep 开放平台的链接增加了空格符。 - 文档其余内容与前一版本保持一致,无功能或参数变更。
v1.0.1
- 添加了 Flyelep 密钥申请平台的官方地址链接(https://www.flyelep.cn/controlboard)。 - 文档其余内容保持一致,无其他功能或接口更改。
v1.0.0
Flye 图片智能延展技能首发版本: - 支持通过 Flyelep API 批量智能延展图片,用户可指定目标比例。 - 只支持固定枚举比例,如 16:9、1:1、9:16 等。 - 需由用户提供图片 URL 列表和 secretKey 进行 API 验证。 - 返回延展后的图片 URL,严格保持输入顺序。 - 明确参数规则、常见错误处理及调用示例,有助于用户快速上手。
Metadata
Slug flyelep-intelligent-extension
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is intelligent-extension?

通过 Flyelep AI 工具接口对图片进行智能延展,支持批量处理并指定目标比例。 当用户要求扩图、延展图片边缘、补全画布、适配 16:9/1:1 等比例时使用此技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 172 downloads so far.

How do I install intelligent-extension?

Run "/install flyelep-intelligent-extension" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is intelligent-extension free?

Yes, intelligent-extension is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does intelligent-extension support?

intelligent-extension is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created intelligent-extension?

It is built and maintained by flyelep (@flyelepai); the current version is v1.0.2.

💬 Comments