@alicloud/aidge20260428 3.1.1 → 5.0.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.
Files changed (72) hide show
  1. package/dist/client.d.ts +148 -118
  2. package/dist/client.js +222 -118
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DocumentTranslateRequest.d.ts +2 -2
  5. package/dist/models/DocumentTranslateResponseBody.d.ts +1 -1
  6. package/dist/models/ImageTranslationProRequest.d.ts +11 -8
  7. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  8. package/dist/models/ImageTranslationProResponseBody.d.ts +16 -24
  9. package/dist/models/ImageTranslationProResponseBody.js +0 -2
  10. package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
  11. package/dist/models/ImageTranslationStandardRequest.d.ts +6 -9
  12. package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
  13. package/dist/models/ImageTranslationStandardResponseBody.d.ts +6 -14
  14. package/dist/models/ImageTranslationStandardResponseBody.js +0 -2
  15. package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -1
  16. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +47 -0
  17. package/dist/models/MerchandisePlacementDetectionRequest.js +64 -0
  18. package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -0
  19. package/dist/models/MerchandisePlacementDetectionResponse.d.ts +19 -0
  20. package/dist/models/MerchandisePlacementDetectionResponse.js +69 -0
  21. package/dist/models/MerchandisePlacementDetectionResponse.js.map +1 -0
  22. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +210 -0
  23. package/dist/models/MerchandisePlacementDetectionResponseBody.js +182 -0
  24. package/dist/models/MerchandisePlacementDetectionResponseBody.js.map +1 -0
  25. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +4 -4
  26. package/dist/models/QueryAsyncTaskResultResponseBody.js +1 -1
  27. package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
  28. package/dist/models/TextTranslateRequest.d.ts +7 -7
  29. package/dist/models/TextTranslateShrinkRequest.d.ts +7 -7
  30. package/dist/models/VideoGenerationRequest.d.ts +86 -0
  31. package/dist/models/VideoGenerationRequest.js +144 -0
  32. package/dist/models/VideoGenerationRequest.js.map +1 -0
  33. package/dist/models/VideoGenerationResponse.d.ts +19 -0
  34. package/dist/models/VideoGenerationResponse.js +69 -0
  35. package/dist/models/VideoGenerationResponse.js.map +1 -0
  36. package/dist/models/VideoGenerationResponseBody.d.ts +50 -0
  37. package/dist/models/VideoGenerationResponseBody.js +93 -0
  38. package/dist/models/VideoGenerationResponseBody.js.map +1 -0
  39. package/dist/models/VideoGenerationShrinkRequest.d.ts +24 -0
  40. package/dist/models/VideoGenerationShrinkRequest.js +62 -0
  41. package/dist/models/VideoGenerationShrinkRequest.js.map +1 -0
  42. package/dist/models/VideoTranslationRequest.d.ts +9 -0
  43. package/dist/models/VideoTranslationRequest.js.map +1 -1
  44. package/dist/models/VideoTranslationResponseBody.d.ts +19 -0
  45. package/dist/models/VideoTranslationResponseBody.js.map +1 -1
  46. package/dist/models/VideoTranslationShrinkRequest.d.ts +9 -0
  47. package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
  48. package/dist/models/model.d.ts +15 -0
  49. package/dist/models/model.js +33 -3
  50. package/dist/models/model.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/client.ts +236 -118
  53. package/src/models/DocumentTranslateRequest.ts +2 -2
  54. package/src/models/DocumentTranslateResponseBody.ts +1 -1
  55. package/src/models/ImageTranslationProRequest.ts +11 -8
  56. package/src/models/ImageTranslationProResponseBody.ts +16 -26
  57. package/src/models/ImageTranslationStandardRequest.ts +6 -9
  58. package/src/models/ImageTranslationStandardResponseBody.ts +6 -16
  59. package/src/models/MerchandisePlacementDetectionRequest.ts +66 -0
  60. package/src/models/MerchandisePlacementDetectionResponse.ts +40 -0
  61. package/src/models/MerchandisePlacementDetectionResponseBody.ts +309 -0
  62. package/src/models/QueryAsyncTaskResultResponseBody.ts +5 -5
  63. package/src/models/TextTranslateRequest.ts +7 -7
  64. package/src/models/TextTranslateShrinkRequest.ts +7 -7
  65. package/src/models/VideoGenerationRequest.ts +156 -0
  66. package/src/models/VideoGenerationResponse.ts +40 -0
  67. package/src/models/VideoGenerationResponseBody.ts +87 -0
  68. package/src/models/VideoGenerationShrinkRequest.ts +41 -0
  69. package/src/models/VideoTranslationRequest.ts +9 -0
  70. package/src/models/VideoTranslationResponseBody.ts +19 -0
  71. package/src/models/VideoTranslationShrinkRequest.ts +9 -0
  72. package/src/models/model.ts +15 -0
