@alicloud/aidge20260428 1.0.0 → 3.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 (66) hide show
  1. package/dist/client.d.ts +257 -139
  2. package/dist/client.js +333 -143
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DocumentTranslateRequest.d.ts +3 -3
  5. package/dist/models/DocumentTranslateResponseBody.d.ts +3 -5
  6. package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
  7. package/dist/models/ImageMattingRequest.d.ts +7 -7
  8. package/dist/models/ImageMattingResponseBody.d.ts +2 -2
  9. package/dist/models/ImageRemovalProRequest.d.ts +35 -0
  10. package/dist/models/ImageRemovalProRequest.js +60 -0
  11. package/dist/models/ImageRemovalProRequest.js.map +1 -0
  12. package/dist/models/ImageRemovalProResponse.d.ts +19 -0
  13. package/dist/models/ImageRemovalProResponse.js +69 -0
  14. package/dist/models/ImageRemovalProResponse.js.map +1 -0
  15. package/dist/models/ImageRemovalProResponseBody.d.ts +87 -0
  16. package/dist/models/ImageRemovalProResponseBody.js +95 -0
  17. package/dist/models/ImageRemovalProResponseBody.js.map +1 -0
  18. package/dist/models/ImageRemoveRequest.d.ts +15 -5
  19. package/dist/models/ImageRemoveRequest.js.map +1 -1
  20. package/dist/models/ImageRemoveResponseBody.d.ts +8 -8
  21. package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -5
  22. package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
  23. package/dist/models/ImageTranslationProRequest.d.ts +9 -12
  24. package/dist/models/ImageTranslationProRequest.js +2 -2
  25. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  26. package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
  27. package/dist/models/MaterialInspectionRequest.d.ts +55 -0
  28. package/dist/models/MaterialInspectionRequest.js +66 -0
  29. package/dist/models/MaterialInspectionRequest.js.map +1 -0
  30. package/dist/models/MaterialInspectionResponse.d.ts +19 -0
  31. package/dist/models/MaterialInspectionResponse.js +69 -0
  32. package/dist/models/MaterialInspectionResponse.js.map +1 -0
  33. package/dist/models/MaterialInspectionResponseBody.d.ts +154 -0
  34. package/dist/models/MaterialInspectionResponseBody.js +147 -0
  35. package/dist/models/MaterialInspectionResponseBody.js.map +1 -0
  36. package/dist/models/TextTranslateRequest.d.ts +15 -5
  37. package/dist/models/TextTranslateRequest.js +4 -0
  38. package/dist/models/TextTranslateRequest.js.map +1 -1
  39. package/dist/models/TextTranslateResponseBody.d.ts +7 -7
  40. package/dist/models/TextTranslateShrinkRequest.d.ts +15 -5
  41. package/dist/models/TextTranslateShrinkRequest.js +4 -0
  42. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  43. package/dist/models/model.d.ts +10 -0
  44. package/dist/models/model.js +23 -2
  45. package/dist/models/model.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/client.ts +347 -144
  48. package/src/models/DocumentTranslateRequest.ts +3 -3
  49. package/src/models/DocumentTranslateResponseBody.ts +3 -5
  50. package/src/models/ImageMattingRequest.ts +7 -7
  51. package/src/models/ImageMattingResponseBody.ts +2 -2
  52. package/src/models/ImageRemovalProRequest.ts +50 -0
  53. package/src/models/ImageRemovalProResponse.ts +40 -0
  54. package/src/models/ImageRemovalProResponseBody.ts +126 -0
  55. package/src/models/ImageRemoveRequest.ts +15 -5
  56. package/src/models/ImageRemoveResponseBody.ts +8 -8
  57. package/src/models/ImageRemoveShrinkRequest.ts +15 -5
  58. package/src/models/ImageTranslationProRequest.ts +11 -14
  59. package/src/models/ImageTranslationProResponseBody.ts +19 -19
  60. package/src/models/MaterialInspectionRequest.ts +76 -0
  61. package/src/models/MaterialInspectionResponse.ts +40 -0
  62. package/src/models/MaterialInspectionResponseBody.ts +227 -0
  63. package/src/models/TextTranslateRequest.ts +19 -5
  64. package/src/models/TextTranslateResponseBody.ts +7 -7
  65. package/src/models/TextTranslateShrinkRequest.ts +19 -5
  66. package/src/models/model.ts +10 -0
