Skip to content

电商套图生成

POST /images/ecommerce/generate

上传商品原图,一键生成符合电商平台规范的套图(主图、场景图、详情页),内置各大平台尺寸与白底规范。

接口信息

项目说明
接口地址POST https://api.seeany.com/v1/images/ecommerce/generate
Content-Typemultipart/form-data
认证方式Bearer Token
超时时间120 秒

请求参数

参数类型必填说明
imagefile商品原图,支持 JPG/PNG/WebP,最大 10MB
platformstring目标平台:amazon(默认) / taobao / tmall
packagestring出图类型:full(默认,9张) / main_only / scene_only
stylestring视觉风格:minimal(默认) / lifestyle / luxury
modelstring生成模型,默认 nano-banana-pro

请求示例

python
from seeany import SeeAny

client = SeeAny(api_key="sk-xxxxx")

result = client.images.ecommerce.generate(
    image=open("./product.jpg", "rb"),
    platform="amazon",
    package="full",
    style="minimal"
)

for img in result.images:
    print(f"{img.description}: {img.url}")
print(f"总费用: ¥{result.total_cost.amount}")
bash
curl -X POST https://api.seeany.com/v1/images/ecommerce/generate \
  -H "Authorization: Bearer sk-xxxxx" \
  -F "image=@./product.jpg" \
  -F "platform=amazon" \
  -F "package=full" \
  -F "style=minimal"

响应示例

json
{
  "id": "ecom_20260603_001",
  "object": "ecommerce_suite",
  "status": "completed",
  "platform": "amazon",
  "images": [
    {
      "type": "main",
      "description": "主图 - 白底",
      "size": "2000x2000",
      "url": "https://cdn.seeany.com/ecom/ecom_001/main_white.png"
    },
    {
      "type": "main",
      "description": "主图 - 场景",
      "size": "2000x2000",
      "url": "https://cdn.seeany.com/ecom/ecom_001/main_scene.png"
    },
    {
      "type": "scene",
      "description": "场景图 - 生活使用",
      "size": "2000x2000",
      "url": "https://cdn.seeany.com/ecom/ecom_001/scene_lifestyle.png"
    },
    {
      "type": "detail",
      "description": "详情页 - 卖点展示",
      "size": "790x1200",
      "url": "https://cdn.seeany.com/ecom/ecom_001/detail_01.png"
    }
  ],
  "total_cost": { "amount": 1.50, "currency": "CNY" }
}

出图说明

Amazon 套图(full)

序号类型尺寸说明
1主图2000x2000纯白底,无文字
2主图2000x2000场景化主图
3场景图2000x2000使用场景
4场景图2000x2000细节特写
5场景图2000x2000尺寸对比
6-9详情页790x1200卖点展示图 × 4

淘宝 / 天猫 套图

序号类型尺寸说明
1主图800x800白底主图
2主图800x800卖点图
3-5场景图800x800使用场景 × 3
6-9详情页790x自适应详情页切片 × 4

提示

  • 原图质量越高,生成效果越好
  • 建议上传正面、无遮挡的商品图
  • 资源 URL 有效期 7 天

SeeAny 开放平台