Product Listing Images API

Generate ecommerce listing images from product photos, including white-background product shots, feature highlights, and lifestyle images. A typical integration extracts selling points, uses them to generate prompts for each scene, then generates the images from those prompts.

Selling points and scene prompts support sync and async requests. Image generation is async only. Result image URLs are generally valid for 1 hour. Download and save the images promptly.

Authentication

Every API request must include your API Key in the X-API-KEY request header. Send it with each request exactly as shown in the examples and parameter descriptions.

X-API-KEY: YOUR_API_KEY

1. Create selling points

POST /api/tasks/visual/suite/selling

Body Parameters

image_urls string[] optional

1–3 publicly accessible image URLs in reference order. Mutually exclusive with image_files.

one required
image_files file[] optional

1–3 JPEG, PNG or WebP images, up to 20 MB each. Mutually exclusive with image_urls.

language string optional

Language code for the product selling points, such as zh, en, or ja. Defaults to en if omitted or left blank.

product_info string optional

Additional product information, up to 20,000 characters.

sync int optional

  • 0 Asynchronous. Returns a task_id for polling.
  • 1 Synchronous (default). Waits for the result in the same request.

Return Parameters

status int

Top-level request status. 200 means the request succeeded. See Status Code Definitions.

message string

Request message; may be empty or omitted on success.

data object

Task data; may be omitted if the request fails.

data.task_id string

Independent task ID of this step, used to query its result.

data.request_id string

Input image group UUID, reused across steps; valid for 24 hours.

data.selling_points string

Generated selling points. A completed sync request returns this field directly. For an async task or a pending sync response, poll with data.task_id. Pass the completed task’s value as selling_points in step 2.

data.reference_image_info string

Reference image description available on completion.

data.stage string

Current stage: selling / prompt / image.

data.state int

Task state. Stop polling on 1 (completed, possibly with partial image success) or a negative value (failed). See Status Code Definitions.

data.status string

Business status: queued / running / succeeded / partially_succeeded / failed.

data.progress int

Task completion progress (0–100).

data.estimated_use_point number

Estimated credits, not an actual charge.

data.use_point number

Actual credits charged after completion; may be absent while pending.

data.err_message string

Error details when the task fails.

data.state_detail string

English task state description, when available.

data.created_at int

Creation time as Unix seconds, when available.

data.processed_at int

Processing start time as Unix seconds, when available.

data.completed_at int

Completion time as Unix seconds, when available.

status int

Top-level request status. 200 means the request succeeded. See Status Code Definitions.

message string

Request message; may be empty or omitted on success.

data object

Task data; may be omitted if the request fails.

data.task_id string

Independent task ID of this step, used to query its result.

data.request_id string

Input image group UUID, reused across steps; valid for 24 hours.

data.selling_points string

Generated selling points. A completed sync request returns this field directly. For an async task or a pending sync response, poll with data.task_id. Pass the completed task’s value as selling_points in step 2.

data.reference_image_info string

Reference image description available on completion.

data.stage string

Current stage: selling / prompt / image.

data.state int

Task state. Stop polling on 1 (completed, possibly with partial image success) or a negative value (failed). See Status Code Definitions.

data.status string

Business status: queued / running / succeeded / partially_succeeded / failed.

data.progress int

Task completion progress (0–100).

data.estimated_use_point number

Estimated credits, not an actual charge.

data.use_point number

Actual credits charged after completion; may be absent while pending.

data.err_message string

Error details when the task fails.

data.state_detail string

English task state description, when available.

data.created_at int

Creation time as Unix seconds, when available.

data.processed_at int

Processing start time as Unix seconds, when available.

data.completed_at int

Completion time as Unix seconds, when available.

Query selling points task results

Poll once per second until the task completes or fails. On success, read the selling points and reference image description.

GET /api/tasks/visual/suite/{task_id}?type=selling

Path Parameters

task_id string required

The task_id returned when creating the selling points task.

Query Parameters

