@alicloud/aidge20260428 5.2.0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/client.d.ts +98 -26
  2. package/dist/client.js +186 -26
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DiduiAreaDeductionRequest.d.ts +127 -0
  5. package/dist/models/DiduiAreaDeductionRequest.js +116 -0
  6. package/dist/models/DiduiAreaDeductionRequest.js.map +1 -0
  7. package/dist/models/DiduiAreaDeductionResponse.d.ts +19 -0
  8. package/dist/models/DiduiAreaDeductionResponse.js +69 -0
  9. package/dist/models/DiduiAreaDeductionResponse.js.map +1 -0
  10. package/dist/models/DiduiAreaDeductionResponseBody.d.ts +202 -0
  11. package/dist/models/DiduiAreaDeductionResponseBody.js +159 -0
  12. package/dist/models/DiduiAreaDeductionResponseBody.js.map +1 -0
  13. package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +46 -0
  14. package/dist/models/DiduiAreaDeductionShrinkRequest.js +64 -0
  15. package/dist/models/DiduiAreaDeductionShrinkRequest.js.map +1 -0
  16. package/dist/models/ImageRemoveRequest.d.ts +15 -0
  17. package/dist/models/ImageRemoveRequest.js +12 -0
  18. package/dist/models/ImageRemoveRequest.js.map +1 -1
  19. package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -0
  20. package/dist/models/ImageRemoveShrinkRequest.js +6 -0
  21. package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
  22. package/dist/models/ProductHotspotDetectionRequest.d.ts +38 -0
  23. package/dist/models/ProductHotspotDetectionRequest.js +65 -0
  24. package/dist/models/ProductHotspotDetectionRequest.js.map +1 -0
  25. package/dist/models/ProductHotspotDetectionResponse.d.ts +19 -0
  26. package/dist/models/ProductHotspotDetectionResponse.js +69 -0
  27. package/dist/models/ProductHotspotDetectionResponse.js.map +1 -0
  28. package/dist/models/ProductHotspotDetectionResponseBody.d.ts +154 -0
  29. package/dist/models/ProductHotspotDetectionResponseBody.js +147 -0
  30. package/dist/models/ProductHotspotDetectionResponseBody.js.map +1 -0
  31. package/dist/models/ProductHotspotDetectionShrinkRequest.d.ts +38 -0
  32. package/dist/models/ProductHotspotDetectionShrinkRequest.js +62 -0
  33. package/dist/models/ProductHotspotDetectionShrinkRequest.js.map +1 -0
  34. package/dist/models/VideoGenerationRequest.d.ts +42 -0
  35. package/dist/models/VideoGenerationRequest.js +31 -1
  36. package/dist/models/VideoGenerationRequest.js.map +1 -1
  37. package/dist/models/VideoGenerationResponseBody.d.ts +3 -3
  38. package/dist/models/model.d.ts +17 -0
  39. package/dist/models/model.js +43 -8
  40. package/dist/models/model.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/client.ts +204 -26
  43. package/src/models/DiduiAreaDeductionRequest.ts +180 -0
  44. package/src/models/DiduiAreaDeductionResponse.ts +40 -0
  45. package/src/models/DiduiAreaDeductionResponseBody.ts +287 -0
  46. package/src/models/DiduiAreaDeductionShrinkRequest.ts +65 -0
  47. package/src/models/ImageRemoveRequest.ts +27 -0
  48. package/src/models/ImageRemoveShrinkRequest.ts +21 -0
  49. package/src/models/ProductHotspotDetectionRequest.ts +58 -0
  50. package/src/models/ProductHotspotDetectionResponse.ts +40 -0
  51. package/src/models/ProductHotspotDetectionResponseBody.ts +227 -0
  52. package/src/models/ProductHotspotDetectionShrinkRequest.ts +55 -0
  53. package/src/models/VideoGenerationRequest.ts +63 -0
  54. package/src/models/VideoGenerationResponseBody.ts +3 -3
  55. package/src/models/model.ts +17 -0
package/src/client.ts CHANGED
@@ -514,6 +514,86 @@ export default class Client extends OpenApi {
514
514
  return await this.categoryMatchWithOptions(request, runtime);
515
515
  }
516
516
 
