生图任务
生图接口为异步接口,提交成功后返回 task_id。
商品主图
curl -X POST 'https://api.ch88.cn/v1/open/product-images/generations' \
-H 'Authorization: Bearer <PUBLIC_API_KEY>' \
-H 'Idempotency-Key: client-request-001' \
-H 'Content-Type: application/json' \
-d '{
"prompt": "白色背景的简洁商品展示图",
"image_urls": ["https://example.com/product.png"],
"size": "1:1",
"resolution": "1k"
}'
A+ 页面生图
curl -X POST 'https://api.ch88.cn/v1/open/aplus/generations' \
-H 'Authorization: Bearer <PUBLIC_API_KEY>' \
-H 'Idempotency-Key: aplus-request-001' \
-H 'Content-Type: application/json' \
-d '{
"module_key": "core",
"target_size": "970x600",
"platform": "Amazon",
"market": "US",
"language": "zh-CN",
"resolution": "1k",
"image_urls": ["https://example.com/product.png"]
}'
提交后使用任务生命周期查询结果。