type string required

selling: identifies a selling points task.

Return Parameters

status int

Top-level request status. 200 means the request succeeded. See Status Code Definitions.

message string

Request message; may be empty or omitted on success.

data object

Task data; may be omitted if the request fails.

data.task_id string

Independent task ID of this step, used to query its result.

data.request_id string

Input image group UUID, reused across steps; valid for 24 hours.

data.selling_points string

Generated selling points. A completed sync request returns this field directly. For an async task or a pending sync response, poll with data.task_id. Pass the completed task’s value as selling_points in step 2.

data.reference_image_info string

Reference image description available on completion.

data.stage string

Current stage: selling / prompt / image.

data.state int

Task state. Stop polling on 1 (completed, possibly with partial image success) or a negative value (failed). See Status Code Definitions.

data.status string

Business status: queued / running / succeeded / partially_succeeded / failed.

data.progress int

Task completion progress (0–100).

data.estimated_use_point number

Estimated credits, not an actual charge.

data.use_point number

Actual credits charged after completion; may be absent while pending.

data.err_message string

Error details when the task fails.

data.state_detail string

English task state description, when available.

data.created_at int

Creation time as Unix seconds, when available.

data.processed_at int

Processing start time as Unix seconds, when available.

data.completed_at int

Completion time as Unix seconds, when available.

data.selling_status int

Status of the latest task for this stage in the image group.

  • 0 Not started
  • 1 Completed
  • 2 Pending
  • -1 Failed
data.selling_task_id string

Most recently accepted task ID for this stage, or "" if it has not started. Reflects the current image group even when querying an older task.

data.prompt_status int

Status of the latest task for this stage in the image group.

  • 0 Not started
  • 1 Completed
  • 2 Pending
  • -1 Failed
data.prompt_task_id string

Most recently accepted task ID for this stage, or "" if it has not started. Reflects the current image group even when querying an older task.

data.image_status int

Status of the latest task for this stage in the image group.

  • 0 Not started
  • 1 Completed
  • 2 Pending
  • 3 Partially successful
  • -1 Failed
data.image_task_id string

Most recently accepted task ID for this stage, or "" if it has not started. Reflects the current image group even when querying an older task.

2. Create scene prompts

POST /api/tasks/visual/suite/prompt

Body Parameters

request_id string required

Image group UUID returned by step 1, valid for 24 hours and owned by the current API user.

selling_points string required

Pass data.selling_points from the completed step 1 task. You can edit the text or supply your own, up to 20,000 characters.

scene string[] required

Choose 1–7 distinct scenes. Results follow the order supplied.

  • main White-background main image
  • search Search listing image
  • core Key benefit image
  • live Lifestyle image
  • person Model image
  • puzzle Multi-scene image
  • size Dimensions, capacity, or sizing image
site string optional

Marketplace. Defaults to amazon. Supported values are amazon, taobao, temu, pdd, shein, aliexpress, lazada, mercado, jd, ali, walmart, wayfair, coupang, shopee, douyin, tiktok, kuaishou, xiaohongshu, ozon.

country string optional

Target country or region. Defaults to US. Use a two-letter country code such as US, CN, JP, or DE, or a region code such as WX_OZ (Europe), WX_LM (Latin America), WX_ZD (Middle East), or WX_DNY (Southeast Asia). The service trims whitespace and converts codes to uppercase. For an unrecognized two-letter code, it uses China for domestic services and United States for overseas services.

language string optional

Prompt description language, default zh. Use a supported language code such as zh, en, or ja.

lang string optional

Language code for text on the image, such as zh, en, or ja. Defaults to en and may differ from language. Pass "" for an image without text.

size string optional

Image aspect ratio. Defaults to 1:1. Supported ratios are 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9.

filter_keywords string optional

Keywords to filter, up to 200 characters.

user_requirements string optional

Custom generation requirements, up to 20,000 characters.

visual_style object optional

Visual style object. Only style is used for generation; title, reason and colors are saved as metadata.

