E-commerce video generation basic edition
1. Overview
E-commerce Video Generation Basic Edition is designed for e-commerce merchants and platforms. Based on a product title, multiple images of the same product, and an optional storyboard, it automatically selects reference images, plans a three-scene storyboard, and generates a video that showcases a single product. The API uses an asynchronous task model and supports 720P and 1080P resolutions in four aspect ratios. It is suitable for non-apparel products. For apparel, use the E-commerce Enhanced Edition.
2. Use cases
• Generate assets for new product listings: Provide a product title and images, and the service automatically plans scenes such as product reveals, detail shots, or in-use demonstrations.
• Create videos from existing scripts: Provide a storyboard or a creative description. The system optimizes the storyboard based on the product images, preserving the intent of scenes supported by the images.
• Adapt videos for different display placements: Use the aspect ratio parameter to fit vertical short-form videos, main product image slots, product detail pages, and landscape displays. For batch processing, each request creates one video for one product.
3. Features
• Automatic image selection and storyboard planning: If no storyboard is provided, the service generates one based on the product title and images. If a storyboard is provided, the service still selects images and plans the scenes, so the caller does not need to prepare video prompts.
• Product appearance consistency: The service uses a selected full product image as the visual baseline. It verifies the color, structure, proportions, texture, version, and specifications of other images, selecting only reference images confirmed to belong to the same SKU.
• Flexible video specifications: Supports durations of 5 to 15 seconds without a storyboard and 5 to 30 seconds with one. Supports four aspect ratios (16:9, 1:1, 3:4, and 9:16) and two resolutions (720P and 1080P).
• Asynchronous generation and task polling: After creating a task, the API returns a task ID. The caller then polls the task endpoint to retrieve the result. The final video includes background music but no voice-over, subtitles, or marketing text.
4. Sample output
5. API reference
5.1 Request parameters
This service is asynchronous. To create a task, call POST /v1/product-video/tasks.
Parameter | Type | Required | Description |
| string | Yes | The product title. Cannot be empty. |
| string[] | Yes | Public network image URL. At least one is required. Each item must start with |
| string | No | The storyboard. If this parameter is omitted or contains only whitespace, the service automatically plans the scenes. |
| integer | No | Seconds. Default: 15. The value is an integer from 5 to 15 if no script is used, and an integer from 5 to 30 if a script is used. |
| string | No | The default value is |
| string | No | The default is |
Choose an aspect ratio based on the intended placement of the video.
Aspect ratio | Use cases |
| Vertical short videos and livestream traffic drivers, such as TikTok, Reels, Douyin, Kuaishou, and Taobao Guangguang. |
| Vertical main product videos and above-the-fold content on detail pages for platforms like Taobao and Tmall. |
| Main product videos and product pages on cross-border platforms, such as square main product videos on Taobao, JD.com, Amazon, and Shopee. |
| Product detail pages, PC storefronts, and landscape video platforms. |
Query a task
GET /v1/product-video/tasks/{task_id}
Parameter | Description |
* task_id string | A path parameter. The task ID returned when the task was created. |
5.2 Request examples
Generate without a script
{
"product_title": "Simple white ceramic mug",
"product_images": [
"https://example.com/cup-front.jpg","https://example.com/cup-side.jpg" ],
"duration": 15,
"aspect_ratio": "9:16",
"resolution": "720P"
}Generate with a script
{ "product_title": "Simple white ceramic mug",
"product_images": [
"https://example.com/cup-front.jpg" ], "script": "From 0 to 5 seconds, show the full body of the mug. From 5 to 10 seconds, show the rim and handle. From 10 to 15 seconds, zoom out to conclude.",
"duration": 15,
"aspect_ratio": "9:16",
"resolution": "720P"
}The image URLs in the examples are placeholders. Replace them with the publicly accessible URLs of your actual product images.
Default values
Parameter | Default |
Duration | 15 seconds |
Aspect Ratio |
|
Resolution |
|
Storyboard | A three-part structure: the first and last parts contain up to one shot each, and the middle part contains up to two shots. |
Sound | Background music, no voice-over. |
Subtitles and marketing text | Not generated or overlaid. |
Highlights | Only details and usage scenarios visible in the reference images are shown. The service does not add text or voice-over, nor does it infer claims or benefits from the title. |
5.3 Response parameters
Parameter | Description |
| The ID of the task. |
| The current status of the task. |
| Written during processing as |
| The complete prompt actually submitted to Wan, including the fidelity prefix. The value is |
| The URL of the video returned by Wan. This field is included only if the task succeeds. The URL is valid for 24 hours. In this release, the service does not persist the video. |
| The error object for a failed operation. The value is |
Returns HTTP 202 (at this point, the model has not been called yet).
{
"task_id": "task_001",
"status": "PENDING",
"route": "AUTO_PLAN"
}5.4 Response examples
Task acceptance response
The API returns an HTTP 202 status code when it accepts the task, before calling the model.
{
"task_id": "task_001",
"status": "PENDING",
"route": "AUTO_PLAN"
}Successful result
{
"task_id": "task_001",
"status": "SUCCEEDED",
"route": "AUTO_PLAN",
"used_prompt": "The following images are numbered in the order they were provided:\nImage 1: Baseline for overall appearance and color scheme.\n\n...",
"video_url": "https://example.com/result.mp4",
"error": null
}Task status
Status | Description |
| The task has been accepted but planning has not started. |
| The service is calling Qwen and validating the planned result. Both automatic and scripted routes enter this state. |
| The service has submitted the task to the Wan model and is polling for the result. |
| The Wan model has returned a successful result and a video URL. |
| The task failed due to invalid input, a planning failure, or an error from the Wan model. |
A typical workflow is: PENDING → PLANNING → GENERATING → SUCCEEDED. If input validation fails, the status changes from PENDING to FAILED. If planning fails, the task does not proceed to the GENERATING state. The service does not automatically retry planning or switch to a fallback model on failure.
6. Error codes
Error code | Attribution | Condition |
| Caller | Indicates invalid input parameters, a mismatched script, or a specific downstream error related to images, content inspection, IP infringement, or request parameters. |
| Service | Indicates a failed model call, a response parsing error, or another unlisted downstream error. |
Input validation errors
Condition | Error message |
The | product_images cannot be empty or null |
An image URL does not use the HTTP or HTTPS protocol. | product_images must be http or https URLs |
The | product_title cannot be empty or null |
The | duration must be an integer between 5 and 15 when script is empty |
The | duration must be an integer between 5 and 30 |
The | aspect_ratio must be one of 16:9, 1:1, 3:4, 9:16 |
The | resolution must be one of 720P, 1080P |
The | script does not match product images |
Other failure reasons
Condition | Error message |
Content inspection failed | input content did not pass content inspection |
Potential IP infringement | input content may infringe intellectual property |
Invalid image file | invalid image file |
Input too long | input is too long |
Invalid image or request parameter | invalid image or request parameter |
Algorithm service failed | Algorithm service failed |
Algorithm result parsing failed | Algorithm result parsing failed |
The first five error types are categorized as InvalidParameter. 'Algorithm service failed' and 'Algorithm result parsing failed' are categorized as DownstreamUnavailable.
7. Billing
You are billed only for successfully generated videos. The charge is based on the duration of the final video from the downstream service. Failed tasks do not incur charges, and their query responses do not include usage information.
Item | Billing unit | Price |
720P video output | CNY/second | 0.6 |
1080P video output | CNY/second | 1.2 |
8. Usage limits
The system selects a maximum of 10 reference images from the input images. This is the upper limit for selected images, not the limit on the number of images you can provide in a request. Generation can succeed with just one suitable image.
Prioritize providing complete, clear, and unobstructed images of the entire product. Then, add other angles, close-ups, or in-use photos of the same SKU. The service does not select text-only images, generic diagrams, images with unconfirmed consistency, or images of disassembled parts or unassembled products. The service determines SKU consistency visually from the images; this API does not accept SKU tags or verify SKU numbers from a backend system.
The service includes a person in the video only if a source image clearly shows a person using the exact same product. If an image shows only a hand or part of a body, the system does not generate a full model. If no suitable in-use images are provided, the service does not generate additional people, hands, or body parts.
The video does not include any subtitles, titles, prices, parameter values, marketing copy, extra logos, watermarks, or interface text. Any text or logos originally present on the product's surface are retained as they appear in the source images. The service converts selling points only into visual details or usage scenes supported by the images, and it generates no voice-over.