Design & media

alphashop-image

Try it

AlphaShop(遨虾)图像处理 API 工具集。支持11个接口:图片翻译、图片翻译PRO、 图片高清放大、图片主题抠图、图片元素识别、图片元素智能消除、图像裁剪、 虚拟试衣(创建+查询)、模特换肤(创建+查询)。 触发场景:图片翻译、翻译图片文字、放大图片、高清放大、抠图、去背景、 检测水印/Logo/文字、...

What it does

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

The skill document

AlphaShop 图像处理

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

前置配置(必须先完成)

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

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

Related skills

Manage Stripe customers, subscriptions, invoices, products, prices, and payments through OAuth-authenticated API calls.

by byungkyu720 installs29 stars

Post videos, photos, text, and documents to 10 social platforms through a single REST API call.

by victorcavero14375 installs50 stars

Search, read, and manage YouTube videos, playlists, channels, subscriptions, and comments via managed OAuth.

by byungkyu880 installs145 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai21 installs8 stars

Build or update full-page Figma screens by reusing your published design system components, variables, and styles.

by OpenAI27.5k stars

More from 1688aiinfra

Browse all skills

Diagnose 1688 store health with a two-stage flow: overall judgment plus a deep-dive report in your chosen direction.

by 1688aiinfra13 installs

Diagnose 1688 product performance and traffic issues from real CLI data, then hand off to image or title optimizers.

by 1688aiinfra13 installs

1688商品搜索SKILL:提供完整的1688商品搜索能力,包括类目查询、关键词搜索、图片搜索、商品详情、相关性商品、拉取货盘底池等9个核心接口。 支持多语言搜索和商品推荐,使用1688开放平台官方API,统一鉴权,Token全局缓存共享。

by 1688aiinfra65 installs3 stars

1688智能选品找货能力。通过文字、图片或链接搜商品、找同款、找相似款,支持批量采购比价、热销选品、跨境找货、场景化选品及多条件筛选(价格/销量/材质/属性排除等)。 触发词:找商品、找同款、搜商品、帮我找、想要XX、图片找货、链接找货、以图搜图、选品、批发、找货源、热销、比价、最便宜、按销量排序、出口、跨境、找...

by 1688aiinfra39 installs

将1688的商品铺货到俄罗斯电商平台Ozon(上架),通过Ozon官方API实现商品信息的上传和状态查询。适用于需要将单个1688的商品上架到Ozon的场景。

by 1688aiinfra40 installs2 stars

1688商品标题优化 工具能力:为商品标题添加热词优化(快速、基于规则)和 LLM 深度重写(高质量、自然流畅),支持用户输入偏好。如果用户没有选择想优化标题的商品,技能中可以出组件让用户选择; 触发词:优化标题、标题优化、改标题、重写标题、商品标题、标题改写、分析标题、我要优化标题、标题里哪些词没用、标题里应该加哪些热搜关键词、我的商品标题怎么优化?、我的标题怎么优化?、我要优化商品标题

by 1688aiinfra15 installs