← 返回 Skills 市场
flyelepai

generate-poster

作者 flyelep · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
140
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install flyelep-generate-poster
功能描述
通过 Flyelep API 生成电商产品主图和详情图海报。 当用户要求生成产品图、电商海报、Amazon 商品图、详情页图片时使用此技能。
使用说明 (SKILL.md)

Flyelep 电商海报生图

通过 Flyelep AI API 生成电商产品主图和详情图海报。 重要:这是一个 HTTP API 调用技能。必须通过 HTTP POST 请求调用 API 接口,禁止通过浏览器访问 Flyelep 网站。

API 接口信息

  • URL: POST https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/generate
  • Content-Type: application/json
  • 超时时间: 建议 300-600 秒(生图需要较长时间)

认证方式

在请求 JSON body 的 secretKey 字段中传入 API 密钥。用户需在 Flyelep 平台(https://www.flyelep.cn)获取密钥。

安全说明:将 secretKey 放在 JSON body 中是 Flyelep API 的设计要求,该 API 不支持 header 认证方式。API 密钥仅在请求时传递给 Flyelep 服务器,不存储在技能代码中。请勿将真实的密钥直接写在示例代码中,运行时由用户动态提供。

请求 Body

{
  "query": "生图需求描述,最多1000个字符",
  "generateType": 200,
  "posterType": 5,
  "platformType": "amazon",
  "languageType": "英文",
  "detailPictureNumber": 10,
  "modelEdition": 3,
  "needText": true,
  "secretKey": "用户提供的API密钥",
  "fileUrlList": ["https://example.com/product.png"],
  "aspectRatio": "1:1"
}

响应格式

成功:

{
  "code": 200,
  "data": "https://xxx.com/image1.png;https://xxx.com/image2.png;"
}

data 中多张图片 URL 以分号 ; 分隔。将分号分隔的 URL 拆分后逐个展示给用户,不要回读图片内容。 失败:

{
  "code": 500,
  "msg": "错误信息"
}

参数说明

必传参数

字段 默认值 说明
query - 生图需求描述,最多1000个字符
generateType 200 100=产品单图,200=产品详情图
posterType 5 5=跨境电商,6=中文电商
platformType amazon 电商平台(见下方映射表)
languageType 英文 生成图片上的文案语种
detailPictureNumber 10 产品单图固定为1;详情图可选5、10、15
modelEdition 3 2=Flyelep 2.0,3=Flyelep 3.0
needText true 图片上是否包含文案
secretKey - API 密钥

可选参数

字段 默认值 说明
fileUrlList - 参考图片 URL 数组,最多6张
aspectRatio 随机 图片比例:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9、21:9

参数映射规则

platformType(电商平台)

  • 跨境电商:amazonTemuShopeeTikTok ShopAliExpressOZON
  • 中文电商:淘宝京东拼多多1688小红书

languageType(文案语种)

  • 跨境:英文、俄语、日语、韩语、阿拉伯语、德语、西班牙语、法语、泰语、马来语、越南语、葡萄牙语、菲律宾语、印尼语、意大利语、荷兰语、波兰语、中文繁体
  • 中文:中文简体

posterType(海报类型)

根据市场区域选择,再搭配 modelEdition:

  • 跨境电商 → posterType=5
  • 中文电商 → posterType=6

aspectRatio(图片比例)

  • 正方形:1:1
  • 横版:3:24:316:921:9
  • 竖版:2:33:44:55:49:16
  • 未提及比例 → 不传此字段(API 自动随机选择)

detailPictureNumber(图片数量)

  • 产品单图(generateType=100):固定为 1
  • 产品详情图(generateType=200):51015

调用示例

生成产品主图(跨境电商,Amazon):

curl -X POST "https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/generate" \
  -H "Content-Type: application/json" \
  --max-time 600 \
  -d '{
    "query": "为这个蓝牙耳机生成一张白底产品主图",
    "generateType": 100,
    "posterType": 5,
    "platformType": "amazon",
    "languageType": "英文",
    "detailPictureNumber": 1,
    "modelEdition": 3,
    "needText": true,
    "secretKey": "你的密钥"
  }'

生成产品详情图(带参考图):

curl -X POST "https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/generate" \
  -H "Content-Type: application/json" \
  --max-time 600 \
  -d '{
    "query": "根据上传的图片生成对应的产品图",
    "generateType": 200,
    "posterType": 5,
    "platformType": "amazon",
    "languageType": "英文",
    "detailPictureNumber": 5,
    "modelEdition": 3,
    "needText": true,
    "secretKey": "你的密钥",
    "fileUrlList": ["https://example.com/product1.png", "https://example.com/product2.png"],
    "aspectRatio": "1:1"
  }'

