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
/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.
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
0Asynchronous. Returns atask_idfor polling.1Synchronous (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.
/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.
0Not started1Completed2Pending-1Failed
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.
0Not started1Completed2Pending-1Failed
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.
0Not started1Completed2Pending3Partially successful-1Failed
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
/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.
mainWhite-background main imagesearchSearch listing imagecoreKey benefit imageliveLifestyle imagepersonModel imagepuzzleMulti-scene imagesizeDimensions, 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
0Asynchronous. Returns atask_idfor polling.1Synchronous (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.
/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.
0Not started1Completed2Pending-1Failed
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.
0Not started1Completed2Pending-1Failed
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.
0Not started1Completed2Pending3Partially successful-1Failed
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
/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.
mainWhite-background main imagesearchSearch listing imagecoreKey benefit imageliveLifestyle imagepersonModel imagepuzzleMulti-scene imagesizeDimensions, 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_v3Ecommerce 3.0 (default)ecommerce_v2Ecommerce 2.0generalGeneral purpose
quality string optional
ecommerce_v3—1k,2k(default),4kecommerce_v2—1k,2k(default),4kgeneral—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.
/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.
0Not started1Completed2Pending-1Failed
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.
0Not started1Completed2Pending-1Failed
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.
0Not started1Completed2Pending3Partially successful-1Failed
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 / model | Cost |
|---|---|
| Selling points | 2 credits per task |
| Scene prompts | 10 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
-
Signed result URLs expire after 1 hour by default. Download and store promptly; querying again within the query window refreshes the signature.
-
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.
-
The server validates actual image content. The same limits apply to URLs and files.
Formats Count Size per image JPEG / PNG / WebP 1–3 images ≤ 20 MB
# 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.
## Base URL
https://techhk.aoscdn.com
This is an example host; use your assigned service address. Replace example IDs, image URLs and content with real values.
## Authentication
Every request needs X-API-KEY and account authorization for its stage.
```http
X-API-KEY: YOUR_API_KEY
```
[Get an API Key](https://picwish.com/my-account?subRoute=api-key)
## Request modes
For selling points and scene prompts, set the request mode with `sync`.
- `0` Asynchronous. Returns a `task_id` for polling.
- `1` Synchronous (default). Waits for the result in the same request.
Image generation is always asynchronous.
## Source images
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| image_urls | string[] | one required | 1–3 publicly accessible image URLs in reference order. Mutually exclusive with `image_files`. |
| image_files | file[] | one required | 1–3 JPEG, PNG or WebP images, up to 20 MB each. Mutually exclusive with `image_urls`. |
## Endpoints
| Step | Method | Path | Mode |
| --- | --- | --- | --- |
| 1. Create selling points | POST | /api/tasks/visual/suite/selling | Sync (default) / async |
| Query selling points task results | GET | /api/tasks/visual/suite/{task_id}?type=selling | Polling |
| 2. Create scene prompts | POST | /api/tasks/visual/suite/prompt | Sync (default) / async |
| Query scene prompt task results | GET | /api/tasks/visual/suite/{task_id}?type=prompt | Polling |
| 3. Create listing images | POST | /api/tasks/visual/suite | Async only |
| Query listing image task results | GET | /api/tasks/visual/suite/{task_id}?type=image | Polling |
## 1. Create selling points
POST /api/tasks/visual/suite/selling
### Body Parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| image_urls | string[] | one required | 1–3 publicly accessible image URLs in reference order. Mutually exclusive with `image_files`. |
| image_files | file[] | one required | 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.<br>`1` Synchronous (default). Waits for the result in the same request. |
### Return Parameters
| Name | Type | Description |
| --- | --- | --- |
| status | int | Top-level request status. `200` means the request succeeded. See [Status Code Definitions](https://picwish.com/states). |
| 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](https://picwish.com/states). |
| 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. |
Create responses provide at least task_id, request_id, stage and estimated_use_point. States, results and summaries depend on current data availability. If the task is pending, use its task_id to poll for the result.
### Async request
```bash
curl -X POST 'https://techhk.aoscdn.com/api/tasks/visual/suite/selling' \
-H 'X-API-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"image_urls": [
"https://example.com/product-front.jpg",
"https://example.com/product-back.jpg"
],
"language": "en",
"product_info": "Portable 500mL travel mug for commuting.",
"sync": 0
}'
```
### Async file upload
```bash
curl -X POST 'https://techhk.aoscdn.com/api/tasks/visual/suite/selling' \
-H 'X-API-KEY: YOUR_API_KEY' \
-F 'image_files=@/path/to/product-front.jpg' \
-F 'image_files=@/path/to/product-back.jpg' \
-F 'language=en' \
-F 'product_info=Portable 500mL travel mug for commuting.' \
-F 'sync=0'
```
### Sync request
```bash
curl -X POST 'https://techhk.aoscdn.com/api/tasks/visual/suite/selling' \
-H 'X-API-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"image_urls": [
"https://example.com/product-front.jpg",
"https://example.com/product-back.jpg"
],
"language": "en",
"product_info": "Portable 500mL travel mug for commuting.",
"sync": 1
}'
```
### Async accepted response
```json
{
"status": 200,
"data": {
"task_id": "11111111111141118111111111111111",
"request_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"stage": "selling",
"estimated_use_point": 2,
"state": 0,
"status": "queued",
"progress": 0
}
}
```
## Query selling points task results
GET /api/tasks/visual/suite/{task_id}?type=selling
Poll once per second until the task completes or fails. On success, read the selling points and reference image description.
### Path Parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| task_id | string | required | The `task_id` returned when creating the selling points task. |
### Query Parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| type | string | required | `selling`: identifies a selling points task. |
### Return Parameters
| Name | Type | Description |
| --- | --- | --- |
| status | int | Top-level request status. `200` means the request succeeded. See [Status Code Definitions](https://picwish.com/states). |
| 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](https://picwish.com/states). |
| 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.<br>`0` Not started<br>`1` Completed<br>`2` Pending<br>`-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.<br>`0` Not started<br>`1` Completed<br>`2` Pending<br>`-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.<br>`0` Not started<br>`1` Completed<br>`2` Pending<br>`3` Partially successful<br>`-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
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| 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.<br>`main` White-background main image<br>`search` Search listing image<br>`core` Key benefit image<br>`live` Lifestyle image<br>`person` Model image<br>`puzzle` Multi-scene image<br>`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.<br>`1` Synchronous (default). Waits for the result in the same request. |
### Return Parameters
| Name | Type | Description |
| --- | --- | --- |
| status | int | Top-level request status. `200` means the request succeeded. See [Status Code Definitions](https://picwish.com/states). |
| 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](https://picwish.com/states). |
| 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. |
Create responses provide at least task_id, request_id, stage and estimated_use_point. States, results and summaries depend on current data availability. If the task is pending, use its task_id to poll for the result.
### Async request
```bash
curl -X POST 'https://techhk.aoscdn.com/api/tasks/visual/suite/prompt' \
-H 'X-API-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"request_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"selling_points": "500mL capacity; portable design for commuting.",
"scene": [
"main",
"core"
],
"site": "amazon",
"country": "US",
"language": "en",
"lang": "en",
"size": "1:1",
"sync": 0
}'
```
### Sync request
```bash
curl -X POST 'https://techhk.aoscdn.com/api/tasks/visual/suite/prompt' \
-H 'X-API-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"request_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"selling_points": "500mL capacity; portable design for commuting.",
"scene": [
"main",
"core"
],
"site": "amazon",
"country": "US",
"language": "en",
"lang": "en",
"size": "1:1",
"sync": 1
}'
```
### Async accepted response
```json
{
"status": 200,
"data": {
"task_id": "22222222222242228222222222222222",
"request_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"stage": "prompt",
"estimated_use_point": 10,
"state": 0,
"status": "queued",
"progress": 0
}
}
```
## Query scene prompt task results
GET /api/tasks/visual/suite/{task_id}?type=prompt
Poll once per second until the task completes or fails. On success, read the prompt for each scene.
### Path Parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| task_id | string | required | The `task_id` returned when creating the scene prompt task. |
### Query Parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| type | string | required | `prompt`: identifies a scene prompt task. |
### Return Parameters
| Name | Type | Description |
| --- | --- | --- |
| status | int | Top-level request status. `200` means the request succeeded. See [Status Code Definitions](https://picwish.com/states). |
| 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](https://picwish.com/states). |
| 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.<br>`0` Not started<br>`1` Completed<br>`2` Pending<br>`-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.<br>`0` Not started<br>`1` Completed<br>`2` Pending<br>`-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.<br>`0` Not started<br>`1` Completed<br>`2` Pending<br>`3` Partially successful<br>`-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
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| 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.<br>`main` White-background main image<br>`search` Search listing image<br>`core` Key benefit image<br>`live` Lifestyle image<br>`person` Model image<br>`puzzle` Multi-scene image<br>`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)<br>`ecommerce_v2` Ecommerce 2.0<br>`general` General purpose |
| quality | string | optional | `ecommerce_v3` — `1k`, `2k` (default), `4k`<br>`ecommerce_v2` — `1k`, `2k` (default), `4k`<br>`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
| Name | Type | Description |
| --- | --- | --- |
| status | int | Top-level request status. `200` means the request succeeded. See [Status Code Definitions](https://picwish.com/states). |
| 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](https://picwish.com/states). |
| 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. |
Create responses provide at least task_id, request_id, stage and estimated_use_point. States, results and summaries depend on current data availability. If the task is pending, use its task_id to poll for the result.
### Async request
```bash
curl -X POST 'https://techhk.aoscdn.com/api/tasks/visual/suite' \
-H 'X-API-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data '{
"request_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"scene": [
"main",
"core"
],
"prompts": {
"main": "Show the travel mug on white, preserving its reference appearance.",
"core": "Create a benefit image highlighting the 500mL capacity and portability."
},
"model": "ecommerce_v3",
"quality": "2k",
"size": "1:1",
"site": "amazon",
"lang": "en",
"filter_keywords": ""
}'
```
### Async accepted response
```json
{
"status": 200,
"data": {
"task_id": "33333333333343338333333333333333",
"request_id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"stage": "image",
"estimated_use_point": 10,
"state": 0,
"status": "queued",
"progress": 0
}
}
```
## Query listing image task results
GET /api/tasks/visual/suite/{task_id}?type=image
Poll once per second until the task completes or fails. Some images may fail. Check each result and download the successful images.
### Path Parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| task_id | string | required | The `task_id` returned when creating the listing image task. |
### Query Parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| type | string | optional | `image`: identifies a listing image task (default). |
### Return Parameters
| Name | Type | Description |
| --- | --- | --- |
| status | int | Top-level request status. `200` means the request succeeded. See [Status Code Definitions](https://picwish.com/states). |
| 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](https://picwish.com/states). |
| 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.<br>`0` Not started<br>`1` Completed<br>`2` Pending<br>`-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.<br>`0` Not started<br>`1` Completed<br>`2` Pending<br>`-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.<br>`0` Not started<br>`1` Completed<br>`2` Pending<br>`3` Partially successful<br>`-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 / model | Cost |
| --- | --- |
| Selling points | 2 credits per task |
| Scene prompts | 10 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
- Signed result URLs expire after 1 hour by default. Download and store promptly; querying again within the query window refreshes the signature.
- 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.
- The server validates actual image content. The same limits apply to URLs and files.
| Formats | Count | Size per image |
| --- | --- | --- |
| JPEG / PNG / WebP | 1–3 images | ≤ 20 MB |