visual_style.title string optional

Optional style name.

visual_style.reason string optional

Optional style explanation.

visual_style.colors string[] optional

Optional color palette.

visual_style.style string optional

Style instructions, up to 20,000 characters; omitted or blank means no style instructions.

sync int optional

  • 0 Asynchronous. Returns a task_id for polling.
  • 1 Synchronous (default). Waits for the result in the same request.

Return Parameters

status int

Top-level request status. 200 means the request succeeded. See Status Code Definitions.

message string

Request message; may be empty or omitted on success.

data object

Task data; may be omitted if the request fails.

data.task_id string

Independent task ID of this step, used to query its result.

data.request_id string

Input image group UUID, reused across steps; valid for 24 hours.

data.stage string

Current stage: selling / prompt / image.

data.state int

Task state. Stop polling on 1 (completed, possibly with partial image success) or a negative value (failed). See Status Code Definitions.

data.status string

Business status: queued / running / succeeded / partially_succeeded / failed.

data.progress int

Task completion progress (0–100).

data.estimated_use_point number

Estimated credits, not an actual charge.

data.use_point number

Actual credits charged after completion; may be absent while pending.

data.err_message string

Error details when the task fails.

data.state_detail string

English task state description, when available.

data.created_at int

Creation time as Unix seconds, when available.

data.processed_at int

Processing start time as Unix seconds, when available.

data.completed_at int

Completion time as Unix seconds, when available.

status int

Top-level request status. 200 means the request succeeded. See Status Code Definitions.

message string

Request message; may be empty or omitted on success.

data object

Task data; may be omitted if the request fails.

data.task_id string

Independent task ID of this step, used to query its result.

data.request_id string

Input image group UUID, reused across steps; valid for 24 hours.

data.stage string

Current stage: selling / prompt / image.

data.state int

Task state. Stop polling on 1 (completed, possibly with partial image success) or a negative value (failed). See Status Code Definitions.

data.status string

Business status: queued / running / succeeded / partially_succeeded / failed.

data.progress int

Task completion progress (0–100).

data.estimated_use_point number

Estimated credits, not an actual charge.

data.use_point number

Actual credits charged after completion; may be absent while pending.

data.err_message string

Error details when the task fails.

data.state_detail string

English task state description, when available.

data.created_at int

Creation time as Unix seconds, when available.

data.processed_at int

Processing start time as Unix seconds, when available.

data.completed_at int

Completion time as Unix seconds, when available.

data.scene string[]

Scenes requested in this task.

data.prompts object

Map of scene codes to prompts, covering every requested scene. A missing or empty scene prompt fails the task with no charge.

Query scene prompt task results

Poll once per second until the task completes or fails. On success, read the prompt for each scene.

GET /api/tasks/visual/suite/{task_id}?type=prompt

Path Parameters

task_id string required

The task_id returned when creating the scene prompt task.

Query Parameters

type string required

prompt: identifies a scene prompt task.

Return Parameters

status int

Top-level request status. 200 means the request succeeded. See Status Code Definitions.

message string

Request message; may be empty or omitted on success.

data object

Task data; may be omitted if the request fails.

data.task_id string

Independent task ID of this step, used to query its result.

data.request_id string

Input image group UUID, reused across steps; valid for 24 hours.

data.stage string

Current stage: selling / prompt / image.

data.state int

Task state. Stop polling on 1 (completed, possibly with partial image success) or a negative value (failed). See Status Code Definitions.

data.status string

Business status: queued / running / succeeded / partially_succeeded / failed.

data.progress int

Task completion progress (0–100).

data.estimated_use_point number

Estimated credits, not an actual charge.

data.use_point number

Actual credits charged after completion; may be absent while pending.

data.err_message string

Error details when the task fails.

data.state_detail string

English task state description, when available.

data.created_at int

Creation time as Unix seconds, when available.

data.processed_at int

Processing start time as Unix seconds, when available.