中文电商主图(淘宝,中文简体):

curl -X POST "https://www.flyelep.cn/prod-api/poster-design/api/v1/poster/generate" \
  -H "Content-Type: application/json" \
  --max-time 600 \
  -d '{
    "query": "为这款智能手表生成一张电商主图,突出科技感",
    "generateType": 100,
    "posterType": 6,
    "platformType": "淘宝",
    "languageType": "中文简体",
    "detailPictureNumber": 1,
    "modelEdition": 3,
    "needText": true,
    "secretKey": "你的密钥",
    "aspectRatio": "1:1"
  }'

常见错误及解决方案

错误 原因与解决
HTTP 405 Not Allowed URL 路径错误,确保包含 /prod-api 前缀
code 500 "当前并发请求过多" 服务繁忙,稍后重试
HTTP 401 密钥无效或已过期,在 Flyelep 平台重新生成
请求超时 生图最多需要5分钟,增大超时时间
data 为空 生图任务在排队中,稍后重试
描述超过1000字符 缩短 query 内容

提示词处理

基于参考图生成: 将用户的产品描述传入 query,通过 fileUrlList 附上参考图片 URL。仅在描述明显不足时才优化。 无参考图生成:query 中描述产品、风格和构图。 保留用户的创意意图。当用户描述模糊时,根据上下文(平台、语言等)推断合理的默认值。

安全使用建议
This skill is an instruction-only wrapper for Flyelep's poster-generation API. Before using it: (1) confirm you trust https://www.flyelep.cn because your API key (secretKey) will be transmitted in the request body to that service; (2) never paste your real key into chat or example fields — provide it at runtime and avoid logging it; (3) if you need to include product images, note the API expects publicly accessible file URLs (anyone with the URL can fetch them), so avoid exposing private images unless you host them securely; (4) consider rotating the API key after use and review Flyelep's privacy/retention policy if you send sensitive product data. Overall the skill is coherent with its stated purpose.
功能分析
Type: OpenClaw Skill Name: flye-generate-poster Version: 1.0.0 The skill bundle 'flye-generate-poster' is a legitimate integration for the Flyelep AI service (flyelep.cn) used to generate e-commerce images. The SKILL.md file provides clear instructions for the agent to perform HTTP POST requests to the official API endpoint. While the API requires the 'secretKey' to be passed within the JSON body, the documentation explicitly identifies this as an API design requirement and instructs the agent to obtain the key dynamically from the user rather than hardcoding it. There are no indicators of data exfiltration, unauthorized execution, or malicious prompt injection.
能力评估
Purpose & Capability
Name/description match the instructions: the SKILL.md only describes POSTing JSON to Flyelep's poster/generate endpoint to produce e‑commerce images. It does not request unrelated services, binaries, or system access.
Instruction Scope
Runtime instructions are narrowly scoped to constructing and sending API requests, handling the semicolon-delimited response URLs, and presenting generated images. The doc does not instruct reading arbitrary local files, system credentials, or exfiltrating other data. It explicitly warns not to embed real keys in examples.
Install Mechanism
Instruction-only skill with no install steps or downloaded code, so nothing is written to disk or installed by the skill itself.
Credentials
The skill does not declare environment variables but requires the Flyelep API key to be supplied at runtime in the JSON body (documented). Supplying an API key to the remote service is expected; users should be aware the key is sent to Flyelep and must trust that service.
Persistence & Privilege
always is false and there are no install-time persistence actions. The skill does not request to modify other skills or global agent config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install flyelep-generate-poster
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /flyelep-generate-poster 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the "generate-poster" skill for creating e-commerce product posters and detail images via the Flyelep API. - Supports both cross-border and Chinese e-commerce platforms (e.g., Amazon, 淘宝) with multiple languages and poster types. - Allows detailed customization with various parameters, including reference images, text inclusion, aspect ratios, and platform-specific options. - Secure API key handling: keys are transmitted in the JSON body as required by the Flyelep API. - Comprehensive documentation included for API usage, parameter mapping, error handling, and usage examples.
元数据
Slug flyelep-generate-poster
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

generate-poster 是什么?

通过 Flyelep API 生成电商产品主图和详情图海报。 当用户要求生成产品图、电商海报、Amazon 商品图、详情页图片时使用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 140 次。

如何安装 generate-poster?

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

generate-poster 是免费的吗?

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

generate-poster 支持哪些平台?

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

谁开发了 generate-poster?

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

💬 留言讨论