@alicloud/aidge20260428 5.2.0 → 5.3.0
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.
- package/dist/client.d.ts +98 -26
- package/dist/client.js +171 -26
- package/dist/client.js.map +1 -1
- package/dist/models/DiduiAreaDeductionRequest.d.ts +105 -0
- package/dist/models/DiduiAreaDeductionRequest.js +116 -0
- package/dist/models/DiduiAreaDeductionRequest.js.map +1 -0
- package/dist/models/DiduiAreaDeductionResponse.d.ts +19 -0
- package/dist/models/DiduiAreaDeductionResponse.js +69 -0
- package/dist/models/DiduiAreaDeductionResponse.js.map +1 -0
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +139 -0
- package/dist/models/DiduiAreaDeductionResponseBody.js +159 -0
- package/dist/models/DiduiAreaDeductionResponseBody.js.map +1 -0
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +36 -0
- package/dist/models/DiduiAreaDeductionShrinkRequest.js +64 -0
- package/dist/models/DiduiAreaDeductionShrinkRequest.js.map +1 -0
- package/dist/models/ProductHotspotDetectionRequest.d.ts +38 -0
- package/dist/models/ProductHotspotDetectionRequest.js +65 -0
- package/dist/models/ProductHotspotDetectionRequest.js.map +1 -0
- package/dist/models/ProductHotspotDetectionResponse.d.ts +19 -0
- package/dist/models/ProductHotspotDetectionResponse.js +69 -0
- package/dist/models/ProductHotspotDetectionResponse.js.map +1 -0
- package/dist/models/ProductHotspotDetectionResponseBody.d.ts +154 -0
- package/dist/models/ProductHotspotDetectionResponseBody.js +147 -0
- package/dist/models/ProductHotspotDetectionResponseBody.js.map +1 -0
- package/dist/models/ProductHotspotDetectionShrinkRequest.d.ts +38 -0
- package/dist/models/ProductHotspotDetectionShrinkRequest.js +62 -0
- package/dist/models/ProductHotspotDetectionShrinkRequest.js.map +1 -0
- package/dist/models/VideoGenerationRequest.d.ts +42 -0
- package/dist/models/VideoGenerationRequest.js +31 -1
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +3 -3
- package/dist/models/model.d.ts +17 -0
- package/dist/models/model.js +43 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +184 -26
- package/src/models/DiduiAreaDeductionRequest.ts +158 -0
- package/src/models/DiduiAreaDeductionResponse.ts +40 -0
- package/src/models/DiduiAreaDeductionResponseBody.ts +224 -0
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +55 -0
- package/src/models/ProductHotspotDetectionRequest.ts +58 -0
- package/src/models/ProductHotspotDetectionResponse.ts +40 -0
- package/src/models/ProductHotspotDetectionResponseBody.ts +227 -0
- package/src/models/ProductHotspotDetectionShrinkRequest.ts +55 -0
- package/src/models/VideoGenerationRequest.ts +63 -0
- package/src/models/VideoGenerationResponseBody.ts +3 -3
- package/src/models/model.ts +17 -0
package/dist/client.d.ts
CHANGED
|
@@ -242,6 +242,41 @@ export default class Client extends OpenApi {
|
|
|
242
242
|
* @returns CategoryMatchResponse
|
|
243
243
|
*/
|
|
244
244
|
categoryMatch(request: $_model.CategoryMatchRequest): Promise<$_model.CategoryMatchResponse>;
|
|
245
|
+
/**
|
|
246
|
+
* 地堆面积推理
|
|
247
|
+
*
|
|
248
|
+
* @remarks
|
|
249
|
+
* ## 请求说明
|
|
250
|
+
* **请确保在使用该接口前,已充分了解地堆面积推理产品的收费方式和[价格](https://www.aliyun.com/price/product#/ecs/detail)。**
|
|
251
|
+
* - 本接口用于通过提供的地堆整体图、SKU知识库以及商品在图片中的位置信息来推断地堆的实际尺寸(两条边的长度)及其占地面积。
|
|
252
|
+
* - 确保提供的`RagId`对应的知识库属于调用者且状态为可用(`AVAILABLE`)。
|
|
253
|
+
* - `Products`数组中至少包含一个商品项,并且每个商品项下的`Boxes`也至少需要定义一个边界框。
|
|
254
|
+
* - 所有坐标值均采用0到1000之间的归一化坐标系表示,请确保输入时满足`Left < Right`与`Top < Bottom`的关系。
|
|
255
|
+
* - 调用此API时请设置合理的超时时间(建议不超过300秒),以避免因网络延迟或处理复杂度高导致的操作失败。
|
|
256
|
+
* - 对于正式环境下的调用,请使用POP Action方式接入;内部REST地址主要用于开发测试阶段的联调工作。
|
|
257
|
+
*
|
|
258
|
+
* @param tmpReq - DiduiAreaDeductionRequest
|
|
259
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
260
|
+
* @returns DiduiAreaDeductionResponse
|
|
261
|
+
*/
|
|
262
|
+
diduiAreaDeductionWithOptions(tmpReq: $_model.DiduiAreaDeductionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DiduiAreaDeductionResponse>;
|
|
263
|
+
/**
|
|
264
|
+
* 地堆面积推理
|
|
265
|
+
*
|
|
266
|
+
* @remarks
|
|
267
|
+
* ## 请求说明
|
|
268
|
+
* **请确保在使用该接口前,已充分了解地堆面积推理产品的收费方式和[价格](https://www.aliyun.com/price/product#/ecs/detail)。**
|
|
269
|
+
* - 本接口用于通过提供的地堆整体图、SKU知识库以及商品在图片中的位置信息来推断地堆的实际尺寸(两条边的长度)及其占地面积。
|
|
270
|
+
* - 确保提供的`RagId`对应的知识库属于调用者且状态为可用(`AVAILABLE`)。
|
|
271
|
+
* - `Products`数组中至少包含一个商品项,并且每个商品项下的`Boxes`也至少需要定义一个边界框。
|
|
272
|
+
* - 所有坐标值均采用0到1000之间的归一化坐标系表示,请确保输入时满足`Left < Right`与`Top < Bottom`的关系。
|
|
273
|
+
* - 调用此API时请设置合理的超时时间(建议不超过300秒),以避免因网络延迟或处理复杂度高导致的操作失败。
|
|
274
|
+
* - 对于正式环境下的调用,请使用POP Action方式接入;内部REST地址主要用于开发测试阶段的联调工作。
|
|
275
|
+
*
|
|
276
|
+
* @param request - DiduiAreaDeductionRequest
|
|
277
|
+
* @returns DiduiAreaDeductionResponse
|
|
278
|
+
*/
|
|
279
|
+
diduiAreaDeduction(request: $_model.DiduiAreaDeductionRequest): Promise<$_model.DiduiAreaDeductionResponse>;
|
|
245
280
|
/**
|
|
246
281
|
* 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.
|
|
247
282
|
*
|
|
@@ -1140,6 +1175,43 @@ export default class Client extends OpenApi {
|
|
|
1140
1175
|
* @returns PrepaidTextTranslateResponse
|
|
1141
1176
|
*/
|
|
1142
1177
|
prepaidTextTranslate(request: $_model.PrepaidTextTranslateRequest): Promise<$_model.PrepaidTextTranslateResponse>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Automatically identifies and locates specified products in an image based on a multimodal foundation model.
|
|
1180
|
+
*
|
|
1181
|
+
* @remarks
|
|
1182
|
+
* ## Request description
|
|
1183
|
+
* **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.**
|
|
1184
|
+
* 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.
|
|
1185
|
+
* ### Precautions
|
|
1186
|
+
* - Image URLs must use HTTPS and be accessible by the server.
|
|
1187
|
+
* - Common image formats such as JPEG, PNG, and WebP are supported.
|
|
1188
|
+
* - Each image should not exceed 2 MB.
|
|
1189
|
+
* - When using signed URLs, set the validity period to at least 30 minutes.
|
|
1190
|
+
* - If the same case has multiple target scene images, call the operation separately for each target image. The reference image list can be reused.
|
|
1191
|
+
*
|
|
1192
|
+
* @param tmpReq - ProductHotspotDetectionRequest
|
|
1193
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1194
|
+
* @returns ProductHotspotDetectionResponse
|
|
1195
|
+
*/
|
|
1196
|
+
productHotspotDetectionWithOptions(tmpReq: $_model.ProductHotspotDetectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ProductHotspotDetectionResponse>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Automatically identifies and locates specified products in an image based on a multimodal foundation model.
|
|
1199
|
+
*
|
|
1200
|
+
* @remarks
|
|
1201
|
+
* ## Request description
|
|
1202
|
+
* **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.**
|
|
1203
|
+
* 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.
|
|
1204
|
+
* ### Precautions
|
|
1205
|
+
* - Image URLs must use HTTPS and be accessible by the server.
|
|
1206
|
+
* - Common image formats such as JPEG, PNG, and WebP are supported.
|
|
1207
|
+
* - Each image should not exceed 2 MB.
|
|
1208
|
+
* - When using signed URLs, set the validity period to at least 30 minutes.
|
|
1209
|
+
* - If the same case has multiple target scene images, call the operation separately for each target image. The reference image list can be reused.
|
|
1210
|
+
*
|
|
1211
|
+
* @param request - ProductHotspotDetectionRequest
|
|
1212
|
+
* @returns ProductHotspotDetectionResponse
|
|
1213
|
+
*/
|
|
1214
|
+
productHotspotDetection(request: $_model.ProductHotspotDetectionRequest): Promise<$_model.ProductHotspotDetectionResponse>;
|
|
1143
1215
|
/**
|
|
1144
1216
|
* Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1145
1217
|
*
|
|
@@ -1572,25 +1644,25 @@ export default class Client extends OpenApi {
|
|
|
1572
1644
|
*/
|
|
1573
1645
|
textTranslate(request: $_model.TextTranslateRequest): Promise<$_model.TextTranslateResponse>;
|
|
1574
1646
|
/**
|
|
1575
|
-
*
|
|
1647
|
+
* 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.
|
|
1576
1648
|
*
|
|
1577
1649
|
* @remarks
|
|
1578
1650
|
* # Scenarios
|
|
1579
|
-
* -
|
|
1580
|
-
* -
|
|
1651
|
+
* - 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.
|
|
1652
|
+
* - 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.
|
|
1581
1653
|
* - 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.
|
|
1582
|
-
* - 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
|
|
1583
|
-
* - Standard product
|
|
1584
|
-
* - Multi-product
|
|
1654
|
+
* - 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.
|
|
1655
|
+
* - 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.
|
|
1656
|
+
* - 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.
|
|
1585
1657
|
* # Features
|
|
1586
|
-
* - Fully automated end-to-end batch generation with zero
|
|
1587
|
-
* - Highly stable generation with low
|
|
1588
|
-
* - E-commerce-specific product fidelity
|
|
1589
|
-
* - Reference image priority + 6-axis consistency verification:
|
|
1590
|
-
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The
|
|
1658
|
+
* - 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.
|
|
1659
|
+
* - 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.
|
|
1660
|
+
* - 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."
|
|
1661
|
+
* - 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.
|
|
1662
|
+
* - 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.
|
|
1591
1663
|
* - 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.
|
|
1592
|
-
* - Model library and customization services: Built-in multi-type model resource library
|
|
1593
|
-
* - Adapted
|
|
1664
|
+
* - 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.
|
|
1665
|
+
* - 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.
|
|
1594
1666
|
*
|
|
1595
1667
|
* @param tmpReq - VideoGenerationRequest
|
|
1596
1668
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1598,25 +1670,25 @@ export default class Client extends OpenApi {
|
|
|
1598
1670
|
*/
|
|
1599
1671
|
videoGenerationWithOptions(tmpReq: $_model.VideoGenerationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.VideoGenerationResponse>;
|
|
1600
1672
|
/**
|
|
1601
|
-
*
|
|
1673
|
+
* 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.
|
|
1602
1674
|
*
|
|
1603
1675
|
* @remarks
|
|
1604
1676
|
* # Scenarios
|
|
1605
|
-
* -
|
|
1606
|
-
* -
|
|
1677
|
+
* - 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.
|
|
1678
|
+
* - 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.
|
|
1607
1679
|
* - 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.
|
|
1608
|
-
* - 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
|
|
1609
|
-
* - Standard product
|
|
1610
|
-
* - Multi-product
|
|
1680
|
+
* - 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.
|
|
1681
|
+
* - 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.
|
|
1682
|
+
* - 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.
|
|
1611
1683
|
* # Features
|
|
1612
|
-
* - Fully automated end-to-end batch generation with zero
|
|
1613
|
-
* - Highly stable generation with low
|
|
1614
|
-
* - E-commerce-specific product fidelity
|
|
1615
|
-
* - Reference image priority + 6-axis consistency verification:
|
|
1616
|
-
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The
|
|
1684
|
+
* - 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.
|
|
1685
|
+
* - 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.
|
|
1686
|
+
* - 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."
|
|
1687
|
+
* - 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.
|
|
1688
|
+
* - 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.
|
|
1617
1689
|
* - 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.
|
|
1618
|
-
* - Model library and customization services: Built-in multi-type model resource library
|
|
1619
|
-
* - Adapted
|
|
1690
|
+
* - 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.
|
|
1691
|
+
* - 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.
|
|
1620
1692
|
*
|
|
1621
1693
|
* @param request - VideoGenerationRequest
|
|
1622
1694
|
* @returns VideoGenerationResponse
|
package/dist/client.js
CHANGED
|
@@ -500,6 +500,79 @@ class Client extends openapi_core_1.default {
|
|
|
500
500
|
let runtime = new $dara.RuntimeOptions({});
|
|
501
501
|
return await this.categoryMatchWithOptions(request, runtime);
|
|
502
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
* 地堆面积推理
|
|
505
|
+
*
|
|
506
|
+
* @remarks
|
|
507
|
+
* ## 请求说明
|
|
508
|
+
* **请确保在使用该接口前,已充分了解地堆面积推理产品的收费方式和[价格](https://www.aliyun.com/price/product#/ecs/detail)。**
|
|
509
|
+
* - 本接口用于通过提供的地堆整体图、SKU知识库以及商品在图片中的位置信息来推断地堆的实际尺寸(两条边的长度)及其占地面积。
|
|
510
|
+
* - 确保提供的`RagId`对应的知识库属于调用者且状态为可用(`AVAILABLE`)。
|
|
511
|
+
* - `Products`数组中至少包含一个商品项,并且每个商品项下的`Boxes`也至少需要定义一个边界框。
|
|
512
|
+
* - 所有坐标值均采用0到1000之间的归一化坐标系表示,请确保输入时满足`Left < Right`与`Top < Bottom`的关系。
|
|
513
|
+
* - 调用此API时请设置合理的超时时间(建议不超过300秒),以避免因网络延迟或处理复杂度高导致的操作失败。
|
|
514
|
+
* - 对于正式环境下的调用,请使用POP Action方式接入;内部REST地址主要用于开发测试阶段的联调工作。
|
|
515
|
+
*
|
|
516
|
+
* @param tmpReq - DiduiAreaDeductionRequest
|
|
517
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
518
|
+
* @returns DiduiAreaDeductionResponse
|
|
519
|
+
*/
|
|
520
|
+
async diduiAreaDeductionWithOptions(tmpReq, runtime) {
|
|
521
|
+
tmpReq.validate();
|
|
522
|
+
let request = new $_model.DiduiAreaDeductionShrinkRequest({});
|
|
523
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
524
|
+
if (!$dara.isNull(tmpReq.products)) {
|
|
525
|
+
request.productsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.products, "Products", "json");
|
|
526
|
+
}
|
|
527
|
+
let query = {};
|
|
528
|
+
if (!$dara.isNull(request.productsShrink)) {
|
|
529
|
+
query["Products"] = request.productsShrink;
|
|
530
|
+
}
|
|
531
|
+
if (!$dara.isNull(request.ragId)) {
|
|
532
|
+
query["RagId"] = request.ragId;
|
|
533
|
+
}
|
|
534
|
+
if (!$dara.isNull(request.reqId)) {
|
|
535
|
+
query["ReqId"] = request.reqId;
|
|
536
|
+
}
|
|
537
|
+
if (!$dara.isNull(request.targetImageUrl)) {
|
|
538
|
+
query["TargetImageUrl"] = request.targetImageUrl;
|
|
539
|
+
}
|
|
540
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
541
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
542
|
+
});
|
|
543
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
544
|
+
action: "DiduiAreaDeduction",
|
|
545
|
+
version: "2026-04-28",
|
|
546
|
+
protocol: "HTTPS",
|
|
547
|
+
pathname: "/",
|
|
548
|
+
method: "POST",
|
|
549
|
+
authType: "AK",
|
|
550
|
+
style: "RPC",
|
|
551
|
+
reqBodyType: "formData",
|
|
552
|
+
bodyType: "json",
|
|
553
|
+
});
|
|
554
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DiduiAreaDeductionResponse({}));
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* 地堆面积推理
|
|
558
|
+
*
|
|
559
|
+
* @remarks
|
|
560
|
+
* ## 请求说明
|
|
561
|
+
* **请确保在使用该接口前,已充分了解地堆面积推理产品的收费方式和[价格](https://www.aliyun.com/price/product#/ecs/detail)。**
|
|
562
|
+
* - 本接口用于通过提供的地堆整体图、SKU知识库以及商品在图片中的位置信息来推断地堆的实际尺寸(两条边的长度)及其占地面积。
|
|
563
|
+
* - 确保提供的`RagId`对应的知识库属于调用者且状态为可用(`AVAILABLE`)。
|
|
564
|
+
* - `Products`数组中至少包含一个商品项,并且每个商品项下的`Boxes`也至少需要定义一个边界框。
|
|
565
|
+
* - 所有坐标值均采用0到1000之间的归一化坐标系表示,请确保输入时满足`Left < Right`与`Top < Bottom`的关系。
|
|
566
|
+
* - 调用此API时请设置合理的超时时间(建议不超过300秒),以避免因网络延迟或处理复杂度高导致的操作失败。
|
|
567
|
+
* - 对于正式环境下的调用,请使用POP Action方式接入;内部REST地址主要用于开发测试阶段的联调工作。
|
|
568
|
+
*
|
|
569
|
+
* @param request - DiduiAreaDeductionRequest
|
|
570
|
+
* @returns DiduiAreaDeductionResponse
|
|
571
|
+
*/
|
|
572
|
+
async diduiAreaDeduction(request) {
|
|
573
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
574
|
+
return await this.diduiAreaDeductionWithOptions(request, runtime);
|
|
575
|
+
}
|
|
503
576
|
/**
|
|
504
577
|
* 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.
|
|
505
578
|
*
|
|
@@ -1914,6 +1987,78 @@ class Client extends openapi_core_1.default {
|
|
|
1914
1987
|
let runtime = new $dara.RuntimeOptions({});
|
|
1915
1988
|
return await this.prepaidTextTranslateWithOptions(request, runtime);
|
|
1916
1989
|
}
|
|
1990
|
+
/**
|
|
1991
|
+
* Automatically identifies and locates specified products in an image based on a multimodal foundation model.
|
|
1992
|
+
*
|
|
1993
|
+
* @remarks
|
|
1994
|
+
* ## Request description
|
|
1995
|
+
* **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.**
|
|
1996
|
+
* 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.
|
|
1997
|
+
* ### Precautions
|
|
1998
|
+
* - Image URLs must use HTTPS and be accessible by the server.
|
|
1999
|
+
* - Common image formats such as JPEG, PNG, and WebP are supported.
|
|
2000
|
+
* - Each image should not exceed 2 MB.
|
|
2001
|
+
* - When using signed URLs, set the validity period to at least 30 minutes.
|
|
2002
|
+
* - If the same case has multiple target scene images, call the operation separately for each target image. The reference image list can be reused.
|
|
2003
|
+
*
|
|
2004
|
+
* @param tmpReq - ProductHotspotDetectionRequest
|
|
2005
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2006
|
+
* @returns ProductHotspotDetectionResponse
|
|
2007
|
+
*/
|
|
2008
|
+
async productHotspotDetectionWithOptions(tmpReq, runtime) {
|
|
2009
|
+
tmpReq.validate();
|
|
2010
|
+
let request = new $_model.ProductHotspotDetectionShrinkRequest({});
|
|
2011
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
2012
|
+
if (!$dara.isNull(tmpReq.referenceImageUrls)) {
|
|
2013
|
+
request.referenceImageUrlsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.referenceImageUrls, "ReferenceImageUrls", "json");
|
|
2014
|
+
}
|
|
2015
|
+
let query = {};
|
|
2016
|
+
if (!$dara.isNull(request.referenceImageUrlsShrink)) {
|
|
2017
|
+
query["ReferenceImageUrls"] = request.referenceImageUrlsShrink;
|
|
2018
|
+
}
|
|
2019
|
+
if (!$dara.isNull(request.reqId)) {
|
|
2020
|
+
query["ReqId"] = request.reqId;
|
|
2021
|
+
}
|
|
2022
|
+
if (!$dara.isNull(request.targetImageUrl)) {
|
|
2023
|
+
query["TargetImageUrl"] = request.targetImageUrl;
|
|
2024
|
+
}
|
|
2025
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2026
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2027
|
+
});
|
|
2028
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2029
|
+
action: "ProductHotspotDetection",
|
|
2030
|
+
version: "2026-04-28",
|
|
2031
|
+
protocol: "HTTPS",
|
|
2032
|
+
pathname: "/",
|
|
2033
|
+
method: "POST",
|
|
2034
|
+
authType: "AK",
|
|
2035
|
+
style: "RPC",
|
|
2036
|
+
reqBodyType: "formData",
|
|
2037
|
+
bodyType: "json",
|
|
2038
|
+
});
|
|
2039
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ProductHotspotDetectionResponse({}));
|
|
2040
|
+
}
|
|
2041
|
+
/**
|
|
2042
|
+
* Automatically identifies and locates specified products in an image based on a multimodal foundation model.
|
|
2043
|
+
*
|
|
2044
|
+
* @remarks
|
|
2045
|
+
* ## Request description
|
|
2046
|
+
* **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.**
|
|
2047
|
+
* 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.
|
|
2048
|
+
* ### Precautions
|
|
2049
|
+
* - Image URLs must use HTTPS and be accessible by the server.
|
|
2050
|
+
* - Common image formats such as JPEG, PNG, and WebP are supported.
|
|
2051
|
+
* - Each image should not exceed 2 MB.
|
|
2052
|
+
* - When using signed URLs, set the validity period to at least 30 minutes.
|
|
2053
|
+
* - If the same case has multiple target scene images, call the operation separately for each target image. The reference image list can be reused.
|
|
2054
|
+
*
|
|
2055
|
+
* @param request - ProductHotspotDetectionRequest
|
|
2056
|
+
* @returns ProductHotspotDetectionResponse
|
|
2057
|
+
*/
|
|
2058
|
+
async productHotspotDetection(request) {
|
|
2059
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2060
|
+
return await this.productHotspotDetectionWithOptions(request, runtime);
|
|
2061
|
+
}
|
|
1917
2062
|
/**
|
|
1918
2063
|
* Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1919
2064
|
*
|
|
@@ -2506,25 +2651,25 @@ class Client extends openapi_core_1.default {
|
|
|
2506
2651
|
return await this.textTranslateWithOptions(request, runtime);
|
|
2507
2652
|
}
|
|
2508
2653
|
/**
|
|
2509
|
-
*
|
|
2654
|
+
* 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.
|
|
2510
2655
|
*
|
|
2511
2656
|
* @remarks
|
|
2512
2657
|
* # Scenarios
|
|
2513
|
-
* -
|
|
2514
|
-
* -
|
|
2658
|
+
* - 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.
|
|
2659
|
+
* - 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.
|
|
2515
2660
|
* - 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.
|
|
2516
|
-
* - 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
|
|
2517
|
-
* - Standard product
|
|
2518
|
-
* - Multi-product
|
|
2661
|
+
* - 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.
|
|
2662
|
+
* - 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.
|
|
2663
|
+
* - 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.
|
|
2519
2664
|
* # Features
|
|
2520
|
-
* - Fully automated end-to-end batch generation with zero
|
|
2521
|
-
* - Highly stable generation with low
|
|
2522
|
-
* - E-commerce-specific product fidelity
|
|
2523
|
-
* - Reference image priority + 6-axis consistency verification:
|
|
2524
|
-
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The
|
|
2665
|
+
* - 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.
|
|
2666
|
+
* - 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.
|
|
2667
|
+
* - 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."
|
|
2668
|
+
* - 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.
|
|
2669
|
+
* - 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.
|
|
2525
2670
|
* - 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.
|
|
2526
|
-
* - Model library and customization services: Built-in multi-type model resource library
|
|
2527
|
-
* - Adapted
|
|
2671
|
+
* - 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.
|
|
2672
|
+
* - 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.
|
|
2528
2673
|
*
|
|
2529
2674
|
* @param tmpReq - VideoGenerationRequest
|
|
2530
2675
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2570,25 +2715,25 @@ class Client extends openapi_core_1.default {
|
|
|
2570
2715
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoGenerationResponse({}));
|
|
2571
2716
|
}
|
|
2572
2717
|
/**
|
|
2573
|
-
*
|
|
2718
|
+
* 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.
|
|
2574
2719
|
*
|
|
2575
2720
|
* @remarks
|
|
2576
2721
|
* # Scenarios
|
|
2577
|
-
* -
|
|
2578
|
-
* -
|
|
2722
|
+
* - 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.
|
|
2723
|
+
* - 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.
|
|
2579
2724
|
* - 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.
|
|
2580
|
-
* - 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
|
|
2581
|
-
* - Standard product
|
|
2582
|
-
* - Multi-product
|
|
2725
|
+
* - 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.
|
|
2726
|
+
* - 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.
|
|
2727
|
+
* - 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.
|
|
2583
2728
|
* # Features
|
|
2584
|
-
* - Fully automated end-to-end batch generation with zero
|
|
2585
|
-
* - Highly stable generation with low
|
|
2586
|
-
* - E-commerce-specific product fidelity
|
|
2587
|
-
* - Reference image priority + 6-axis consistency verification:
|
|
2588
|
-
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The
|
|
2729
|
+
* - 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.
|
|
2730
|
+
* - 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.
|
|
2731
|
+
* - 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."
|
|
2732
|
+
* - 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.
|
|
2733
|
+
* - 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.
|
|
2589
2734
|
* - 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.
|
|
2590
|
-
* - Model library and customization services: Built-in multi-type model resource library
|
|
2591
|
-
* - Adapted
|
|
2735
|
+
* - 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.
|
|
2736
|
+
* - 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.
|
|
2592
2737
|
*
|
|
2593
2738
|
* @param request - VideoGenerationRequest
|
|
2594
2739
|
* @returns VideoGenerationResponse
|