data.completed_at int

Completion time as Unix seconds, when available.

data.scene string[]

Scenes requested in this task.

data.prompts object

Map of scene codes to prompts, covering every requested scene. A missing or empty scene prompt fails the task with no charge.

data.selling_status int

Status of the latest task for this stage in the image group.

  • 0 Not started
  • 1 Completed
  • 2 Pending
  • -1 Failed
data.selling_task_id string

Most recently accepted task ID for this stage, or "" if it has not started. Reflects the current image group even when querying an older task.

data.prompt_status int

Status of the latest task for this stage in the image group.

  • 0 Not started
  • 1 Completed
  • 2 Pending
  • -1 Failed
data.prompt_task_id string

Most recently accepted task ID for this stage, or "" if it has not started. Reflects the current image group even when querying an older task.

data.image_status int

Status of the latest task for this stage in the image group.

  • 0 Not started
  • 1 Completed
  • 2 Pending
  • 3 Partially successful
  • -1 Failed
data.image_task_id string

Most recently accepted task ID for this stage, or "" if it has not started. Reflects the current image group even when querying an older task.

3. Create listing images

POST /api/tasks/visual/suite

Body Parameters

request_id string required

Image group UUID returned by step 1, valid for 24 hours and owned by the current API user.

scene string[] required

Choose 1–7 distinct scenes. Results follow the order supplied.

  • main White-background main image
  • search Search listing image
  • core Key benefit image
  • live Lifestyle image
  • person Model image
  • puzzle Multi-scene image
  • size Dimensions, capacity, or sizing image
prompts object required

Map of scene codes to prompts. Keys must exactly match scene; each prompt must be nonempty and at most 20,000 characters. Step 2 results are not read automatically.

model string optional

  • ecommerce_v3 Ecommerce 3.0 (default)
  • ecommerce_v2 Ecommerce 2.0
  • general General purpose
quality string optional

  • ecommerce_v3 — 1k, 2k (default), 4k
  • ecommerce_v2 — 1k, 2k (default), 4k
  • general — default, high (default), higher
size string optional

Image aspect ratio. Defaults to 1:1. Supported ratios are 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9.

site string optional

Marketplace. Defaults to amazon. Supported values are amazon, taobao, temu, pdd, shein, aliexpress, lazada, mercado, jd, ali, walmart, wayfair, coupang, shopee, douyin, tiktok, kuaishou, xiaohongshu, ozon.

lang string optional

Language code for text on the image, such as zh, en, or ja. Defaults to en and may differ from language. Pass "" for an image without text.

dimension string optional

general only, e.g. 3840x2160. Positive width and height must be multiples of 16, total pixels 655360–8294400, longest/shortest side ratio at most 3:1. Overrides pixel dimensions derived from size; omitted uses an approximately 2K mapping. Nonempty values with ecommerce models return 400.

filter_keywords string optional

Keywords to filter, up to 200 characters.

Return Parameters

status int

Top-level request status. 200 means the request succeeded. See Status Code Definitions.

message string

Request message; may be empty or omitted on success.

data object

Task data; may be omitted if the request fails.

data.task_id string

Independent task ID of this step, used to query its result.

data.request_id string

Input image group UUID, reused across steps; valid for 24 hours.

data.stage string

Current stage: selling / prompt / image.

data.state int

Task state. Stop polling on 1 (completed, possibly with partial image success) or a negative value (failed). See Status Code Definitions.

data.status string

Business status: queued / running / succeeded / partially_succeeded / failed.

data.progress int

Task completion progress (0–100).

data.estimated_use_point number

Estimated credits, not an actual charge.

data.use_point number

Actual credits charged after completion; may be absent while pending.

data.err_message string

Error details when the task fails.

data.state_detail string

English task state description, when available.

data.created_at int

Creation time as Unix seconds, when available.

data.processed_at int

Processing start time as Unix seconds, when available.

data.completed_at int

Completion time as Unix seconds, when available.

