← 返回 Skills 市场
1688aiinfra

alphashop-image

作者 1688AiInfra · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
132
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install alphashop-image
功能描述
AlphaShop(遨虾)图像处理 API 工具集。支持11个接口:图片翻译、图片翻译PRO、 图片高清放大、图片主题抠图、图片元素识别、图片元素智能消除、图像裁剪、 虚拟试衣(创建+查询)、模特换肤(创建+查询)。 触发场景:图片翻译、翻译图片文字、放大图片、高清放大、抠图、去背景、 检测水印/Logo/文字、...
使用说明 (SKILL.md)

AlphaShop 图像处理

通过 scripts/alphashop_image.py 调用遨虾图像处理 API。

前置配置(必须先完成)

⚠️ 使用本 SKILL 前,必须先配置以下环境变量,否则所有接口调用都会失败。

环境变量 说明 必填 获取方式
ALPHASHOP_ACCESS_KEY AlphaShop API 的 Access Key ✅ 必填 可以访问1688-AlphaShop(遨虾)来申请 https://www.alphashop.cn/seller-center/apikey-management ,直接使用1688/淘宝/支付宝/手机登录即可
ALPHASHOP_SECRET_KEY AlphaShop API 的 Secret Key ✅ 必填 可以访问1688-AlphaShop(遨虾)来申请 https://www.alphashop.cn/seller-center/apikey-management ,直接使用1688/淘宝/支付宝/手机登录即可

⚠️ AlphaShop 接口欠费处理: 如果调用 AlphaShop 接口时返回欠费/余额不足相关的错误,必须立即中断当前流程,提示用户前往 https://www.alphashop.cn/seller-center/home/api-list 购买积分后再继续操作。

配置方式

在 OpenClaw config 中配置:

{
  skills: {
    entries: {
      "alphashop-image": {
        env: {
          ALPHASHOP_ACCESS_KEY: "YOUR_AK",
          ALPHASHOP_SECRET_KEY: "YOUR_SK"
        }
      }
    }
  }
}

如果用户没有提供这些密钥,必须先询问用户获取后再继续操作

命令速查

脚本路径:scripts/alphashop_image.py

同步接口(直接返回结果)

命令 功能 必填参数
translate 图片翻译 --image-url --source-lang --target-lang
translate-pro 图片翻译PRO(源语种可传auto) --image-url --source-lang --target-lang
enlarge 图片高清放大 --image-url
extract-object 主题抠图 --image-url --transparent true/false
detect-elements 元素识别 --image-url
remove-elements 元素智能消除 --image-url + 至少一个消除标记
crop 图像裁剪 --image-url

异步接口(提交任务 → 查询结果)

命令 功能 必填参数
virtual-try-on 创建虚拟试衣任务 --clothes 'URL,TYPE' --count N
query-try-on 查询虚拟试衣结果 --task-id
change-model 创建模特换肤任务 --image-url --model-type --bg-style --age --gender --num
query-change-model 查询模特换肤结果 --task-id

使用示例

# 图片翻译(中文→英文)
python scripts/alphashop_image.py translate \
  --image-url "https://example.com/img.jpg" \
  --source-lang zh --target-lang en

# 图片翻译PRO(自动识别源语种)
python scripts/alphashop_image.py translate-pro \
  --image-url "https://example.com/img.jpg" \
  --source-lang auto --target-lang ru

# 高清放大4倍
python scripts/alphashop_image.py enlarge \
  --image-url "https://example.com/img.jpg" --factor 4

# 抠图(透明底)
python scripts/alphashop_image.py extract-object \
  --image-url "https://example.com/img.jpg" --transparent true

# 抠图(白色背景)
python scripts/alphashop_image.py extract-object \
  --image-url "https://example.com/img.jpg" --transparent false --bg-color "255,255,255"

# 元素识别(检测主体水印+文字,返回OCR)
python scripts/alphashop_image.py detect-elements \
  --image-url "https://example.com/img.jpg" \
  --object-elements 1 3 --return-character

# 消除非主体水印和文字
python scripts/alphashop_image.py remove-elements \
  --image-url "https://example.com/img.jpg" \
  --noobj-watermark 1 --noobj-character 1

# 裁剪到800×800
python scripts/alphashop_image.py crop \
  --image-url "https://example.com/img.jpg" \
  --target-width 800 --target-height 800

# 虚拟试衣(指定模特+上装)
python scripts/alphashop_image.py virtual-try-on \
  --model-images "https://example.com/model.jpg" \
  --clothes "https://example.com/shirt.jpg,tops" --count 1

# 查询虚拟试衣结果
python scripts/alphashop_image.py query-try-on --task-id "abc123"

# 模特换肤(白人青年女性,自然背景)
python scripts/alphashop_image.py change-model \
  --image-url "https://example.com/img.jpg" \
  --model-type WHITE --bg-style NATURE --age YOUTH --gender FEMALE --num 2

# 查询模特换肤结果
python scripts/alphashop_image.py query-change-model --task-id "xyz456"

异步任务流程

虚拟试衣和模特换肤为异步接口:

  1. 调用 virtual-try-onchange-model 提交任务,获得 taskId
  2. 等待几秒后调用 query-try-onquery-change-model 查询结果
  3. 如果任务未完成,等待后重试查询