517
+ /**
518
+ * Calculates the edge lengths and floor area of a floor display based on the display image and product detection boxes.
519
+ *
520
+ * @remarks
521
+ * ## Description
522
+ * **Before using this operation, make sure that you fully understand the billing method and [pricing](https://www.aliyun.com/price/product#/ecs/detail) of the floor display area inference service.**
523
+ * - This operation infers the actual dimensions (lengths of two edges) and floor area of a floor display based on the provided overall display image, SKU knowledge base, and product location information in the image.
524
+ * - Make sure that the knowledge base corresponding to the specified `RagId` belongs to the caller and is in the available (`AVAILABLE`) state.
525
+ * - The `Products` array must contain at least one product item, and each product item must have at least one bounding box defined in `Boxes`.
526
+ * - All coordinate values are represented in a normalized coordinate system ranging from 0 to 1000. Make sure that the input satisfies the relationships `Left < Right` and `Top < Bottom`.
527
+ * - Set a reasonable timeout period when calling this operation (recommended not to exceed 300 seconds) to avoid failures caused by network latency or high processing complexity.
528
+ * - For calls in production environments, use the POP Action method. The internal REST address is primarily used for joint debugging during the development and testing phase.
529
+ *
530
+ * @param tmpReq - DiduiAreaDeductionRequest
531
+ * @param runtime - runtime options for this request RuntimeOptions
532
+ * @returns DiduiAreaDeductionResponse
533
+ */
534
+ async diduiAreaDeductionWithOptions(tmpReq: $_model.DiduiAreaDeductionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DiduiAreaDeductionResponse> {
535
+ tmpReq.validate();
536
+ let request = new $_model.DiduiAreaDeductionShrinkRequest({ });
537
+ OpenApiUtil.convert(tmpReq, request);
538
+ if (!$dara.isNull(tmpReq.products)) {
539
+ request.productsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.products, "Products", "json");
540
+ }
541
+
542
+ let query = { };
543
+ if (!$dara.isNull(request.productsShrink)) {
544
+ query["Products"] = request.productsShrink;
545
+ }
546
+
547
+ if (!$dara.isNull(request.ragId)) {
548
+ query["RagId"] = request.ragId;
549
+ }
550
+
551
+ if (!$dara.isNull(request.reqId)) {
552
+ query["ReqId"] = request.reqId;
553
+ }
554
+
555
+ if (!$dara.isNull(request.targetImageUrl)) {
556
+ query["TargetImageUrl"] = request.targetImageUrl;
557
+ }
558
+
559
+ let req = new $OpenApiUtil.OpenApiRequest({
560
+ query: OpenApiUtil.query(query),
561
+ });
562
+ let params = new $OpenApiUtil.Params({
563
+ action: "DiduiAreaDeduction",
564
+ version: "2026-04-28",
565
+ protocol: "HTTPS",
566
+ pathname: "/",
567
+ method: "POST",
568
+ authType: "AK",
569
+ style: "RPC",
570
+ reqBodyType: "formData",
571
+ bodyType: "json",
572
+ });
573
+ return $dara.cast<$_model.DiduiAreaDeductionResponse>(await this.callApi(params, req, runtime), new $_model.DiduiAreaDeductionResponse({}));
574
+ }
575
+
576
+ /**
577
+ * Calculates the edge lengths and floor area of a floor display based on the display image and product detection boxes.
578
+ *
579
+ * @remarks
580
+ * ## Description
581
+ * **Before using this operation, make sure that you fully understand the billing method and [pricing](https://www.aliyun.com/price/product#/ecs/detail) of the floor display area inference service.**
582
+ * - This operation infers the actual dimensions (lengths of two edges) and floor area of a floor display based on the provided overall display image, SKU knowledge base, and product location information in the image.
583
+ * - Make sure that the knowledge base corresponding to the specified `RagId` belongs to the caller and is in the available (`AVAILABLE`) state.
584
+ * - The `Products` array must contain at least one product item, and each product item must have at least one bounding box defined in `Boxes`.
585
+ * - All coordinate values are represented in a normalized coordinate system ranging from 0 to 1000. Make sure that the input satisfies the relationships `Left < Right` and `Top < Bottom`.
586
+ * - Set a reasonable timeout period when calling this operation (recommended not to exceed 300 seconds) to avoid failures caused by network latency or high processing complexity.
587
+ * - For calls in production environments, use the POP Action method. The internal REST address is primarily used for joint debugging during the development and testing phase.
588
+ *
589
+ * @param request - DiduiAreaDeductionRequest
590
+ * @returns DiduiAreaDeductionResponse
591
+ */
592
+ async diduiAreaDeduction(request: $_model.DiduiAreaDeductionRequest): Promise<$_model.DiduiAreaDeductionResponse> {
593
+ let runtime = new $dara.RuntimeOptions({ });
594
+ return await this.diduiAreaDeductionWithOptions(request, runtime);
595
+ }
596
+
517
597
  /**
518
598
  * Translates documents between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas: - Content accuracy: translation accuracy, parameter and unit accuracy - Structural integrity: overall layout continuity, page margin and layout preservation.
519
599
  *
@@ -1199,6 +1279,14 @@ export default class Client extends OpenApi {
1199
1279
  request.objectRemoveElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectRemoveElements, "ObjectRemoveElements", "json");
1200
1280
  }
1201
1281
 
1282
+ if (!$dara.isNull(tmpReq.userImage)) {
1283
+ request.userImageShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userImage, "UserImage", "json");
1284
+ }
1285
+
1286
+ if (!$dara.isNull(tmpReq.userText)) {
1287
+ request.userTextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userText, "UserText", "json");
1288
+ }
1289
+
1202
1290
  let query = { };
1203
1291
  if (!$dara.isNull(request.imageUrl)) {
1204
1292
  query["ImageUrl"] = request.imageUrl;
@@ -1216,6 +1304,18 @@ export default class Client extends OpenApi {
1216
1304
  query["ObjectRemoveElements"] = request.objectRemoveElementsShrink;
1217
1305
  }
1218
1306
 
1307
+ if (!$dara.isNull(request.position)) {
1308
+ query["Position"] = request.position;
1309
+ }
1310
+
1311
+ if (!$dara.isNull(request.userImageShrink)) {
1312
+ query["UserImage"] = request.userImageShrink;
1313
+ }
1314
+
1315
+ if (!$dara.isNull(request.userTextShrink)) {
1316
+ query["UserText"] = request.userTextShrink;
1317
+ }
1318
+
1219
1319
  let req = new $OpenApiUtil.OpenApiRequest({
1220
1320
  query: OpenApiUtil.query(query),
1221
1321
  });
@@ -2028,6 +2128,84 @@ export default class Client extends OpenApi {
2028
2128
  return await this.prepaidTextTranslateWithOptions(request, runtime);
2029
2129
  }
2030
2130
 
2131
+ /**
2132
+ * Automatically identifies and locates specified products in an image based on a multimodal foundation model.
2133
+ *
2134
+ * @remarks
2135
+ * ## Request description
2136
+ * **Before using this operation, make sure that you fully understand the billing method and [pricing](https://www.aliyun.com/price/product#/ecs/detail) of the product hotzone recognition service.**
2137
+ * This API automatically identifies and locates specified products in a target scene image based on the provided target scene image and product reference images, and outputs the product name and normalized bounding box. Each request takes one target scene image and a set of product reference images. If the same case has multiple target images, call the operation separately for each target image.
2138
+ * ### Precautions
2139
+ * - Image URLs must use HTTPS and be accessible by the server.
2140
+ * - Common image formats such as JPEG, PNG, and WebP are supported.
2141
+ * - Each image should not exceed 2 MB.
2142
+ * - When using signed URLs, set the validity period to at least 30 minutes.
2143
+ * - If the same case has multiple target scene images, call the operation separately for each target image. The reference image list can be reused.
2144
+ *
2145
+ * @param tmpReq - ProductHotspotDetectionRequest
2146
+ * @param runtime - runtime options for this request RuntimeOptions
2147
+ * @returns ProductHotspotDetectionResponse
2148
+ */
2149
+ async productHotspotDetectionWithOptions(tmpReq: $_model.ProductHotspotDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ProductHotspotDetectionResponse> {
2150
+ tmpReq.validate();
2151
+ let request = new $_model.ProductHotspotDetectionShrinkRequest({ });
2152
+ OpenApiUtil.convert(tmpReq, request);
2153
+ if (!$dara.isNull(tmpReq.referenceImageUrls)) {
2154
+ request.referenceImageUrlsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.referenceImageUrls, "ReferenceImageUrls", "json");
2155
+ }
2156
+
2157
+ let query = { };
2158
+ if (!$dara.isNull(request.referenceImageUrlsShrink)) {
2159
+ query["ReferenceImageUrls"] = request.referenceImageUrlsShrink;
2160
+ }
2161
+
2162
+ if (!$dara.isNull(request.reqId)) {
2163
+ query["ReqId"] = request.reqId;
2164
+ }
2165
+
2166
+ if (!$dara.isNull(request.targetImageUrl)) {
2167
+ query["TargetImageUrl"] = request.targetImageUrl;
2168
+ }
2169
+
2170
+ let req = new $OpenApiUtil.OpenApiRequest({
2171
+ query: OpenApiUtil.query(query),
2172
+ });
2173
+ let params = new $OpenApiUtil.Params({
2174
+ action: "ProductHotspotDetection",
2175
+ version: "2026-04-28",
2176
+ protocol: "HTTPS",
2177
+ pathname: "/",
2178
+ method: "POST",
2179
+ authType: "AK",
2180
+ style: "RPC",
2181
+ reqBodyType: "formData",
2182
+ bodyType: "json",
2183
+ });
2184
+ return $dara.cast<$_model.ProductHotspotDetectionResponse>(await this.callApi(params, req, runtime), new $_model.ProductHotspotDetectionResponse({}));
2185
+ }
2186
+
2187
+ /**
2188
+ * Automatically identifies and locates specified products in an image based on a multimodal foundation model.
2189
+ *
2190
+ * @remarks
2191
+ * ## Request description
2192
+ * **Before using this operation, make sure that you fully understand the billing method and [pricing](https://www.aliyun.com/price/product#/ecs/detail) of the product hotzone recognition service.**
2193
+ * This API automatically identifies and locates specified products in a target scene image based on the provided target scene image and product reference images, and outputs the product name and normalized bounding box. Each request takes one target scene image and a set of product reference images. If the same case has multiple target images, call the operation separately for each target image.
2194
+ * ### Precautions
2195
+ * - Image URLs must use HTTPS and be accessible by the server.
2196
+ * - Common image formats such as JPEG, PNG, and WebP are supported.
2197
+ * - Each image should not exceed 2 MB.
2198
+ * - When using signed URLs, set the validity period to at least 30 minutes.
2199
+ * - If the same case has multiple target scene images, call the operation separately for each target image. The reference image list can be reused.
2200
+ *
2201
+ * @param request - ProductHotspotDetectionRequest
2202
+ * @returns ProductHotspotDetectionResponse
2203
+ */
2204
+ async productHotspotDetection(request: $_model.ProductHotspotDetectionRequest): Promise<$_model.ProductHotspotDetectionResponse> {
2205
+ let runtime = new $dara.RuntimeOptions({ });
2206
+ return await this.productHotspotDetectionWithOptions(request, runtime);
2207
+ }
2208
+
2031
2209
  /**
2032
2210
  * Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
2033
2211
  *
@@ -2647,25 +2825,25 @@ export default class Client extends OpenApi {
2647
2825
  }
2648
2826
 
2649
2827
  /**
2650
- * The E-commerce AI Video Generation Agent is designed for e-commerce merchants and platforms. Based on product main images, titles, selling points, and other information, it automatically generates 5–30 second product showcase short videos, helping customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P, supports both single-product quick calls and multi-product batch generation, catering to both daily operations and large-scale product content production needs. Currently, it covers all apparel categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to skincare, cosmetics, food and beverages, home appliances, and other core e-commerce categories.
2828
+ * Invokes the e-commerce AI video generation agent for e-commerce merchants and platforms. Based on product main images, titles, selling points, and other information, it automatically generates 5–30 second product showcase short videos, helping customers efficiently produce and distribute e-commerce content. The service supports multiple resolution outputs such as 720P and 1080P, single-product quick invocation and multi-product batch generation, catering to both daily operations and large-scale product content production needs. Currently overwrites all apparel categories (tops, pants, skirts, suits, underwear, swimwear, etc.), and is gradually expanding to skincare, cosmetics, food and beverages, home appliances, and other core e-commerce categories.
2651
2829
  *
2652
2830
  * @remarks
2653
2831
  * # Scenarios
2654
- * - Sellers/platforms batch-generate product short videos: Supports multiple video aspect ratios and sizes (3:4, 9:16), suitable for product detail page video slots, product homepage displays, information feed placements, short video content marketing, campaign material, and other scenarios.
2655
- * - New product launches with rapid initial video material generation: When merchants have a large number of new products to list, they only need to upload product images and titles to quickly generate product showcase videos, model try-on videos, voiceover explanation videos, and other content, helping merchants rapidly complete material deployment during the launch phase.
2832
+ * - Batch generation of product short videos for sellers/platforms: Supports multiple video aspect ratios and sizes (3:4, 9:16), suitable for product detail page video slots, product homepage display, information feed placement, short video content marketing, campaign material, and other scenarios.
2833
+ * - Quick generation of initial video assets for new product launches: When merchants have a large number of new products to list, they only need to upload product images and titles to quickly generate product showcase videos, model try-on videos, voiceover explanation videos, and other content, helping merchants rapidly complete asset creation during the launch phase.
2656
2834
  * - High-fidelity apparel display: Generates model showcase videos that closely resemble real commercial photography based on product main images, with optimized capabilities for silhouette reproduction, fabric texture preservation, accurate color rendering, and consistent detail stability. Supports common e-commerce display methods such as garment try-on, turning, walking, close-up shots, and multi-angle switching.
2657
- * - High-quality commercial photography models: Includes 20+ built-in target audience model libraries covering plus-size women, plus-size men, swimwear, youthful style, smart casual commuter, young casual, business menswear, sports and fitness, and other body types, skin tones, and ethnicities. Supports standing poses, side views, walking displays, partial close-ups, and other commercial photography expressions.
2658
- * - Standard product explanations and other high-frequency e-commerce scenarios: Suitable for standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, household cleaning products, and 3C digital products. Can quickly generate product explanation videos based on product main images, titles, selling point information, and explanation scripts.
2659
- * - Multi-product, multi-selling-point testing to improve placement efficiency: For information feed advertising, short video placement, and content marketing scenarios, quickly generates multiple versions of video materials, enabling enterprises to validate conversion effects of different selling points and presentation formats at low cost, improving placement ROI.
2835
+ * - High-quality commercial photography models: Includes 20+ built-in target audience model libraries covering plus-size women, plus-size men, swimwear, youthful style, smart casual commute, young casual, business menswear, sports and fitness, and other body types, skin tones, and ethnicities. Supports standing poses, side views, walking displays, partial close-ups, and other commercial photography expressions.
2836
+ * - Standard product explanation and other high-frequency e-commerce scenarios: Applicable to standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, household cleaning products, and 3C digital products. Quickly generates product explanation videos based on product main images, titles, selling points, and explanation scripts.
2837
+ * - Multi-product and multi-selling-point testing to improve placement efficiency: For information feed advertising, short video placement, and content marketing scenarios, quickly generates multiple versions of video assets, enabling enterprises to validate conversion effects of different selling points and presentation formats at low cost, improving placement ROI.
2660
2838
  * # Features
2661
- * - Fully automated end-to-end batch generation with zero Prompt threshold: Callers only need to provide product image URLs and titles. The system automatically completes the entire process from product understanding, storyboard planning to video generation, without manual Prompt writing, template selection, or repeated parameter tuning. Built-in multi-Agent capabilities including product understanding, visual quality inspection, script planning, and cinematography direction significantly lower the usage barrier.
2662
- * - Highly stable generation with low discard rate: Uses a deterministic generation pipeline and multi-layer quality control mechanisms to output usable materials with fewer retries, reducing invalid generation and resource waste, making overall production costs more controllable.
2663
- * - E-commerce-specific product fidelity capability: Built-in multi-round quality inspection Agent locks product state throughout video generation (e.g., zippers won\\"t be unzipped, sleeves won\\"t be lowered, prints won\\"t disappear), ensuring product consistency through multi-layer defense of "script rewriting + explicit constraint injection + failure-aware retry."
2664
- * - Reference image priority + 6-axis consistency verification: Uses a Reference-Image-First generation paradigm with the original product image as the sole visual truth source. Automatically performs 6-dimensional VL diagnostics (color drift, pattern loss, contour deviation, structural addition/removal, model matching, stain detection), fundamentally preventing generated images from deviating from the product.
2665
- * - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The Agent autonomously plans independent storyboards to showcase product effects in different scenarios. Also supports fixed scene mode for in-depth product presentation under a unified visual style.
2839
+ * - Fully automated end-to-end batch generation with zero prompt threshold: Callers only need to provide product image URLs and titles. The system automatically completes the entire process from product understanding, storyboard planning, to video generation without manual prompt writing, template selection, or repeated parameter tuning. Built-in multi-agent capabilities including product understanding, visual quality inspection, script planning, and cinematography direction significantly lower the usage barrier.
2840
+ * - Highly stable generation with low waste rate: Uses a deterministic generation pipeline and multi-layer quality control mechanism to output usable assets with fewer retries, reducing invalid generation and resource waste, making overall production costs more controllable.
2841
+ * - E-commerce-specific product fidelity: Built-in multi-round quality inspection agents lock product state throughout video generation (e.g., zippers won\\"t be unzipped, sleeves won\\"t be lowered, prints won\\"t disappear), ensuring product consistency through multi-layer defense of "script rewriting + explicit constraint injection + failure-aware retry."
2842
+ * - Reference image priority + 6-axis consistency verification: Adopts a Reference-Image-First generation paradigm using the original product image as the sole visual truth source, automatically performing 6-dimensional VL diagnostics (color drift, pattern loss, contour deviation, structural addition/removal, model matching, stain detection), fundamentally eliminating the problem of generated images not resembling the product.
2843
+ * - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The agent autonomously plans independent storyboards to showcase product effects in different scenarios. Also supports fixed scene mode for in-depth product presentation under a unified visual style.
2666
2844
  * - Cinematic camera movement capabilities: Built-in advanced camera modes including bullet time, Grammy-style slow motion, 360° orbital rotation, and full-body model rotation display, achieving deterministic output through segmented precise control.
2667
- * - Model library and customization services: Built-in multi-type model resource library. Supports merchants specifying fixed models, customizing exclusive model personas, and long-term brand visual identity binding to ensure brand visual consistency.
2668
- * - Adapted for high-frequency e-commerce content scenarios: Supports multiple resolutions such as 720P and 1080P, and multiple aspect ratios such as 3:4 and 9:16. Suitable for product detail page video slots, product homepage video displays, waterfall/information feed placements, campaign materials, and new product and promotional video generation.
2845
+ * - Model library and customization services: Built-in multi-type model resource library supporting merchants in specifying fixed models, customizing exclusive model personas, and long-term brand visual identity binding to ensure brand visual consistency.
2846
+ * - Adapted to high-frequency e-commerce content scenarios: Supports multiple resolutions such as 720P and 1080P, and multiple aspect ratios such as 3:4 and 9:16, suitable for product detail page video slots, product homepage video display, waterfall/information feed placement, campaign material, and new product and promotional video generation.
2669
2847
  *
2670
2848
  * @param tmpReq - VideoGenerationRequest
2671
2849
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2718,25 +2896,25 @@ export default class Client extends OpenApi {
2718
2896
  }
2719
2897
 
2720
2898
  /**
2721
- * The E-commerce AI Video Generation Agent is designed for e-commerce merchants and platforms. Based on product main images, titles, selling points, and other information, it automatically generates 5–30 second product showcase short videos, helping customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P, supports both single-product quick calls and multi-product batch generation, catering to both daily operations and large-scale product content production needs. Currently, it covers all apparel categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to skincare, cosmetics, food and beverages, home appliances, and other core e-commerce categories.
2899
+ * Invokes the e-commerce AI video generation agent for e-commerce merchants and platforms. Based on product main images, titles, selling points, and other information, it automatically generates 5–30 second product showcase short videos, helping customers efficiently produce and distribute e-commerce content. The service supports multiple resolution outputs such as 720P and 1080P, single-product quick invocation and multi-product batch generation, catering to both daily operations and large-scale product content production needs. Currently overwrites all apparel categories (tops, pants, skirts, suits, underwear, swimwear, etc.), and is gradually expanding to skincare, cosmetics, food and beverages, home appliances, and other core e-commerce categories.
2722
2900
  *
2723
2901
  * @remarks
2724
2902
  * # Scenarios
2725
- * - Sellers/platforms batch-generate product short videos: Supports multiple video aspect ratios and sizes (3:4, 9:16), suitable for product detail page video slots, product homepage displays, information feed placements, short video content marketing, campaign material, and other scenarios.
2726
- * - New product launches with rapid initial video material generation: When merchants have a large number of new products to list, they only need to upload product images and titles to quickly generate product showcase videos, model try-on videos, voiceover explanation videos, and other content, helping merchants rapidly complete material deployment during the launch phase.
2903
+ * - Batch generation of product short videos for sellers/platforms: Supports multiple video aspect ratios and sizes (3:4, 9:16), suitable for product detail page video slots, product homepage display, information feed placement, short video content marketing, campaign material, and other scenarios.
2904
+ * - Quick generation of initial video assets for new product launches: When merchants have a large number of new products to list, they only need to upload product images and titles to quickly generate product showcase videos, model try-on videos, voiceover explanation videos, and other content, helping merchants rapidly complete asset creation during the launch phase.
2727
2905
  * - High-fidelity apparel display: Generates model showcase videos that closely resemble real commercial photography based on product main images, with optimized capabilities for silhouette reproduction, fabric texture preservation, accurate color rendering, and consistent detail stability. Supports common e-commerce display methods such as garment try-on, turning, walking, close-up shots, and multi-angle switching.
2728
- * - High-quality commercial photography models: Includes 20+ built-in target audience model libraries covering plus-size women, plus-size men, swimwear, youthful style, smart casual commuter, young casual, business menswear, sports and fitness, and other body types, skin tones, and ethnicities. Supports standing poses, side views, walking displays, partial close-ups, and other commercial photography expressions.
2729
- * - Standard product explanations and other high-frequency e-commerce scenarios: Suitable for standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, household cleaning products, and 3C digital products. Can quickly generate product explanation videos based on product main images, titles, selling point information, and explanation scripts.
2730
- * - Multi-product, multi-selling-point testing to improve placement efficiency: For information feed advertising, short video placement, and content marketing scenarios, quickly generates multiple versions of video materials, enabling enterprises to validate conversion effects of different selling points and presentation formats at low cost, improving placement ROI.
2906
+ * - High-quality commercial photography models: Includes 20+ built-in target audience model libraries covering plus-size women, plus-size men, swimwear, youthful style, smart casual commute, young casual, business menswear, sports and fitness, and other body types, skin tones, and ethnicities. Supports standing poses, side views, walking displays, partial close-ups, and other commercial photography expressions.
2907
+ * - Standard product explanation and other high-frequency e-commerce scenarios: Applicable to standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, household cleaning products, and 3C digital products. Quickly generates product explanation videos based on product main images, titles, selling points, and explanation scripts.
2908
+ * - Multi-product and multi-selling-point testing to improve placement efficiency: For information feed advertising, short video placement, and content marketing scenarios, quickly generates multiple versions of video assets, enabling enterprises to validate conversion effects of different selling points and presentation formats at low cost, improving placement ROI.
2731
2909
  * # Features
2732
- * - Fully automated end-to-end batch generation with zero Prompt threshold: Callers only need to provide product image URLs and titles. The system automatically completes the entire process from product understanding, storyboard planning to video generation, without manual Prompt writing, template selection, or repeated parameter tuning. Built-in multi-Agent capabilities including product understanding, visual quality inspection, script planning, and cinematography direction significantly lower the usage barrier.
2733
- * - Highly stable generation with low discard rate: Uses a deterministic generation pipeline and multi-layer quality control mechanisms to output usable materials with fewer retries, reducing invalid generation and resource waste, making overall production costs more controllable.
2734
- * - E-commerce-specific product fidelity capability: Built-in multi-round quality inspection Agent locks product state throughout video generation (e.g., zippers won\\"t be unzipped, sleeves won\\"t be lowered, prints won\\"t disappear), ensuring product consistency through multi-layer defense of "script rewriting + explicit constraint injection + failure-aware retry."
2735
- * - Reference image priority + 6-axis consistency verification: Uses a Reference-Image-First generation paradigm with the original product image as the sole visual truth source. Automatically performs 6-dimensional VL diagnostics (color drift, pattern loss, contour deviation, structural addition/removal, model matching, stain detection), fundamentally preventing generated images from deviating from the product.
2736
- * - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The Agent autonomously plans independent storyboards to showcase product effects in different scenarios. Also supports fixed scene mode for in-depth product presentation under a unified visual style.
2910
+ * - Fully automated end-to-end batch generation with zero prompt threshold: Callers only need to provide product image URLs and titles. The system automatically completes the entire process from product understanding, storyboard planning, to video generation without manual prompt writing, template selection, or repeated parameter tuning. Built-in multi-agent capabilities including product understanding, visual quality inspection, script planning, and cinematography direction significantly lower the usage barrier.
2911
+ * - Highly stable generation with low waste rate: Uses a deterministic generation pipeline and multi-layer quality control mechanism to output usable assets with fewer retries, reducing invalid generation and resource waste, making overall production costs more controllable.
2912
+ * - E-commerce-specific product fidelity: Built-in multi-round quality inspection agents lock product state throughout video generation (e.g., zippers won\\"t be unzipped, sleeves won\\"t be lowered, prints won\\"t disappear), ensuring product consistency through multi-layer defense of "script rewriting + explicit constraint injection + failure-aware retry."
2913
+ * - Reference image priority + 6-axis consistency verification: Adopts a Reference-Image-First generation paradigm using the original product image as the sole visual truth source, automatically performing 6-dimensional VL diagnostics (color drift, pattern loss, contour deviation, structural addition/removal, model matching, stain detection), fundamentally eliminating the problem of generated images not resembling the product.
2914
+ * - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The agent autonomously plans independent storyboards to showcase product effects in different scenarios. Also supports fixed scene mode for in-depth product presentation under a unified visual style.
2737
2915
  * - Cinematic camera movement capabilities: Built-in advanced camera modes including bullet time, Grammy-style slow motion, 360° orbital rotation, and full-body model rotation display, achieving deterministic output through segmented precise control.
2738
- * - Model library and customization services: Built-in multi-type model resource library. Supports merchants specifying fixed models, customizing exclusive model personas, and long-term brand visual identity binding to ensure brand visual consistency.
2739
- * - Adapted for high-frequency e-commerce content scenarios: Supports multiple resolutions such as 720P and 1080P, and multiple aspect ratios such as 3:4 and 9:16. Suitable for product detail page video slots, product homepage video displays, waterfall/information feed placements, campaign materials, and new product and promotional video generation.
2916
+ * - Model library and customization services: Built-in multi-type model resource library supporting merchants in specifying fixed models, customizing exclusive model personas, and long-term brand visual identity binding to ensure brand visual consistency.
2917
+ * - Adapted to high-frequency e-commerce content scenarios: Supports multiple resolutions such as 720P and 1080P, and multiple aspect ratios such as 3:4 and 9:16, suitable for product detail page video slots, product homepage video display, waterfall/information feed placement, campaign material, and new product and promotional video generation.
2740
2918
  *
2741
2919
  * @param request - VideoGenerationRequest
2742
2920
  * @returns VideoGenerationResponse
@@ -0,0 +1,180 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class DiduiAreaDeductionRequestProductsBoxes extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The bottom boundary of the detection box.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * 689
14
+ */
15
+ bottom?: number;
16
+ /**
17
+ * @remarks
18
+ * The left boundary of the detection box.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * 763
24
+ */
25
+ left?: number;
26
+ /**
27
+ * @remarks
28
+ * The right boundary of the detection box.
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * 904
34
+ */
35
+ right?: number;
36
+ /**
37
+ * @remarks
38
+ * The top boundary of the detection box.
39
+ *
40
+ * This parameter is required.
41
+ *
42
+ * @example
43
+ * 606
44
+ */
45
+ top?: number;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ bottom: 'Bottom',
49
+ left: 'Left',
50
+ right: 'Right',
51
+ top: 'Top',
52
+ };
53
+ }
54
+
55
+ static types(): { [key: string]: any } {
56
+ return {
57
+ bottom: 'number',
58
+ left: 'number',
59
+ right: 'number',
60
+ top: 'number',
61
+ };
62
+ }
63
+
64
+ validate() {
65
+ super.validate();
66
+ }
67
+
68
+ constructor(map?: { [key: string]: any }) {
69
+ super(map);
70
+ }
71
+ }
72
+
73
+ export class DiduiAreaDeductionRequestProducts extends $dara.Model {
74
+ /**
75
+ * @remarks
76
+ * The detection boxes for the current SKU. Coordinate values range from 0 to 1000.
77
+ *
78
+ * This parameter is required.
79
+ */
80
+ boxes?: DiduiAreaDeductionRequestProductsBoxes[];
81
+ /**
82
+ * @remarks
83
+ * The unique ID of the SKU.
84
+ *
85
+ * This parameter is required.
86
+ *
87
+ * @example
88
+ * 6901234579
89
+ */
90
+ skuId?: string;
91
+ static names(): { [key: string]: string } {
92
+ return {
93
+ boxes: 'Boxes',
94
+ skuId: 'SkuId',
95
+ };
96
+ }
97
+
98
+ static types(): { [key: string]: any } {
99
+ return {
100
+ boxes: { 'type': 'array', 'itemType': DiduiAreaDeductionRequestProductsBoxes },
101
+ skuId: 'string',
102
+ };
103
+ }
104
+
105
+ validate() {
106
+ if(Array.isArray(this.boxes)) {
107
+ $dara.Model.validateArray(this.boxes);
108
+ }
109
+ super.validate();
110
+ }
111
+
112
+ constructor(map?: { [key: string]: any }) {
113
+ super(map);
114
+ }
115
+ }
116
+
117
+ export class DiduiAreaDeductionRequest extends $dara.Model {
118
+ /**
119
+ * @remarks
120
+ * The list of products and their detection boxes.
121
+ *
122
+ * This parameter is required.
123
+ */
124
+ products?: DiduiAreaDeductionRequestProducts[];
125
+ /**
126
+ * @remarks
127
+ * The ID of the customer-specific SKU vector database that determines which database is used for retrieval. The database must be created in advance through the database creation process.
128
+ *
129
+ * @example
130
+ * rag_xxx
131
+ */
132
+ ragId?: string;
133
+ /**
134
+ * @remarks
135
+ * The optional business request ID used for Tracing Analysis.
136
+ *
137
+ * @example
138
+ * didui-request-001
139
+ */
140
+ reqId?: string;
141
+ /**
142
+ * @remarks
143
+ * The HTTPS URL of the overall floor display image.
144
+ *
145
+ * This parameter is required.
146
+ *
147
+ * @example
148
+ * https://example.com/didui.jpg
149
+ */
150
+ targetImageUrl?: string;
151
+ static names(): { [key: string]: string } {
152
+ return {
153
+ products: 'Products',
154
+ ragId: 'RagId',
155
+ reqId: 'ReqId',
156
+ targetImageUrl: 'TargetImageUrl',
157
+ };
158
+ }
159
+
160
+ static types(): { [key: string]: any } {
161
+ return {
162
+ products: { 'type': 'array', 'itemType': DiduiAreaDeductionRequestProducts },
163
+ ragId: 'string',
164
+ reqId: 'string',
165
+ targetImageUrl: 'string',
166
+ };
167
+ }
168
+
169
+ validate() {
170
+ if(Array.isArray(this.products)) {
171
+ $dara.Model.validateArray(this.products);
172
+ }
173
+ super.validate();
174
+ }
175
+
176
+ constructor(map?: { [key: string]: any }) {
177
+ super(map);
178
+ }
179
+ }
180
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { DiduiAreaDeductionResponseBody } from "./DiduiAreaDeductionResponseBody";
4
+
5
+
6
+ export class DiduiAreaDeductionResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: DiduiAreaDeductionResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: DiduiAreaDeductionResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+