Query listing image task results

Poll once per second until the task completes or fails. Some images may fail. Check each result and download the successful images.

GET /api/tasks/visual/suite/{task_id}?type=image

Path Parameters

task_id string required

The task_id returned when creating the listing image task.

Query Parameters

type string optional

image: identifies a listing image task (default).

Return Parameters

status int

Top-level request status. 200 means the request succeeded. See Status Code Definitions.

message string

Request message; may be empty or omitted on success.

data object

Task data; may be omitted if the request fails.

data.task_id string

Independent task ID of this step, used to query its result.

data.request_id string

Input image group UUID, reused across steps; valid for 24 hours.

data.stage string

Current stage: selling / prompt / image.

data.state int

Task state. Stop polling on 1 (completed, possibly with partial image success) or a negative value (failed). See Status Code Definitions.

data.status string

Business status: queued / running / succeeded / partially_succeeded / failed.

data.progress int

Task completion progress (0–100).

data.estimated_use_point number

Estimated credits, not an actual charge.

data.use_point number

Actual credits charged after completion; may be absent while pending.

data.err_message string

Error details when the task fails.

data.state_detail string

English task state description, when available.

data.created_at int

Creation time as Unix seconds, when available.

data.processed_at int

Processing start time as Unix seconds, when available.

data.completed_at int

Completion time as Unix seconds, when available.

data.total_count int

Total image count.

data.success_count int

Succeeded image count.

data.failed_count int

Failed image count.

data.remaining_count int

Pending image count.

data.results object[]

Per-image results in input scene order. Read results[].image_url for each successful image.

data.results[].sort int

Position, starting at 1.

data.results[].result_id string

UUID of this image result.

data.results[].scene string

Scene code.

data.results[].prompt string

Prompt used for this image.

data.results[].status string

queued / running / succeeded / failed; check each image.

data.results[].image_url string

Successful image URL, signed for 1 hour by default; usually empty until successful.

data.results[].error string

Per-image error. Returns "" when there is no error.

data.selling_status int

Status of the latest task for this stage in the image group.

  • 0 Not started
  • 1 Completed
  • 2 Pending
  • -1 Failed
data.selling_task_id string

Most recently accepted task ID for this stage, or "" if it has not started. Reflects the current image group even when querying an older task.

data.prompt_status int

Status of the latest task for this stage in the image group.

  • 0 Not started
  • 1 Completed
  • 2 Pending
  • -1 Failed
data.prompt_task_id string

Most recently accepted task ID for this stage, or "" if it has not started. Reflects the current image group even when querying an older task.

data.image_status int

Status of the latest task for this stage in the image group.

  • 0 Not started
  • 1 Completed
  • 2 Pending
  • 3 Partially successful
  • -1 Failed
data.image_task_id string

Most recently accepted task ID for this stage, or "" if it has not started. Reflects the current image group even when querying an older task.

Credit usage

Selling points and scene prompts are billed per successful task. For listing images, you pay only for the images that are generated successfully.

Charges by step and model

Step / modelCost
Selling points2 credits per task
Scene prompts10 credits per task
Ecommerce 3.0 (ecommerce_v3)5 credits per image
Ecommerce 2.0 (ecommerce_v2)3 credits per image
General (general)5 credits per image

Billing example

Suppose the first two tasks succeed. That costs 12 credits (2 + 10). Ecommerce 3.0 adds 5 credits for each image it generates successfully. Three images bring the total to 27 credits, or 22 credits if only two succeed.

Guidelines and Limits

  1. Signed result URLs expire after 1 hour by default. Download and store promptly; querying again within the query window refreshes the signature.

  2. Each stage uses the account’s QPS, QPM and concurrency limits. Default create QPS is 2 unless configured. GET does not consume create QPS; still poll once per second.

  3. The server validates actual image content. The same limits apply to URLs and files.

    FormatsCountSize per image
    JPEG / PNG / WebP1–3 images≤ 20 MB