package/src/client.ts CHANGED
@@ -11,7 +11,10 @@ export default class Client extends OpenApi {
11
11
 
12
12
  constructor(config: $OpenApiUtil.Config) {
13
13
  super(config);
14
- this._endpointRule = "";
14
+ this._endpointRule = "regional";
15
+ this._endpointMap = {
16
+ 'cn-beijing': "aidge.cn-beijing.aliyuncs.com",
17
+ };
15
18
  this.checkConfig(config);
16
19
  this._endpoint = this.getEndpoint("aidge", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
17
20
  }
@@ -512,25 +515,24 @@ export default class Client extends OpenApi {
512
515
  }
513
516
 
514
517
  /**
515
- * Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs), handling multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
516
- * The service excels in the following areas:
517
- * - Content accuracy: translation accuracy, parameter and unit accuracy.
518
- * - Structural integrity: overall layout continuity, page margin and layout preservation.
518
+ * 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:
519
+ * - Content accuracy: translation accuracy, parameter and unit accuracy
520
+ * - Structural integrity: overall layout continuity, page margin and layout preservation
519
521
  *
520
522
  * @remarks
521
523
  * ## Product Introduction
522
- * Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs), handling multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
523
- * The service excels in the following areas:
524
- * - Content accuracy: translation accuracy, parameter and unit accuracy.
525
- * - Structural integrity: overall layout continuity, page margin and layout preservation.
524
+ * Designed specifically for document translation, this service supports translation 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.
525
+ * Excels in the following areas:
526
+ * - Content accuracy: translation accuracy, parameter and unit accuracy
527
+ * - Structural integrity: overall layout continuity, page margin and layout preservation
526
528
  * ## Common scenarios
527
529
  * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
528
530
  * 3. Features
529
- * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed list of supported languages, see section 4.5.
530
- * - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
531
+ * - Supports PDF and Word formats. Supports source documents containing multiple languages. Refer to section 4.5 for the detailed language list.
532
+ * - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
531
533
  * - Supports high-fidelity layout preservation after translation.
532
- * - A single PDF supports up to 100 pages, and a single Word document supports up to 100 pages.
533
- * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection. 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. If you need more, contact the platform for assistance.
534
+ * - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
535
+ * - 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.
534
536
  *
535
537
  * @param request - DocumentTranslateRequest
536
538
  * @param runtime - runtime options for this request RuntimeOptions
@@ -573,25 +575,24 @@ export default class Client extends OpenApi {
573
575
  }
574
576
 
575
577
  /**
576
- * Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs), handling multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
577
- * The service excels in the following areas:
578
- * - Content accuracy: translation accuracy, parameter and unit accuracy.
579
- * - Structural integrity: overall layout continuity, page margin and layout preservation.
578
+ * 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:
579
+ * - Content accuracy: translation accuracy, parameter and unit accuracy
580
+ * - Structural integrity: overall layout continuity, page margin and layout preservation
580
581
  *
581
582
  * @remarks
582
583
  * ## Product Introduction
583
- * Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs), handling multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
584
- * The service excels in the following areas:
585
- * - Content accuracy: translation accuracy, parameter and unit accuracy.
586
- * - Structural integrity: overall layout continuity, page margin and layout preservation.
584
+ * Designed specifically for document translation, this service supports translation 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.
585
+ * Excels in the following areas:
586
+ * - Content accuracy: translation accuracy, parameter and unit accuracy
587
+ * - Structural integrity: overall layout continuity, page margin and layout preservation
587
588
  * ## Common scenarios
588
589
  * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
589
590
  * 3. Features
590
- * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed list of supported languages, see section 4.5.
591
- * - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
591
+ * - Supports PDF and Word formats. Supports source documents containing multiple languages. Refer to section 4.5 for the detailed language list.
592
+ * - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
592
593
  * - Supports high-fidelity layout preservation after translation.
593
- * - A single PDF supports up to 100 pages, and a single Word document supports up to 100 pages.
594
- * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection. 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. If you need more, contact the platform for assistance.
594
+ * - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
595
+ * - 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.
595
596
  *
596
597
  * @param request - DocumentTranslateRequest
597
598
  * @returns DocumentTranslateResponse
@@ -692,32 +693,32 @@ export default class Client extends OpenApi {
692
693
  }
693
694
 
694
695
  /**
695
- * Intelligent image matting automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. The product also provides multiple background options and custom size selections to optimize product display. (Synchronous).
696
+ * Automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. This product also provides multiple background options and custom size selections to optimize product display. (Synchronous)
696
697
  *
697
698
  * @remarks
698
699
  * ## Product Introduction
699
- * Intelligent image matting automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. The product also provides multiple background options and custom size selections to optimize product display. (Synchronous).
700
+ * The intelligent image matting product automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. This product also provides multiple background options and custom size selections to optimize product display. (Synchronous)
700
701
  * ## Scenarios
701
702
  * * **Secondary editing of materials**: After separating the image subject from the background, you can further edit the image.
702
703
  *
703
704
  * * **Improved material processing efficiency**: Quickly extract subjects from various material images for easy background replacement, improving the production efficiency of advertising visuals and marketing posters.
704
705
  * ## Features.
705
706
  * #### 1. One-click precise subject recognition
706
- * * **AI automatic recognition**: Based on deep learning models, the feature intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
707
+ * * **AI automatic recognition**: Based on deep learning models, intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
707
708
  *
708
709
  * * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair strands, transparent objects, and fur edges) with an accuracy rate exceeding 95%.
709
710
  * #### 2. Intelligent edge optimization
710
- * * **Detail-level processing**: Performs automatic optimization of edge aliasing and semi-transparent areas (such as smoke and glass) while preserving natural transition effects.
711
+ * * **Detail-level processing**: Performs automatic optimization on edge aliasing and semi-transparent areas (such as smoke and glass) to preserve natural transition effects.
711
712
  * #### 3. Multi-format output and background operations
712
713
  * * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, suitable for e-commerce, design, and other scenarios.
713
714
  *
714
- * * **Custom background color support**.
715
+ * * **Custom background color support**
715
716
  * ## Effect comparison
716
717
  * | **Original image (input)** | **Result image (output)** |
717
718
  * | --- | --- |
718
719
  * | ![主图3.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/62b39e16-5b30-469f-88cd-7f31ba790008.jpeg) | ![ae4cd8ce912c4d9fa171dc5217be576d_202605251928_0.5899999737739563.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/bfad041f-a8e0-4d6f-a2bf-999292ea9ebc.jpeg) |
719
720
  * | ![主图2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/b201b356-24b8-4f98-babc-c7fe918bdc37.jpeg) | ![52033655bd054737960a87518655d935_202605251926_5.959999978542328.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/8b266603-e80a-42dd-9d3d-6fa9f0948e52.jpeg) |
720
- * | ![主图6.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/d3c0d876-42a0-4294-8ce5-2a20df2deab9.jpeg) | ![abdecd31cc45450f83b33f9baf4499c6_202605251930_7.9700000286102295.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/5677f55e-4fe3-4978-a676-1ce71ad604b0.jpeg) |.
721
+ * | ![主图6.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/d3c0d876-42a0-4294-8ce5-2a20df2deab9.jpeg) | ![abdecd31cc45450f83b33f9baf4499c6_202605251930_7.9700000286102295.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/5677f55e-4fe3-4978-a676-1ce71ad604b0.jpeg) |
721
722
  *
722
723
  * @param request - ImageMattingRequest
723
724
  * @param runtime - runtime options for this request RuntimeOptions
@@ -764,32 +765,32 @@ export default class Client extends OpenApi {
764
765
  }
765
766
 
766
767
  /**
767
- * Intelligent image matting automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. The product also provides multiple background options and custom size selections to optimize product display. (Synchronous).
768
+ * Automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. This product also provides multiple background options and custom size selections to optimize product display. (Synchronous)
768
769
  *
769
770
  * @remarks
770
771
  * ## Product Introduction
771
- * Intelligent image matting automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. The product also provides multiple background options and custom size selections to optimize product display. (Synchronous).
772
+ * The intelligent image matting product automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. This product also provides multiple background options and custom size selections to optimize product display. (Synchronous)
772
773
  * ## Scenarios
773
774
  * * **Secondary editing of materials**: After separating the image subject from the background, you can further edit the image.
774
775
  *
775
776
  * * **Improved material processing efficiency**: Quickly extract subjects from various material images for easy background replacement, improving the production efficiency of advertising visuals and marketing posters.
776
777
  * ## Features.
777
778
  * #### 1. One-click precise subject recognition
778
- * * **AI automatic recognition**: Based on deep learning models, the feature intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
779
+ * * **AI automatic recognition**: Based on deep learning models, intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
779
780
  *
780
781
  * * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair strands, transparent objects, and fur edges) with an accuracy rate exceeding 95%.
781
782
  * #### 2. Intelligent edge optimization
782
- * * **Detail-level processing**: Performs automatic optimization of edge aliasing and semi-transparent areas (such as smoke and glass) while preserving natural transition effects.
783
+ * * **Detail-level processing**: Performs automatic optimization on edge aliasing and semi-transparent areas (such as smoke and glass) to preserve natural transition effects.
783
784
  * #### 3. Multi-format output and background operations
784
785
  * * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, suitable for e-commerce, design, and other scenarios.
785
786
  *
786
- * * **Custom background color support**.
787
+ * * **Custom background color support**
787
788
  * ## Effect comparison
788
789
  * | **Original image (input)** | **Result image (output)** |
789
790
  * | --- | --- |
790
791
  * | ![主图3.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/62b39e16-5b30-469f-88cd-7f31ba790008.jpeg) | ![ae4cd8ce912c4d9fa171dc5217be576d_202605251928_0.5899999737739563.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/bfad041f-a8e0-4d6f-a2bf-999292ea9ebc.jpeg) |
791
792
  * | ![主图2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/b201b356-24b8-4f98-babc-c7fe918bdc37.jpeg) | ![52033655bd054737960a87518655d935_202605251926_5.959999978542328.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/8b266603-e80a-42dd-9d3d-6fa9f0948e52.jpeg) |
792
- * | ![主图6.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/d3c0d876-42a0-4294-8ce5-2a20df2deab9.jpeg) | ![abdecd31cc45450f83b33f9baf4499c6_202605251930_7.9700000286102295.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/5677f55e-4fe3-4978-a676-1ce71ad604b0.jpeg) |.
793
+ * | ![主图6.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/d3c0d876-42a0-4294-8ce5-2a20df2deab9.jpeg) | ![abdecd31cc45450f83b33f9baf4499c6_202605251930_7.9700000286102295.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/5677f55e-4fe3-4978-a676-1ce71ad604b0.jpeg) |
793
794
  *
794
795
  * @param request - ImageMattingRequest
795
796
  * @returns ImageMattingResponse
@@ -1016,80 +1017,173 @@ export default class Client extends OpenApi {
1016
1017
  }
1017
1018
 
1018
1019
  /**
1019
- * The Intelligent Image Removal product is specially designed for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and blemishes from e-commerce images. You can specify objects to remove from images as needed, enabling efficient and accurate batch processing of large volumes of images and simplifying the image editing workflow. (Synchronous)
1020
+ * Intelligently identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images, supports specifying objects to remove as needed, enables efficient and precise batch processing of images, and simplifies image editing workflows (synchronous/asynchronous).
1020
1021
  *
1021
1022
  * @remarks
1022
- * ## Product Overview
1023
- * The Intelligent Image Removal product is specially designed for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and blemishes from e-commerce images. You can specify objects to remove from images as needed, enabling efficient and accurate batch processing of large volumes of images and simplifying the image editing workflow. (Synchronous)
1024
- * ## Use Cases
1025
- * * **Efficient E-commerce Image Processing:**
1023
+ * ## Product introduction
1024
+ * The intelligent image removal product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of images and simplifying image editing workflows. (Synchronous/Asynchronous)
1025
+ * ## Common scenarios
1026
+ * * **Efficient e-commerce image processing:**
1026
1027
  *
1027
- * Remove irrelevant visual elements to provide a cleaner, more focused product display and enhance the customer shopping experience.
1028
- * * **Multi-platform Product Information Synchronization:**
1028
+ * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
1029
+ * * **Multi-platform product information synchronization:**
1029
1030
  *
1030
- * When merchants simultaneously list products across different e-commerce platforms, they can quickly remove specific text and blemishes to comply with different platform image specifications.
1031
- * * **Marketing Material Preparation:**
1031
+ * When merchants list products across different e-commerce platforms, they can quickly remove specific text and watermarks to comply with image specifications of different platforms.
1032
+ * ## Features
1033
+ * 1. First, clarify the definitions of image subject and image background. When specifying objects to remove, you can choose whether the removal scope is the image subject or the image background area. Both API and editor access methods are supported to meet different types of requirements.
1032
1034
  *
1033
- * Merchants can easily remove existing promotional information and quickly update it with the latest campaign details.
1034
- * > Note: Merchants or platforms can batch remove impurities from images to optimize image quality. We recommend using this in combination with the "Intelligent Recognition API" (coming soon). First, filter out images containing text, specific names, transparent text blocks, and blemishes, then use the "Intelligent Removal API" to batch remove them. The Intelligent Recognition API focuses on "recognition," while the Intelligent Removal API focuses on "removal." By calling them in sequence, you can maximize removal effectiveness and reduce "false removals" and "false recognitions."
1035
- * ## Feature Introduction
1036
- * 1. First, clarify the definitions of image subject and image background. In actual use, when specifying removal targets, you can choose whether the removal scope is the image subject or the image background area. Both API and editor integration methods are supported to meet different types of requirements.
1035
+ * 1. Image subject: the core product area in the image.
1036
+ *
1037
+ * 2. Image background: the remaining part of the image other than the product subject.
1038
+ *
1039
+ * 2. Second, the following four types of objects can be removed: text, specific names, transparent text blocks, and watermarks. Refer to the following examples to clarify your requirements and perform targeted operations:
1040
+ * ## Effect comparison
1041
+ * | **Original image** | **Image after removal** |
1042
+ * | --- | --- |
1043
+ * | ![Main image 1 - Leopard print large capacity millennium crossbody canvas bag.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/AJdl65AyryVZyOke/img/4bd2c812-ed3c-45da-8a86-ebd29102f4b1.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/eff0eb1b-36df-431d-a010-3bb3b7348ff9.png) |
1044
+ * | ![Main image 1 - Short round-tip French false nails with handle.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/c44ac17b-3fa4-4a6f-b411-90f1062b183b.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/af779684-4aa5-49b0-8668-34ab8bd4bcc1.png) |
1045
+ *
1046
+ * @param request - ImageRemovalProRequest
1047
+ * @param runtime - runtime options for this request RuntimeOptions
1048
+ * @returns ImageRemovalProResponse
1049
+ */
1050
+ async imageRemovalProWithOptions(request: $_model.ImageRemovalProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageRemovalProResponse> {
1051
+ request.validate();
1052
+ let query = { };
1053
+ if (!$dara.isNull(request.async)) {
1054
+ query["Async"] = request.async;
1055
+ }
1056
+
1057
+ if (!$dara.isNull(request.imageUrl)) {
1058
+ query["ImageUrl"] = request.imageUrl;
1059
+ }
1060
+
1061
+ let req = new $OpenApiUtil.OpenApiRequest({
1062
+ query: OpenApiUtil.query(query),
1063
+ });
1064
+ let params = new $OpenApiUtil.Params({
1065
+ action: "ImageRemovalPro",
1066
+ version: "2026-04-28",
1067
+ protocol: "HTTPS",
1068
+ pathname: "/",
1069
+ method: "POST",
1070
+ authType: "AK",
1071
+ style: "RPC",
1072
+ reqBodyType: "formData",
1073
+ bodyType: "json",
1074
+ });
1075
+ return $dara.cast<$_model.ImageRemovalProResponse>(await this.callApi(params, req, runtime), new $_model.ImageRemovalProResponse({}));
1076
+ }
1077
+
1078
+ /**
1079
+ * Intelligently identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images, supports specifying objects to remove as needed, enables efficient and precise batch processing of images, and simplifies image editing workflows (synchronous/asynchronous).
1080
+ *
1081
+ * @remarks
1082
+ * ## Product introduction
1083
+ * The intelligent image removal product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of images and simplifying image editing workflows. (Synchronous/Asynchronous)
1084
+ * ## Common scenarios
1085
+ * * **Efficient e-commerce image processing:**
1037
1086
  *
1038
- * 1. Image subject: The core product area in the image
1087
+ * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
1088
+ * * **Multi-platform product information synchronization:**
1089
+ *
1090
+ * When merchants list products across different e-commerce platforms, they can quickly remove specific text and watermarks to comply with image specifications of different platforms.
1091
+ * ## Features
1092
+ * 1. First, clarify the definitions of image subject and image background. When specifying objects to remove, you can choose whether the removal scope is the image subject or the image background area. Both API and editor access methods are supported to meet different types of requirements.
1093
+ *
1094
+ * 1. Image subject: the core product area in the image.
1039
1095
  *
1040
- * 2. Image background: The remaining portion of the image apart from the product subject
1096
+ * 2. Image background: the remaining part of the image other than the product subject.
1041
1097
  *
1042
- * 2. Second, the removal targets support the following four types: text, specific names, transparent text blocks, and blemishes. You can use the following examples to clarify your usage requirements and perform targeted operations:
1098
+ * 2. Second, the following four types of objects can be removed: text, specific names, transparent text blocks, and watermarks. Refer to the following examples to clarify your requirements and perform targeted operations:
1099
+ * ## Effect comparison
1100
+ * | **Original image** | **Image after removal** |
1101
+ * | --- | --- |
1102
+ * | ![Main image 1 - Leopard print large capacity millennium crossbody canvas bag.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/AJdl65AyryVZyOke/img/4bd2c812-ed3c-45da-8a86-ebd29102f4b1.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/eff0eb1b-36df-431d-a010-3bb3b7348ff9.png) |
1103
+ * | ![Main image 1 - Short round-tip French false nails with handle.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/c44ac17b-3fa4-4a6f-b411-90f1062b183b.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/af779684-4aa5-49b0-8668-34ab8bd4bcc1.png) |
1104
+ *
1105
+ * @param request - ImageRemovalProRequest
1106
+ * @returns ImageRemovalProResponse
1107
+ */
1108
+ async imageRemovalPro(request: $_model.ImageRemovalProRequest): Promise<$_model.ImageRemovalProResponse> {
1109
+ let runtime = new $dara.RuntimeOptions({ });
1110
+ return await this.imageRemovalProWithOptions(request, runtime);
1111
+ }
1112
+
1113
+ /**
1114
+ * Intelligently erases unwanted elements from e-commerce images, automatically identifying and removing text, specific names, transparent text blocks, and image blemishes, with support for specifying objects to erase as needed for efficient and precise batch processing that simplifies image editing workflows. (Synchronous)
1115
+ *
1116
+ * @remarks
1117
+ * ## Product Introduction
1118
+ * The intelligent image erasure product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to erase as needed, enabling efficient and precise batch processing that simplifies image editing workflows. (Synchronous)
1119
+ * ## Scenarios
1120
+ * * **Efficient e-commerce image processing:**
1043
1121
  *
1044
- * ## Effect Comparison
1045
- * | **Removable Objects in Images** | **Original Image** | **Image After Removal** |
1122
+ * Removes irrelevant visual elements to provide clearer, more focused product displays that enhance the shopping experience.
1123
+ * * **Multi-platform product information synchronization:**
1124
+ *
1125
+ * When merchants list products across different e-commerce platforms, they can quickly erase specific text and image blemishes to comply with different platform image requirements.
1126
+ * * **Marketing material preparation:**
1127
+ *
1128
+ * Merchants can easily remove existing promotional information and quickly update images with the latest campaign details.
1129
+ * > Note: Merchants or platforms can batch-remove impurities from images to optimize image quality. Use this API in combination with the "Intelligent Recognition API" (coming soon). First, filter out images containing text, specific names, transparent text blocks, and image blemishes, then use the "Intelligent Erasure API" for batch removal. The Intelligent Recognition API focuses on "recognition," while the Intelligent Erasure API focuses on "erasure." By calling them sequentially, you can maximize erasure effectiveness and reduce false removals and false identifications.
1130
+ * ## Features
1131
+ * 1. First, understand the definitions of image subject and image background. When specifying erasure objects, you can choose whether the erasure scope covers the image subject or the image background area. Both API and editor access methods are supported to meet different requirements.
1132
+ *
1133
+ * 1. Image subject: The core product area in the image.
1134
+ *
1135
+ * 2. Image background: The remaining portion of the image outside the product subject.
1136
+ *
1137
+ * 2. The following four types of objects can be erased: text, specific names, transparent text blocks, and image blemishes. Refer to the following examples to clarify your requirements and perform targeted operations:
1138
+ * ## Effect comparison
1139
+ * | **Erasable objects in images** | **Original image** | **Image after erasure** |
1046
1140
  * | --- | --- | --- |
1047
- * | Text | * Involving the image subject area
1141
+ * | Text | * Involves the image subject area
1048
1142
  *
1049
1143
  * ![done-image-4a2a96c2-9ac6-4b35-b76b-a6eac303740f (1).png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d72a7982-e761-4b45-af1e-f8f90b3f1fc3.png)
1050
1144
  *
1051
- * * Not involving the image subject area
1145
+ * * Does not involve the image subject area
1052
1146
  *
1053
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involving the image subject area
1147
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involves the image subject area
1054
1148
  *
1055
1149
  * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
1056
- * * Not involving the image subject area
1150
+ * * Does not involve the image subject area
1057
1151
  *
1058
1152
  * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
1059
- * | Specific Names | * Involving the image subject area
1153
+ * | Specific names | * Involves the image subject area
1060
1154
  *
1061
1155
  * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
1062
1156
  *
1063
- * * Not involving the image subject area
1157
+ * * Does not involve the image subject area
1064
1158
  *
1065
- * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involving the image subject area
1159
+ * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involves the image subject area
1066
1160
  *
1067
1161
  * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
1068
- * * Not involving the image subject area
1162
+ * * Does not involve the image subject area
1069
1163
  *
1070
1164
  * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
1071
- * | Transparent Text Blocks | * Involving the image subject area
1165
+ * | Transparent text blocks | * Involves the image subject area
1072
1166
  *
1073
1167
  * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
1074
1168
  *
1075
- * * Not involving the image subject area
1169
+ * * Does not involve the image subject area
1076
1170
  *
1077
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involving the image subject area
1171
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involves the image subject area
1078
1172
  *
1079
1173
  * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
1080
- * * Not involving the image subject area
1174
+ * * Does not involve the image subject area
1081
1175
  *
1082
1176
  * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
1083
- * | Blemishes | * Involving the image subject area
1177
+ * | Image blemishes | * Involves the image subject area
1084
1178
  *
1085
1179
  * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
1086
1180
  *
1087
- * * Not involving the image subject area
1181
+ * * Does not involve the image subject area
1088
1182
  *
1089
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involving the image subject area
1183
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involves the image subject area
1090
1184
  *
1091
1185
  * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
1092
- * * Not involving the image subject area
1186
+ * * Does not involve the image subject area
1093
1187
  *
1094
1188
  * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
1095
1189
  *
@@ -1144,80 +1238,79 @@ export default class Client extends OpenApi {
1144
1238
  }
1145
1239
 
1146
1240
  /**
1147
- * The Intelligent Image Removal product is specially designed for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and blemishes from e-commerce images. You can specify objects to remove from images as needed, enabling efficient and accurate batch processing of large volumes of images and simplifying the image editing workflow. (Synchronous)
1241
+ * Intelligently erases unwanted elements from e-commerce images, automatically identifying and removing text, specific names, transparent text blocks, and image blemishes, with support for specifying objects to erase as needed for efficient and precise batch processing that simplifies image editing workflows. (Synchronous)
1148
1242
  *
1149
1243
  * @remarks
1150
- * ## Product Overview
1151
- * The Intelligent Image Removal product is specially designed for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and blemishes from e-commerce images. You can specify objects to remove from images as needed, enabling efficient and accurate batch processing of large volumes of images and simplifying the image editing workflow. (Synchronous)
1152
- * ## Use Cases
1153
- * * **Efficient E-commerce Image Processing:**
1244
+ * ## Product Introduction
1245
+ * The intelligent image erasure product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to erase as needed, enabling efficient and precise batch processing that simplifies image editing workflows. (Synchronous)
1246
+ * ## Scenarios
1247
+ * * **Efficient e-commerce image processing:**
1154
1248
  *
1155
- * Remove irrelevant visual elements to provide a cleaner, more focused product display and enhance the customer shopping experience.
1156
- * * **Multi-platform Product Information Synchronization:**
1249
+ * Removes irrelevant visual elements to provide clearer, more focused product displays that enhance the shopping experience.
1250
+ * * **Multi-platform product information synchronization:**
1157
1251
  *
1158
- * When merchants simultaneously list products across different e-commerce platforms, they can quickly remove specific text and blemishes to comply with different platform image specifications.
1159
- * * **Marketing Material Preparation:**
1252
+ * When merchants list products across different e-commerce platforms, they can quickly erase specific text and image blemishes to comply with different platform image requirements.
1253
+ * * **Marketing material preparation:**
1160
1254
  *
1161
- * Merchants can easily remove existing promotional information and quickly update it with the latest campaign details.
1162
- * > Note: Merchants or platforms can batch remove impurities from images to optimize image quality. We recommend using this in combination with the "Intelligent Recognition API" (coming soon). First, filter out images containing text, specific names, transparent text blocks, and blemishes, then use the "Intelligent Removal API" to batch remove them. The Intelligent Recognition API focuses on "recognition," while the Intelligent Removal API focuses on "removal." By calling them in sequence, you can maximize removal effectiveness and reduce "false removals" and "false recognitions."
1163
- * ## Feature Introduction
1164
- * 1. First, clarify the definitions of image subject and image background. In actual use, when specifying removal targets, you can choose whether the removal scope is the image subject or the image background area. Both API and editor integration methods are supported to meet different types of requirements.
1255
+ * Merchants can easily remove existing promotional information and quickly update images with the latest campaign details.
1256
+ * > Note: Merchants or platforms can batch-remove impurities from images to optimize image quality. Use this API in combination with the "Intelligent Recognition API" (coming soon). First, filter out images containing text, specific names, transparent text blocks, and image blemishes, then use the "Intelligent Erasure API" for batch removal. The Intelligent Recognition API focuses on "recognition," while the Intelligent Erasure API focuses on "erasure." By calling them sequentially, you can maximize erasure effectiveness and reduce false removals and false identifications.
1257
+ * ## Features
1258
+ * 1. First, understand the definitions of image subject and image background. When specifying erasure objects, you can choose whether the erasure scope covers the image subject or the image background area. Both API and editor access methods are supported to meet different requirements.
1165
1259
  *
1166
- * 1. Image subject: The core product area in the image
1260
+ * 1. Image subject: The core product area in the image.
1167
1261
  *
1168
- * 2. Image background: The remaining portion of the image apart from the product subject
1262
+ * 2. Image background: The remaining portion of the image outside the product subject.
1169
1263
  *
1170
- * 2. Second, the removal targets support the following four types: text, specific names, transparent text blocks, and blemishes. You can use the following examples to clarify your usage requirements and perform targeted operations:
1171
- *
1172
- * ## Effect Comparison
1173
- * | **Removable Objects in Images** | **Original Image** | **Image After Removal** |
1264
+ * 2. The following four types of objects can be erased: text, specific names, transparent text blocks, and image blemishes. Refer to the following examples to clarify your requirements and perform targeted operations:
1265
+ * ## Effect comparison
1266
+ * | **Erasable objects in images** | **Original image** | **Image after erasure** |
1174
1267
  * | --- | --- | --- |
1175
- * | Text | * Involving the image subject area
1268
+ * | Text | * Involves the image subject area
1176
1269
  *
1177
1270
  * ![done-image-4a2a96c2-9ac6-4b35-b76b-a6eac303740f (1).png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d72a7982-e761-4b45-af1e-f8f90b3f1fc3.png)
1178
1271
  *
1179
- * * Not involving the image subject area
1272
+ * * Does not involve the image subject area
1180
1273
  *
1181
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involving the image subject area
1274
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involves the image subject area
1182
1275
  *
1183
1276
  * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
1184
- * * Not involving the image subject area
1277
+ * * Does not involve the image subject area
1185
1278
  *
1186
1279
  * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
1187
- * | Specific Names | * Involving the image subject area
1280
+ * | Specific names | * Involves the image subject area
1188
1281
  *
1189
1282
  * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
1190
1283
  *
1191
- * * Not involving the image subject area
1284
+ * * Does not involve the image subject area
1192
1285
  *
1193
- * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involving the image subject area
1286
+ * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involves the image subject area
1194
1287
  *
1195
1288
  * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
1196
- * * Not involving the image subject area
1289
+ * * Does not involve the image subject area
1197
1290
  *
1198
1291
  * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
1199
- * | Transparent Text Blocks | * Involving the image subject area
1292
+ * | Transparent text blocks | * Involves the image subject area
1200
1293
  *
1201
1294
  * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
1202
1295
  *
1203
- * * Not involving the image subject area
1296
+ * * Does not involve the image subject area
1204
1297
  *
1205
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involving the image subject area
1298
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involves the image subject area
1206
1299
  *
1207
1300
  * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
1208
- * * Not involving the image subject area
1301
+ * * Does not involve the image subject area
1209
1302
  *
1210
1303
  * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
1211
- * | Blemishes | * Involving the image subject area
1304
+ * | Image blemishes | * Involves the image subject area
1212
1305
  *
1213
1306
  * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
1214
1307
  *
1215
- * * Not involving the image subject area
1308
+ * * Does not involve the image subject area
1216
1309
  *
1217
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involving the image subject area
1310
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involves the image subject area
1218
1311
  *
1219
1312
  * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
1220
- * * Not involving the image subject area
1313
+ * * Does not involve the image subject area
1221
1314
  *
1222
1315
  * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
1223
1316
  *
@@ -1230,18 +1323,18 @@ export default class Client extends OpenApi {
1230
1323
  }
1231
1324
 
1232
1325
  /**
1233
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
1326
+ * 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).
1234
1327
  *
1235
1328
  * @remarks
1236
1329
  * ## Product Introduction
1237
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
1330
+ * 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).
1238
1331
  * ## Scenarios
1239
1332
  * E-commerce product images, marketing images, and images for various other scenarios.
1240
1333
  * ## Features
1241
- * - **Product subject information protection**: Specify whether to translate text on the product subject. This helps protect subject information such as embedded product names from being translated.
1242
- * - **Post-translation editing**: Specify 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 is not yet available. Follow platform notifications for updates.
1243
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1244
- * - **Translation intervention**: Customize translation results, including do-not-translate (ABCABC), specified translation (ABCDEF), and remove text (ABCempty value). This is commonly used for brand name protection. Pass the corresponding intervention glossary ID when calling the API to meet translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
1334
+ * - **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.
1335
+ * - **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.
1336
+ * - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
1337
+ * - **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.
1245
1338
  *
1246
1339
  * @param request - ImageTranslationProRequest
1247
1340
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1250,6 +1343,10 @@ export default class Client extends OpenApi {
1250
1343
  async imageTranslationProWithOptions(request: $_model.ImageTranslationProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationProResponse> {
1251
1344
  request.validate();
1252
1345
  let body : {[key: string ]: any} = { };
1346
+ if (!$dara.isNull(request.async)) {
1347
+ body["Async"] = request.async;
1348
+ }
1349
+
1253
1350
  if (!$dara.isNull(request.glossary)) {
1254
1351
  body["Glossary"] = request.glossary;
1255
1352
  }
@@ -1278,10 +1375,6 @@ export default class Client extends OpenApi {
1278
1375
  body["UseImageEditor"] = request.useImageEditor;
1279
1376
  }
1280
1377
 
1281
- if (!$dara.isNull(request.callType)) {
1282
- body["callType"] = request.callType;
1283
- }
1284
-
1285
1378
  let req = new $OpenApiUtil.OpenApiRequest({
1286
1379
  body: OpenApiUtil.parseToMap(body),
1287
1380
  });
@@ -1300,18 +1393,18 @@ export default class Client extends OpenApi {
1300
1393
  }
1301
1394
 
1302
1395
  /**
1303
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
1396
+ * 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).
1304
1397
  *
1305
1398
  * @remarks
1306
1399
  * ## Product Introduction
1307
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
1400
+ * 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).
1308
1401
  * ## Scenarios
1309
1402
  * E-commerce product images, marketing images, and images for various other scenarios.
1310
1403
  * ## Features
1311
- * - **Product subject information protection**: Specify whether to translate text on the product subject. This helps protect subject information such as embedded product names from being translated.
1312
- * - **Post-translation editing**: Specify 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 is not yet available. Follow platform notifications for updates.
1313
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1314
- * - **Translation intervention**: Customize translation results, including do-not-translate (ABCABC), specified translation (ABCDEF), and remove text (ABCempty value). This is commonly used for brand name protection. Pass the corresponding intervention glossary ID when calling the API to meet translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
1404
+ * - **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.
1405
+ * - **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.
1406
+ * - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
1407
+ * - **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.
1315
1408
  *
1316
1409
  * @param request - ImageTranslationProRequest
1317
1410
  * @returns ImageTranslationProResponse
@@ -1453,6 +1546,108 @@ export default class Client extends OpenApi {
1453
1546
  return await this.languageDetectWithOptions(request, runtime);
1454
1547
  }
1455
1548
 
1549
+ /**
1550
+ * Material display detection is an intelligent compliance detection capability for in-store marketing materials built on multimodal large language models (MLLMs). It is designed for marketing material inspection scenarios in offline retail and channel stores. For standard materials such as function card stands, posters, and door-shaped display stands, as well as long-tail materials such as light box fabrics, KT boards, floor stickers, and light boxes captured in store photos, the service performs natural-language-level compliance checks based on inspection rules and outputs structured conclusions and Chinese evidence descriptions that can be directly integrated with business systems. This is a **synchronous** call that returns results in a single request.
1551
+ *
1552
+ * @remarks
1553
+ * ## **Common scenarios**
1554
+ * - **In-store marketing material compliance inspection**: Automatically determines whether a store has placed or posted specified marketing materials (function card stands, posters, door-shaped display stands, etc.) according to the standard display guidelines issued by headquarters. Identifies typical issues such as "not placed," "placement fault," or "content mismatch."
1555
+ *
1556
+ * - **New product or campaign material deployment verification**: During new product launches or sales promotions, automatically verifies in batch whether campaign materials in store photos have been listed as required for publishing, overriding manual spot checks.
1557
+ *
1558
+ * - **Adaptive dual-image comparison and single-image detection**: A single API supports both "reference image + target image" dual-image comparison (Mode A) and "target image only" single-image detection (Mode B). The mode uses automatic switchover based on whether `ImageRefer` is provided. The caller does not need to differentiate between invocation methods.
1559
+ * ## **Features**
1560
+ * - **Multi-mode intelligent routing**: The service has built-in material type parsing capabilities. It automatically identifies the target material type from the `Rules` natural language text and routes the request to the corresponding detection pipeline. The caller only needs to provide image URLs and rule text. Four detection routing pipelines are currently supported: "function card stand," "poster," "door-shaped display stand," and "other materials." More detection pipelines for specific marketing material types will be added over time.
1561
+ *
1562
+ * - **MLLM semantic-level understanding + structured rule coordination**: A multimodal large language model performs semantic-level understanding tasks such as material recognition, content comparison, and text OCR. Combined with rule cleaning and a structuring model, natural language rules are broken down into individually evaluable steps (S1, S2, ...), ensuring both accuracy and rule flexibility with full traceability.
1563
+ *
1564
+ * - **Structured inspection conclusion output**: The output follows a unified structure of `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence`. The overall conclusion is derived by logically ANDing all step results. Each step is independently visible, making it easy to drive downstream business systems and support case-level manual review traceability.
1565
+ *
1566
+ * - **Supported input formats**: Currently supports publicly accessible image URLs. Both single-image (Mode B) and dual-image (Mode A) call modes are supported, with an identical output structure.
1567
+ * ## **How to invoke**
1568
+ * - **Synchronous call**: Returns detection results in a single request without polling. The response uses a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
1569
+ *
1570
+ * - **Authentication and signing**: Invoked through the Aidge gateway. Authentication, signing, and common parameters follow the platform\\"s unified access method. Refer to the officially published API reference for the exact request path.
1571
+ *
1572
+ * - **Timeout settings**: Set the request timeout to no less than the maximum response time of the API (refer to the official release for the specific value).
1573
+ *
1574
+ * @param request - MaterialInspectionRequest
1575
+ * @param runtime - runtime options for this request RuntimeOptions
1576
+ * @returns MaterialInspectionResponse
1577
+ */
1578
+ async materialInspectionWithOptions(request: $_model.MaterialInspectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MaterialInspectionResponse> {
1579
+ request.validate();
1580
+ let query = { };
1581
+ if (!$dara.isNull(request.apiId)) {
1582
+ query["ApiId"] = request.apiId;
1583
+ }
1584
+
1585
+ if (!$dara.isNull(request.imageRefer)) {
1586
+ query["ImageRefer"] = request.imageRefer;
1587
+ }
1588
+
1589
+ if (!$dara.isNull(request.imageUrl)) {
1590
+ query["ImageUrl"] = request.imageUrl;
1591
+ }
1592
+
1593
+ if (!$dara.isNull(request.reqId)) {
1594
+ query["ReqId"] = request.reqId;
1595
+ }
1596
+
1597
+ if (!$dara.isNull(request.rules)) {
1598
+ query["Rules"] = request.rules;
1599
+ }
1600
+
1601
+ let req = new $OpenApiUtil.OpenApiRequest({
1602
+ query: OpenApiUtil.query(query),
1603
+ });
1604
+ let params = new $OpenApiUtil.Params({
1605
+ action: "MaterialInspection",
1606
+ version: "2026-04-28",
1607
+ protocol: "HTTPS",
1608
+ pathname: "/",
1609
+ method: "POST",
1610
+ authType: "AK",
1611
+ style: "RPC",
1612
+ reqBodyType: "formData",
1613
+ bodyType: "json",
1614
+ });
1615
+ return $dara.cast<$_model.MaterialInspectionResponse>(await this.callApi(params, req, runtime), new $_model.MaterialInspectionResponse({}));
1616
+ }
1617
+
1618
+ /**
1619
+ * Material display detection is an intelligent compliance detection capability for in-store marketing materials built on multimodal large language models (MLLMs). It is designed for marketing material inspection scenarios in offline retail and channel stores. For standard materials such as function card stands, posters, and door-shaped display stands, as well as long-tail materials such as light box fabrics, KT boards, floor stickers, and light boxes captured in store photos, the service performs natural-language-level compliance checks based on inspection rules and outputs structured conclusions and Chinese evidence descriptions that can be directly integrated with business systems. This is a **synchronous** call that returns results in a single request.
1620
+ *
1621
+ * @remarks
1622
+ * ## **Common scenarios**
1623
+ * - **In-store marketing material compliance inspection**: Automatically determines whether a store has placed or posted specified marketing materials (function card stands, posters, door-shaped display stands, etc.) according to the standard display guidelines issued by headquarters. Identifies typical issues such as "not placed," "placement fault," or "content mismatch."
1624
+ *
1625
+ * - **New product or campaign material deployment verification**: During new product launches or sales promotions, automatically verifies in batch whether campaign materials in store photos have been listed as required for publishing, overriding manual spot checks.
1626
+ *
1627
+ * - **Adaptive dual-image comparison and single-image detection**: A single API supports both "reference image + target image" dual-image comparison (Mode A) and "target image only" single-image detection (Mode B). The mode uses automatic switchover based on whether `ImageRefer` is provided. The caller does not need to differentiate between invocation methods.
1628
+ * ## **Features**
1629
+ * - **Multi-mode intelligent routing**: The service has built-in material type parsing capabilities. It automatically identifies the target material type from the `Rules` natural language text and routes the request to the corresponding detection pipeline. The caller only needs to provide image URLs and rule text. Four detection routing pipelines are currently supported: "function card stand," "poster," "door-shaped display stand," and "other materials." More detection pipelines for specific marketing material types will be added over time.
1630
+ *
1631
+ * - **MLLM semantic-level understanding + structured rule coordination**: A multimodal large language model performs semantic-level understanding tasks such as material recognition, content comparison, and text OCR. Combined with rule cleaning and a structuring model, natural language rules are broken down into individually evaluable steps (S1, S2, ...), ensuring both accuracy and rule flexibility with full traceability.
1632
+ *
1633
+ * - **Structured inspection conclusion output**: The output follows a unified structure of `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence`. The overall conclusion is derived by logically ANDing all step results. Each step is independently visible, making it easy to drive downstream business systems and support case-level manual review traceability.
1634
+ *
1635
+ * - **Supported input formats**: Currently supports publicly accessible image URLs. Both single-image (Mode B) and dual-image (Mode A) call modes are supported, with an identical output structure.
1636
+ * ## **How to invoke**
1637
+ * - **Synchronous call**: Returns detection results in a single request without polling. The response uses a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
1638
+ *
1639
+ * - **Authentication and signing**: Invoked through the Aidge gateway. Authentication, signing, and common parameters follow the platform\\"s unified access method. Refer to the officially published API reference for the exact request path.
1640
+ *
1641
+ * - **Timeout settings**: Set the request timeout to no less than the maximum response time of the API (refer to the official release for the specific value).
1642
+ *
1643
+ * @param request - MaterialInspectionRequest
1644
+ * @returns MaterialInspectionResponse
1645
+ */
1646
+ async materialInspection(request: $_model.MaterialInspectionRequest): Promise<$_model.MaterialInspectionResponse> {
1647
+ let runtime = new $dara.RuntimeOptions({ });
1648
+ return await this.materialInspectionWithOptions(request, runtime);
1649
+ }
1650
+
1456
1651
  /**
1457
1652
  * 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.
1458
1653
  *
@@ -2034,28 +2229,28 @@ export default class Client extends OpenApi {
2034
2229
  }
2035
2230
 
2036
2231
  /**
2037
- * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs. The model is 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.
2232
+ * 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.
2038
2233
  *
2039
2234
  * @remarks
2040
2235
  * ## Product Introduction
2041
- * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs. The model is 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.
2236
+ * 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.
2042
2237
  * ## Common scenarios
2043
- * - Product titles: Marco MT can accurately translate phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
2044
- * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco MT supports long text translation and HTML format, delivering excellent translation quality and format preservation.
2045
- * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
2046
- * - Customer service conversations: In customer service scenarios, Marco MT can handle issues such as missing context and typos, and supports polite expressions for certain language directions.
2047
- * Marco MT can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
2238
+ * - 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.
2239
+ * - 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.
2240
+ * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
2241
+ * - 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.
2242
+ * Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
2048
2243
  * ## Features
2049
- * - **Supported language directions** Marco MT 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.
2050
- * - **Ultra-low hallucination rate and high-speed inference** Marco MT is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it delivers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
2244
+ * - **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.
2245
+ * - **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.
2051
2246
  * - **Supported text format types** Currently supports text and html text types.
2052
- * - **Translation intervention** Supports custom translation results, including do-not-translate (ABCABC), specified translation (ABCDEF), and skip translation (ABCempty value). This is commonly used for brand name protection. 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.
2247
+ * - **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. Contact the platform for additional capacity.
2053
2248
  * ## Translation quality comparison
2054
2249
  * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
2055
2250
  * |----------|---------------|-----------------------|-----------------------|---------------------|
2056
2251
  * | 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 |
2057
2252
  * | 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 |
2058
- * | 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 accurate product subject description. The product is a "key bag" rather than a "keychain." Other translations may cause ambiguity about the product subject |.
2253
+ * | 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 accurate product subject expression as "key bag" rather than "keychain". Other translations may cause ambiguity about the product subject |
2059
2254
  *
2060
2255
  * @param tmpReq - TextTranslateRequest
2061
2256
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2070,6 +2265,10 @@ export default class Client extends OpenApi {
2070
2265
  }
2071
2266
 
2072
2267
  let body : {[key: string ]: any} = { };
2268
+ if (!$dara.isNull(request.bizName)) {
2269
+ body["BizName"] = request.bizName;
2270
+ }
2271
+
2073
2272
  if (!$dara.isNull(request.formatType)) {
2074
2273
  body["FormatType"] = request.formatType;
2075
2274
  }
@@ -2090,6 +2289,10 @@ export default class Client extends OpenApi {
2090
2289
  body["TargetLanguage"] = request.targetLanguage;
2091
2290
  }
2092
2291
 
2292
+ if (!$dara.isNull(request.translateScene)) {
2293
+ body["TranslateScene"] = request.translateScene;
2294
+ }
2295
+
2093
2296
  let req = new $OpenApiUtil.OpenApiRequest({
2094
2297
  body: OpenApiUtil.parseToMap(body),
2095
2298
  });
@@ -2108,28 +2311,28 @@ export default class Client extends OpenApi {
2108
2311
  }
2109
2312
 
2110
2313
  /**
2111
- * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs. The model is 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.
2314
+ * 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.
2112
2315
  *
2113
2316
  * @remarks
2114
2317
  * ## Product Introduction
2115
- * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs. The model is 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.
2318
+ * 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.
2116
2319
  * ## Common scenarios
2117
- * - Product titles: Marco MT can accurately translate phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
2118
- * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco MT supports long text translation and HTML format, delivering excellent translation quality and format preservation.
2119
- * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
2120
- * - Customer service conversations: In customer service scenarios, Marco MT can handle issues such as missing context and typos, and supports polite expressions for certain language directions.
2121
- * Marco MT can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
2320
+ * - 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.
2321
+ * - 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.
2322
+ * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
2323
+ * - 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.
2324
+ * Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
2122
2325
  * ## Features
2123
- * - **Supported language directions** Marco MT 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.
2124
- * - **Ultra-low hallucination rate and high-speed inference** Marco MT is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it delivers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
2326
+ * - **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.
2327
+ * - **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.
2125
2328
  * - **Supported text format types** Currently supports text and html text types.
2126
- * - **Translation intervention** Supports custom translation results, including do-not-translate (ABCABC), specified translation (ABCDEF), and skip translation (ABCempty value). This is commonly used for brand name protection. 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.
2329
+ * - **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. Contact the platform for additional capacity.
2127
2330
  * ## Translation quality comparison
2128
2331
  * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
2129
2332
  * |----------|---------------|-----------------------|-----------------------|---------------------|
2130
2333
  * | 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 |
2131
2334
  * | 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 |
2132
- * | 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 accurate product subject description. The product is a "key bag" rather than a "keychain." Other translations may cause ambiguity about the product subject |.
2335
+ * | 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 accurate product subject expression as "key bag" rather than "keychain". Other translations may cause ambiguity about the product subject |
2133
2336
  *
2134
2337
  * @param request - TextTranslateRequest
2135
2338
  * @returns TextTranslateResponse