API 详细文档

完整参数说明见 references/api-docs.md

安全使用建议
This skill appears to be a genuine AlphaShop image-processing client, but there are a few things to check before installing: - Keys required: The script and SKILL.md require ALPHASHOP_ACCESS_KEY and ALPHASHOP_SECRET_KEY. The public registry metadata did NOT declare these — ask the publisher to update the manifest to list required env vars and a primary credential so you know what will be requested up front. - Trust and billing: Supplying the keys lets the skill call the external API and may incur charges. Only use keys you obtained from the official AlphaShop site and consider using limited/billing-restricted credentials if possible. Monitor usage and rotate keys if you stop using the skill. - Data privacy: Images you send (via public URLs) will be fetched/processed by api.alphashop.cn. Do not send sensitive or private images unless you have verified the service's privacy and retention policies. - Endpoint sanity check: The code posts to https://api.alphashop.cn — verify this domain and the service documentation yourself before providing credentials. - Manifest inconsistency: Because the registry metadata omitted required env vars, treat this as a quality/control issue. If you rely on automated policy checks or least-privilege reviews, ask the publisher to fix the manifest to declare ALPHASHOP_ACCESS_KEY and ALPHASHOP_SECRET_KEY and to set primaryEnv accordingly. If you need higher assurance, request an explanation from the publisher about the manifest omission and confirm the service's billing/privacy terms; otherwise this skill is functionally coherent but the metadata omission is a red flag worth resolving.
功能分析
Type: OpenClaw Skill Name: alphashop-image Version: 1.0.1 The alphashop-image skill provides a legitimate interface for the AlphaShop Image Processing API, supporting tasks like image translation, cropping, and AI-driven model skin swapping. The script `scripts/alphashop_image.py` uses standard JWT authentication via user-provided environment variables and communicates exclusively with the official API endpoint (api.alphashop.cn). No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the instructions in `SKILL.md` are appropriately focused on error handling and configuration.
能力评估
Purpose & Capability
Skill name, description, README, SKILL.md, and included script all implement an image-processing client for AlphaShop and legitimately require ALPHASHOP_ACCESS_KEY and ALPHASHOP_SECRET_KEY. However, the registry/manifest metadata lists no required environment variables or primary credential, which is inconsistent with the actual code and runtime instructions.
Instruction Scope
SKILL.md instructs the agent to set two API keys in OpenClaw config and run the included Python CLI which POSTs JSON to https://api.alphashop.cn endpoints. The runtime instructions do not ask the agent to read unrelated local files or other credentials, nor to exfiltrate data to unexpected endpoints. They do instruct to prompt the user for keys if missing and to stop on billing errors.
Install Mechanism
There is no install spec (instruction-only at platform level). The bundle contains a Python script and a requirements.txt (requests, PyJWT) — common, expected dependencies. No downloads from unusual URLs or archive extraction are present.
Credentials
The code requires two secrets (ALPHASHOP_ACCESS_KEY and ALPHASHOP_SECRET_KEY) to create JWTs and call the API — this is proportionate to the stated purpose. The concern is the manifest/registry metadata failing to declare these required env vars and primary credential, which could lead to unexpected prompt/permission behavior or user confusion. Also note that providing these keys grants the skill the ability to call the external API (and incur billing).
Persistence & Privilege
Skill is not always-on and does not request elevated platform privileges. It does not attempt to modify other skills or system-wide config. Autonomous invocation is allowed (platform default) but not combined with other high-risk factors here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install alphashop-image
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /alphashop-image 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- 新增字段 category、metadata(包含 version、label、author)至 SKILL 配置,补充官方信息与标签。 - version 更新为 1.0.1。 - 其余接口与文档内容保持不变。
v1.0.0
AlphaShop-image 1.0.0 初始发布 - 提供 11 种图片处理功能,包括图片翻译、高清放大、抠图、元素识别/消除、裁剪、虚拟试衣、模特换肤等 - 支持同步与异步接口任务(虚拟试衣、模特换肤等异步任务流程详细说明) - 必须配置 ALPHASHOP_ACCESS_KEY 与 ALPHASHOP_SECRET_KEY,缺失密钥时需先提示用户 - 提供常用命令速查与完整参数说明指引 - 针对接口欠费场景提供处理和用户通知说明
元数据
Slug alphashop-image
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

alphashop-image 是什么?

AlphaShop(遨虾)图像处理 API 工具集。支持11个接口:图片翻译、图片翻译PRO、 图片高清放大、图片主题抠图、图片元素识别、图片元素智能消除、图像裁剪、 虚拟试衣(创建+查询)、模特换肤(创建+查询)。 触发场景:图片翻译、翻译图片文字、放大图片、高清放大、抠图、去背景、 检测水印/Logo/文字、... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 132 次。

如何安装 alphashop-image?

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

alphashop-image 是免费的吗?

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

alphashop-image 支持哪些平台?

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

谁开发了 alphashop-image?

由 1688AiInfra(@1688aiinfra)开发并维护,当前版本 v1.0.1。

💬 留言讨论