package/dist/client.js CHANGED
@@ -501,9 +501,7 @@ class Client extends openapi_core_1.default {
501
501
  return await this.categoryMatchWithOptions(request, runtime);
502
502
  }
503
503
  /**
504
- * 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:
505
- * - Content accuracy: translation accuracy, parameter and unit accuracy
506
- * - Structural integrity: overall layout continuity, page margin and layout preservation
504
+ * 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.
507
505
  *
508
506
  * @remarks
509
507
  * ## Product Introduction
@@ -512,13 +510,13 @@ class Client extends openapi_core_1.default {
512
510
  * - Content accuracy: translation accuracy, parameter and unit accuracy
513
511
  * - Structural integrity: overall layout continuity, page margin and layout preservation
514
512
  * ## Common scenarios
515
- * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
516
- * 3. Features
517
- * - Supports PDF and Word formats. Supports source documents containing multiple languages. Refer to section 4.5 for the detailed language list.
513
+ * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and other scenarios.
514
+ * ## Features
515
+ * - Supports PDF and Word formats. Supports source documents containing multiple languages. For a detailed language list, see section 4.5.
518
516
  * - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
519
517
  * - Supports high-fidelity layout preservation after translation.
520
- * - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
521
- * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 glossary entries. Contact the platform for additional capacity.
518
+ * - A single PDF supports up to 100 pages, and a single Word document supports up to 100 pages.
519
+ * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
522
520
  *
523
521
  * @param request - DocumentTranslateRequest
524
522
  * @param runtime - runtime options for this request RuntimeOptions
@@ -556,9 +554,7 @@ class Client extends openapi_core_1.default {
556
554
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DocumentTranslateResponse({}));
557
555
  }
558
556
  /**
559
- * 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:
560
- * - Content accuracy: translation accuracy, parameter and unit accuracy
561
- * - Structural integrity: overall layout continuity, page margin and layout preservation
557
+ * 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.
562
558
  *
563
559
  * @remarks
564
560
  * ## Product Introduction
@@ -567,13 +563,13 @@ class Client extends openapi_core_1.default {
567
563
  * - Content accuracy: translation accuracy, parameter and unit accuracy
568
564
  * - Structural integrity: overall layout continuity, page margin and layout preservation
569
565
  * ## Common scenarios
570
- * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
571
- * 3. Features
572
- * - Supports PDF and Word formats. Supports source documents containing multiple languages. Refer to section 4.5 for the detailed language list.
566
+ * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and other scenarios.
567
+ * ## Features
568
+ * - Supports PDF and Word formats. Supports source documents containing multiple languages. For a detailed language list, see section 4.5.
573
569
  * - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
574
570
  * - Supports high-fidelity layout preservation after translation.
575
- * - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
576
- * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 glossary entries. Contact the platform for additional capacity.
571
+ * - A single PDF supports up to 100 pages, and a single Word document supports up to 100 pages.
572
+ * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
577
573
  *
578
574
  * @param request - DocumentTranslateRequest
579
575
  * @returns DocumentTranslateResponse
@@ -1267,18 +1263,12 @@ class Client extends openapi_core_1.default {
1267
1263
  return await this.imageRemoveWithOptions(request, runtime);
1268
1264
  }
1269
1265
  /**
1270
- * Translates images using the Pro edition, which is designed specifically for e-commerce images. This product integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
1266
+ * Translates text in e-commerce images using the Pro edition, which integrates multimodal foundation model technology for more accurate image understanding and significantly improved translation quality.
1271
1267
  *
1272
1268
  * @remarks
1273
- * ## Product Introduction
1274
- * The Image Translation Pro edition is designed specifically for e-commerce images. It integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
1275
- * ## Scenarios
1276
- * E-commerce product images, marketing images, and images for various other scenarios.
1277
- * ## Features
1278
- * - **Product subject protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded information like product names.
1279
- * - **Post-translation editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
1280
- * - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
1281
- * - **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
1269
+ * ## Product Introduction.
1270
+ * ## Scenarios.
1271
+ * ## Features.
1282
1272
  *
1283
1273
  * @param request - ImageTranslationProRequest
1284
1274
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1328,18 +1318,12 @@ class Client extends openapi_core_1.default {
1328
1318
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
1329
1319
  }
1330
1320
  /**
1331
- * Translates images using the Pro edition, which is designed specifically for e-commerce images. This product integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
1321
+ * Translates text in e-commerce images using the Pro edition, which integrates multimodal foundation model technology for more accurate image understanding and significantly improved translation quality.
1332
1322
  *
1333
1323
  * @remarks
1334
- * ## Product Introduction
1335
- * The Image Translation Pro edition is designed specifically for e-commerce images. It integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
1336
- * ## Scenarios
1337
- * E-commerce product images, marketing images, and images for various other scenarios.
1338
- * ## Features
1339
- * - **Product subject protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded information like product names.
1340
- * - **Post-translation editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
1341
- * - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
1342
- * - **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
1324
+ * ## Product Introduction.
1325
+ * ## Scenarios.
1326
+ * ## Features.
1343
1327
  *
1344
1328
  * @param request - ImageTranslationProRequest
1345
1329
  * @returns ImageTranslationProResponse
@@ -1349,21 +1333,12 @@ class Client extends openapi_core_1.default {
1349
1333
  return await this.imageTranslationProWithOptions(request, runtime);
1350
1334
  }
1351
1335
  /**
1352
- * The image translation product is designed for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The product also returns layer information such as text position, font, and color within images, facilitating secondary editing of translation results through an image editor.
1336
+ * Translates text in images with support for over 100 language pairs (including bridging). This product is designed specifically for e-commerce images, accurately handling complex text layouts within images and ensuring that translated content matches the image context. It helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The product also returns layer information such as text position, font, and color within images, facilitating integration with image editors for secondary editing of translation results.
1353
1337
  *
1354
1338
  * @remarks
1355
- * # 1. Product Introduction
1356
- * The image translation product is designed for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The product also returns layer information such as text position, font, and color within images, facilitating secondary editing of translation results through an image editor.
1357
- * # 2. Applicable scenarios
1358
- * E-commerce product images, marketing images, and images for various other scenarios.
1359
- * # 3. Features
1360
- * * **Product subject information protection**: Allows you to choose whether to translate text on the product subject. This helps protect subject information from being translated, avoiding translation of embedded information such as product names.
1361
- *
1362
- * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
1363
- *
1364
- * * **Secondary editing after translation (layer information)**: Allows you to choose whether to return layer information such as text position, font, and color. This can be used to connect to an image editor for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
1365
- *
1366
- * * **Translation intervention support**: Allows you to customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand word protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1339
+ * # 1. Product Introduction.
1340
+ * # 2. Common scenarios.
1341
+ * # 3. Features.
1367
1342
  *
1368
1343
  * @param request - ImageTranslationStandardRequest
1369
1344
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1410,21 +1385,12 @@ class Client extends openapi_core_1.default {
1410
1385
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardResponse({}));
1411
1386
  }
1412
1387
  /**
1413
- * The image translation product is designed for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The product also returns layer information such as text position, font, and color within images, facilitating secondary editing of translation results through an image editor.
1388
+ * Translates text in images with support for over 100 language pairs (including bridging). This product is designed specifically for e-commerce images, accurately handling complex text layouts within images and ensuring that translated content matches the image context. It helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The product also returns layer information such as text position, font, and color within images, facilitating integration with image editors for secondary editing of translation results.
1414
1389
  *
1415
1390
  * @remarks
1416
- * # 1. Product Introduction
1417
- * The image translation product is designed for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The product also returns layer information such as text position, font, and color within images, facilitating secondary editing of translation results through an image editor.
1418
- * # 2. Applicable scenarios
1419
- * E-commerce product images, marketing images, and images for various other scenarios.
1420
- * # 3. Features
1421
- * * **Product subject information protection**: Allows you to choose whether to translate text on the product subject. This helps protect subject information from being translated, avoiding translation of embedded information such as product names.
1422
- *
1423
- * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
1424
- *
1425
- * * **Secondary editing after translation (layer information)**: Allows you to choose whether to return layer information such as text position, font, and color. This can be used to connect to an image editor for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
1426
- *
1427
- * * **Translation intervention support**: Allows you to customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand word protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1391
+ * # 1. Product Introduction.
1392
+ * # 2. Common scenarios.
1393
+ * # 3. Features.
1428
1394
  *
1429
1395
  * @param request - ImageTranslationStandardRequest
1430
1396
  * @returns ImageTranslationStandardResponse
@@ -1575,6 +1541,90 @@ class Client extends openapi_core_1.default {
1575
1541
  let runtime = new $dara.RuntimeOptions({});
1576
1542
  return await this.materialInspectionWithOptions(request, runtime);
1577
1543
  }
1544
+ /**
1545
+ * Detects and identifies products displayed on store shelves or floor stacks by combining a multimodal large language model (MLLM) with visual vector recall, targeting shelf and floor-stack inspection scenarios in offline retail and channel stores. The service first uses an MLLM to detect bounding boxes and preliminary names for each product in a store photo, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This is suitable for large-scale, high-concurrency visual recognition pipelines such as remote auditing of in-store displays by headquarters, SKU distribution verification, and display compliance inspection.
1546
+ *
1547
+ * @remarks
1548
+ * ## **Product Introduction**
1549
+ * Display detection is an intelligent store product display recognition capability built on a multimodal large language model (MLLM) combined with visual vector recall. It targets shelf and floor-stack display inspection scenarios in offline retail and channel stores. For store photos of shelves or floor stacks, the service first uses an MLLM to detect the bounding box and preliminary name for each product, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This is suitable for large-scale, high-concurrency visual recognition pipelines such as remote auditing of in-store displays by headquarters, SKU distribution verification, and display compliance inspection.
1550
+ * ## **Scenarios**
1551
+ * - **Shelf/floor-stack display recognition and inventory**: Identifies each product in a shelf or floor-stack image, matches it to the customer\\"s SKU library, and outputs a per-product list (product name + position + similarity score), replacing manual counting.
1552
+ *
1553
+ * - **Distribution verification/SKU compliance**: Verifies whether stores display specified SKUs as required by headquarters and whether out-of-stock or misplaced items exist, supporting batch automated verification during promotions or new product launches.
1554
+ *
1555
+ * - **Customer-specific SKU library**: Customers upload their own standard SKU images to build a dedicated vector library (isolated by `RagId`). During recognition, retrieval is performed only within that customer\\"s library, ensuring name accuracy and data isolation between customers.
1556
+ * ## **Features**
1557
+ * - **Two-stage detection + retrieval collaboration**: The MLLM detects each product\\"s bounding box and preliminary name across the entire image (semantic-level understanding, adapted for dense displays and partial occlusion). Then visual embedding vectors perform similarity retrieval within the customer\\"s SKU library, overriding the preliminary name with the top-1 precise SKU name to balance recall rate and name accuracy.
1558
+ *
1559
+ * - **Isolated retrieval with dedicated vector libraries**: A dedicated SKU vector library is maintained for each customer by `RagId`. Recognition retrieves only within the corresponding library, ensuring strict isolation between customers. Newly added or updated SKUs take effect in real time.
1560
+ *
1561
+ * - **Per-product structured output**: Output is unified as `Result.Items[]`, with each product independently providing a bounding box, recalled SKU name, SKU code, and similarity score. This facilitates direct integration with downstream inventory/verification systems and supports case-level manual review and traceability.
1562
+ *
1563
+ * - **Supported input formats**: Currently supports image URLs accessible via the public network or OSS. A single shelf or floor-stack image is sufficient for recognition, and the output structure is consistent.
1564
+ *
1565
+ * @param request - MerchandisePlacementDetectionRequest
1566
+ * @param runtime - runtime options for this request RuntimeOptions
1567
+ * @returns MerchandisePlacementDetectionResponse
1568
+ */
1569
+ async merchandisePlacementDetectionWithOptions(request, runtime) {
1570
+ request.validate();
1571
+ let query = {};
1572
+ if (!$dara.isNull(request.apiId)) {
1573
+ query["ApiId"] = request.apiId;
1574
+ }
1575
+ if (!$dara.isNull(request.imageUrl)) {
1576
+ query["ImageUrl"] = request.imageUrl;
1577
+ }
1578
+ if (!$dara.isNull(request.ragId)) {
1579
+ query["RagId"] = request.ragId;
1580
+ }
1581
+ if (!$dara.isNull(request.type)) {
1582
+ query["Type"] = request.type;
1583
+ }
1584
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1585
+ query: openapi_core_2.OpenApiUtil.query(query),
1586
+ });
1587
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1588
+ action: "MerchandisePlacementDetection",
1589
+ version: "2026-04-28",
1590
+ protocol: "HTTPS",
1591
+ pathname: "/",
1592
+ method: "POST",
1593
+ authType: "AK",
1594
+ style: "RPC",
1595
+ reqBodyType: "formData",
1596
+ bodyType: "json",
1597
+ });
1598
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionResponse({}));
1599
+ }
1600
+ /**
1601
+ * Detects and identifies products displayed on store shelves or floor stacks by combining a multimodal large language model (MLLM) with visual vector recall, targeting shelf and floor-stack inspection scenarios in offline retail and channel stores. The service first uses an MLLM to detect bounding boxes and preliminary names for each product in a store photo, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This is suitable for large-scale, high-concurrency visual recognition pipelines such as remote auditing of in-store displays by headquarters, SKU distribution verification, and display compliance inspection.
1602
+ *
1603
+ * @remarks
1604
+ * ## **Product Introduction**
1605
+ * Display detection is an intelligent store product display recognition capability built on a multimodal large language model (MLLM) combined with visual vector recall. It targets shelf and floor-stack display inspection scenarios in offline retail and channel stores. For store photos of shelves or floor stacks, the service first uses an MLLM to detect the bounding box and preliminary name for each product, then performs similarity recall against a customer-specific SKU vector library to exactly match each product to the customer\\"s own SKUs, and outputs per-product structured results that can be directly integrated with business systems. This is suitable for large-scale, high-concurrency visual recognition pipelines such as remote auditing of in-store displays by headquarters, SKU distribution verification, and display compliance inspection.
1606
+ * ## **Scenarios**
1607
+ * - **Shelf/floor-stack display recognition and inventory**: Identifies each product in a shelf or floor-stack image, matches it to the customer\\"s SKU library, and outputs a per-product list (product name + position + similarity score), replacing manual counting.
1608
+ *
1609
+ * - **Distribution verification/SKU compliance**: Verifies whether stores display specified SKUs as required by headquarters and whether out-of-stock or misplaced items exist, supporting batch automated verification during promotions or new product launches.
1610
+ *
1611
+ * - **Customer-specific SKU library**: Customers upload their own standard SKU images to build a dedicated vector library (isolated by `RagId`). During recognition, retrieval is performed only within that customer\\"s library, ensuring name accuracy and data isolation between customers.
1612
+ * ## **Features**
1613
+ * - **Two-stage detection + retrieval collaboration**: The MLLM detects each product\\"s bounding box and preliminary name across the entire image (semantic-level understanding, adapted for dense displays and partial occlusion). Then visual embedding vectors perform similarity retrieval within the customer\\"s SKU library, overriding the preliminary name with the top-1 precise SKU name to balance recall rate and name accuracy.
1614
+ *
1615
+ * - **Isolated retrieval with dedicated vector libraries**: A dedicated SKU vector library is maintained for each customer by `RagId`. Recognition retrieves only within the corresponding library, ensuring strict isolation between customers. Newly added or updated SKUs take effect in real time.
1616
+ *
1617
+ * - **Per-product structured output**: Output is unified as `Result.Items[]`, with each product independently providing a bounding box, recalled SKU name, SKU code, and similarity score. This facilitates direct integration with downstream inventory/verification systems and supports case-level manual review and traceability.
1618
+ *
1619
+ * - **Supported input formats**: Currently supports image URLs accessible via the public network or OSS. A single shelf or floor-stack image is sufficient for recognition, and the output structure is consistent.
1620
+ *
1621
+ * @param request - MerchandisePlacementDetectionRequest
1622
+ * @returns MerchandisePlacementDetectionResponse
1623
+ */
1624
+ async merchandisePlacementDetection(request) {
1625
+ let runtime = new $dara.RuntimeOptions({});
1626
+ return await this.merchandisePlacementDetectionWithOptions(request, runtime);
1627
+ }
1578
1628
  /**
1579
1629
  * An intelligent logistics parcel auditing product built on the synergy of Multimodal Large Language Models (MLLM) and specialized vision algorithms, designed for automated compliance review in the "piece-weight-dimension" stage of e-commerce logistics. The product performs structured auditing across multiple dimensions including bounding box validity, bounding box fit accuracy, and foreign object interference on parcels placed on scanning platforms. It supports different hardware acquisition scenarios such as white background boards and green background boards, and outputs Boolean audit conclusions with Chinese reason descriptions that can be directly integrated into business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
1580
1630
  *
@@ -1648,10 +1698,10 @@ class Client extends openapi_core_1.default {
1648
1698
  return await this.packageWeightSizeCheckWithOptions(request, runtime);
1649
1699
  }
1650
1700
  /**
1651
- * API name on the POP gateway: QueryAsyncTaskResult.
1701
+ * Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
1652
1702
  *
1653
1703
  * @remarks
1654
- * API name on the POP gateway: QueryAsyncTaskResult.
1704
+ * The API name on the POP gateway is QueryAsyncTaskResult.
1655
1705
  *
1656
1706
  * @param request - QueryAsyncTaskResultRequest
1657
1707
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1680,10 +1730,10 @@ class Client extends openapi_core_1.default {
1680
1730
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryAsyncTaskResultResponse({}));
1681
1731
  }
1682
1732
  /**
1683
- * API name on the POP gateway: QueryAsyncTaskResult.
1733
+ * Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
1684
1734
  *
1685
1735
  * @remarks
1686
- * API name on the POP gateway: QueryAsyncTaskResult.
1736
+ * The API name on the POP gateway is QueryAsyncTaskResult.
1687
1737
  *
1688
1738
  * @param request - QueryAsyncTaskResultRequest
1689
1739
  * @returns QueryAsyncTaskResultResponse
@@ -2135,28 +2185,28 @@ class Client extends openapi_core_1.default {
2135
2185
  return await this.textCorrectWithOptions(request, runtime);
2136
2186
  }
2137
2187
  /**
2138
- * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2188
+ * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2139
2189
  *
2140
2190
  * @remarks
2141
2191
  * ## Product Introduction
2142
- * Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2192
+ * Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2143
2193
  * ## Common scenarios
2144
- * - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
2194
+ * - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending words in product titles into the target language, improving product visibility on e-commerce platforms.
2145
2195
  * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco large model translation supports long text translation and HTML format, delivering excellent translation quality and format preservation.
2146
2196
  * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
2147
- * - Customer service conversations: In customer service scenarios, it optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
2148
- * Marco MT large model translation can also be used for general-purpose translation scenarios, such as office work, meetings, and daily conversations.
2149
- * ## Functions and features
2150
- * - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in Section 5.6.
2197
+ * - Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
2198
+ * Marco MT large model translation can also be used for general translation scenarios such as office work, meetings, and daily conversations.
2199
+ * ## Features
2200
+ * - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in section 5.6.
2151
2201
  * - **Ultra-low hallucination rate and high-speed inference** Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
2152
2202
  * - **Supported text format types** Currently supports text and html text types.
2153
- * - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. For additional capacity, contact the platform.
2203
+ * - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
2154
2204
  * ## Translation quality comparison
2155
2205
  * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
2156
2206
  * |----------|---------------|-----------------------|-----------------------|---------------------|
2157
2207
  * | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
2158
2208
  * | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable segmentation |
2159
- * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression. The product is a "key bag" rather than a "keychain". Other translations may cause ambiguity about the product subject |
2209
+ * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression as "key bag" rather than "keychain", avoiding ambiguity about the product type |
2160
2210
  *
2161
2211
  * @param tmpReq - TextTranslateRequest
2162
2212
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2208,28 +2258,28 @@ class Client extends openapi_core_1.default {
2208
2258
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateResponse({}));
2209
2259
  }
2210
2260
  /**
2211
- * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2261
+ * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2212
2262
  *
2213
2263
  * @remarks
2214
2264
  * ## Product Introduction
2215
- * Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2265
+ * Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-to-multilingual, and English-to-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2216
2266
  * ## Common scenarios
2217
- * - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
2267
+ * - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending words in product titles into the target language, improving product visibility on e-commerce platforms.
2218
2268
  * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco large model translation supports long text translation and HTML format, delivering excellent translation quality and format preservation.
2219
2269
  * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
2220
- * - Customer service conversations: In customer service scenarios, it optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
2221
- * Marco MT large model translation can also be used for general-purpose translation scenarios, such as office work, meetings, and daily conversations.
2222
- * ## Functions and features
2223
- * - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in Section 5.6.
2270
+ * - Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
2271
+ * Marco MT large model translation can also be used for general translation scenarios such as office work, meetings, and daily conversations.
2272
+ * ## Features
2273
+ * - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in section 5.6.
2224
2274
  * - **Ultra-low hallucination rate and high-speed inference** Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
2225
2275
  * - **Supported text format types** Currently supports text and html text types.
2226
- * - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. For additional capacity, contact the platform.
2276
+ * - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
2227
2277
  * ## Translation quality comparison
2228
2278
  * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
2229
2279
  * |----------|---------------|-----------------------|-----------------------|---------------------|
2230
2280
  * | 75mm 4Pin 0.38A GA81S2U 12V GTX 960 Cooling Fan for Zotac GTX960 Graphics Card Cooling Fan | 75mm 4Pin 0.38A GA81S2U 12V GTX 960, ventilador de enfriamiento para tarjeta gráfica Zotac GTX960. | Ventilador de refrigeración de 75mm 4Pin 0.38A GA81S2U 12V para la tarjeta gráfica Zotac GTX960 Ventilador de enfriamiento GTX 960. | Ventilador de refrigeración para tarjeta gráfica Zotac GTX960, 75mm, 4 pines, 0,38A, GA81S2U, 12V, GTX 960 | Clearer product subject |
2231
2281
  * | New Arrival Classic Style Luxury Brand 6 Hands Swiss Automatic Mechanical Men\\"s Business Steel Watch | Nueva llegada, reloj mecánico automático de lujo con 6 manecillas, estilo clásico, de acero para hombres de negocios | Nueva Llegada Reloj De Acero de Negocios para Hombre con Mecanismo Automático Suizo y 6 Agujas de Estilo Clásico de Marca de Lujo. | Reloj de acero de negocios para hombre, mecánico automático suizo, marca de lujo, estilo clásico, 6 manos, nueva llegada | More complete sentence structure, clearer expression, and more reasonable segmentation |
2232
- * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression. The product is a "key bag" rather than a "keychain". Other translations may cause ambiguity about the product subject |
2282
+ * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression as "key bag" rather than "keychain", avoiding ambiguity about the product type |
2233
2283
  *
2234
2284
  * @param request - TextTranslateRequest
2235
2285
  * @returns TextTranslateResponse
@@ -2239,29 +2289,84 @@ class Client extends openapi_core_1.default {
2239
2289
  return await this.textTranslateWithOptions(request, runtime);
2240
2290
  }
2241
2291
  /**
2242
- * 视频翻译
2292
+ * 电商视频生成(异步提交)
2243
2293
  *
2244
- * @remarks
2245
- * ## 1. 产品简介
2246
- * 视频翻译 API 支持将视频画面中的嵌字(字幕、卖点文字等)翻译为目标语言,并擦除原文。适用于电商视频多语言分发、国际社交媒体营销、全球品牌广告投放等场景。
2247
- * API 采用异步调用模式:提交翻译任务后获取 `task_id`,通过查询接口轮询任务状态直至完成后获取结果。
2248
- * ## 2. 适用场景
2249
- * * **跨境电商视频本地化**:将商品介绍视频中的卖点文字翻译为目标市场语言,助力海外平台推广。
2294
+ * @param tmpReq - VideoGenerationRequest
2295
+ * @param runtime - runtime options for this request RuntimeOptions
2296
+ * @returns VideoGenerationResponse
2297
+ */
2298
+ async videoGenerationWithOptions(tmpReq, runtime) {
2299
+ tmpReq.validate();
2300
+ let request = new $_model.VideoGenerationShrinkRequest({});
2301
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2302
+ if (!$dara.isNull(tmpReq.input)) {
2303
+ request.inputShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.input, "Input", "json");
2304
+ }
2305
+ if (!$dara.isNull(tmpReq.intent)) {
2306
+ request.intentShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.intent, "Intent", "json");
2307
+ }
2308
+ if (!$dara.isNull(tmpReq.output)) {
2309
+ request.outputShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.output, "Output", "json");
2310
+ }
2311
+ let query = {};
2312
+ if (!$dara.isNull(request.inputShrink)) {
2313
+ query["Input"] = request.inputShrink;
2314
+ }
2315
+ if (!$dara.isNull(request.intentShrink)) {
2316
+ query["Intent"] = request.intentShrink;
2317
+ }
2318
+ if (!$dara.isNull(request.outputShrink)) {
2319
+ query["Output"] = request.outputShrink;
2320
+ }
2321
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2322
+ query: openapi_core_2.OpenApiUtil.query(query),
2323
+ });
2324
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2325
+ action: "VideoGeneration",
2326
+ version: "2026-04-28",
2327
+ protocol: "HTTPS",
2328
+ pathname: "/",
2329
+ method: "POST",
2330
+ authType: "AK",
2331
+ style: "RPC",
2332
+ reqBodyType: "formData",
2333
+ bodyType: "json",
2334
+ });
2335
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoGenerationResponse({}));
2336
+ }
2337
+ /**
2338
+ * 电商视频生成(异步提交)
2250
2339
  *
2251
- * * **国际社交媒体营销**:针对 TikTok、Instagram、YouTube 等平台,将视频画面文字内容一键本地化,提升海外用户理解度与转化率。
2340
+ * @param request - VideoGenerationRequest
2341
+ * @returns VideoGenerationResponse
2342
+ */
2343
+ async videoGeneration(request) {
2344
+ let runtime = new $dara.RuntimeOptions({});
2345
+ return await this.videoGenerationWithOptions(request, runtime);
2346
+ }
2347
+ /**
2348
+ * Translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text.
2252
2349
  *
2253
- * * **全球品牌广告投放**:根据投放地区语言自动生成对应版本视频,减少人工制作成本。
2350
+ * @remarks
2351
+ * ## 1. Product Introduction
2352
+ * The video translation API translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text. This API is applicable to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
2353
+ * The API uses an asynchronous call mode: after submitting a translation task, you obtain a `task_id`, then poll the query endpoint for the task status until the task is completed and results are available.
2354
+ * ## 2. Common scenarios
2355
+ * * **Cross-border e-commerce video localization**: Translates promotional text in product introduction videos into the target market language to facilitate overseas platform promotion.
2356
+ *
2357
+ * * **International social media marketing**: Localizes text content in video frames with one click for platforms such as TikTok, Instagram, and YouTube, improving comprehension and conversion rates among overseas users.
2254
2358
  *
2255
- * * **培训与产品说明**:将培训课程或产品演示视频中的画面文字翻译为多语言版本,方便全球团队使用。
2359
+ * * **Global brand advertising**: Automatically generates video versions in the language of the target region, reducing manual production costs.
2256
2360
  *
2257
- * ## 3. 功能介绍
2258
- * | 能力 | 标识码 | 说明 |
2361
+ * * **Training and product documentation**: Translates on-screen text in training courses or product demonstration videos into multiple languages for use by global teams.
2362
+ * ## 3. Features
2363
+ * | Capability | Identifier | Description |
2259
2364
  * | --- | --- | --- |
2260
- * | 画面翻译 | `visual` | 翻译视频画面中的嵌字(字幕、卖点文字等),并擦除原文 |
2261
- * ## 4. 开发指南
2262
- * ### 4.1 提交翻译任务
2263
- * #### 请求
2264
- * `POST /api/v1/video/translation`
2365
+ * | Visual translation | `visual` | Translates embedded text (subtitles, promotional text, etc.) in video frames into the target language and erases the original text |
2366
+ * ## 4. Developer guide.
2367
+ * ### 4.1 Submit a translation task.
2368
+ * #### Request
2369
+ * `POST /api/v1/video/translation`
2265
2370
  *
2266
2371
  * @param tmpReq - VideoTranslationRequest
2267
2372
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2304,29 +2409,28 @@ class Client extends openapi_core_1.default {
2304
2409
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoTranslationResponse({}));
2305
2410
  }
2306
2411
  /**
2307
- * 视频翻译
2412
+ * Translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text.
2308
2413
  *
2309
2414
  * @remarks
2310
- * ## 1. 产品简介
2311
- * 视频翻译 API 支持将视频画面中的嵌字(字幕、卖点文字等)翻译为目标语言,并擦除原文。适用于电商视频多语言分发、国际社交媒体营销、全球品牌广告投放等场景。
2312
- * API 采用异步调用模式:提交翻译任务后获取 `task_id`,通过查询接口轮询任务状态直至完成后获取结果。
2313
- * ## 2. 适用场景
2314
- * * **跨境电商视频本地化**:将商品介绍视频中的卖点文字翻译为目标市场语言,助力海外平台推广。
2315
- *
2316
- * * **国际社交媒体营销**:针对 TikTok、Instagram、YouTube 等平台,将视频画面文字内容一键本地化,提升海外用户理解度与转化率。
2415
+ * ## 1. Product Introduction
2416
+ * The video translation API translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text. This API is applicable to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
2417
+ * The API uses an asynchronous call mode: after submitting a translation task, you obtain a `task_id`, then poll the query endpoint for the task status until the task is completed and results are available.
2418
+ * ## 2. Common scenarios
2419
+ * * **Cross-border e-commerce video localization**: Translates promotional text in product introduction videos into the target market language to facilitate overseas platform promotion.
2317
2420
  *
2318
- * * **全球品牌广告投放**:根据投放地区语言自动生成对应版本视频,减少人工制作成本。
2421
+ * * **International social media marketing**: Localizes text content in video frames with one click for platforms such as TikTok, Instagram, and YouTube, improving comprehension and conversion rates among overseas users.
2319
2422
  *
2320
- * * **培训与产品说明**:将培训课程或产品演示视频中的画面文字翻译为多语言版本,方便全球团队使用。
2423
+ * * **Global brand advertising**: Automatically generates video versions in the language of the target region, reducing manual production costs.
2321
2424
  *
2322
- * ## 3. 功能介绍
2323
- * | 能力 | 标识码 | 说明 |
2425
+ * * **Training and product documentation**: Translates on-screen text in training courses or product demonstration videos into multiple languages for use by global teams.
2426
+ * ## 3. Features
2427
+ * | Capability | Identifier | Description |
2324
2428
  * | --- | --- | --- |
2325
- * | 画面翻译 | `visual` | 翻译视频画面中的嵌字(字幕、卖点文字等),并擦除原文 |
2326
- * ## 4. 开发指南
2327
- * ### 4.1 提交翻译任务
2328
- * #### 请求
2329
- * `POST /api/v1/video/translation`
2429
+ * | Visual translation | `visual` | Translates embedded text (subtitles, promotional text, etc.) in video frames into the target language and erases the original text |
2430
+ * ## 4. Developer guide.
2431
+ * ### 4.1 Submit a translation task.
2432
+ * #### Request
2433
+ * `POST /api/v1/video/translation`
2330
2434
  *
2331
2435
  * @param request - VideoTranslationRequest
2332
2436
  * @returns VideoTranslationResponse