@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/dist/client.js CHANGED
@@ -48,7 +48,10 @@ __exportStar(require("./models/model"), exports);
48
48
  class Client extends openapi_core_1.default {
49
49
  constructor(config) {
50
50
  super(config);
51
- this._endpointRule = "";
51
+ this._endpointRule = "regional";
52
+ this._endpointMap = {
53
+ 'cn-beijing': "aidge.cn-beijing.aliyuncs.com",
54
+ };
52
55
  this.checkConfig(config);
53
56
  this._endpoint = this.getEndpoint("aidge", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
54
57
  }
@@ -498,25 +501,24 @@ class Client extends openapi_core_1.default {
498
501
  return await this.categoryMatchWithOptions(request, runtime);
499
502
  }
500
503
  /**
501
- * 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.
502
- * The service excels in the following areas:
503
- * - Content accuracy: translation accuracy, parameter and unit accuracy.
504
- * - Structural integrity: overall layout continuity, page margin and layout preservation.
504
+ * Translates documents between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas:
505
+ * - Content accuracy: translation accuracy, parameter and unit accuracy
506
+ * - Structural integrity: overall layout continuity, page margin and layout preservation
505
507
  *
506
508
  * @remarks
507
509
  * ## Product Introduction
508
- * 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.
509
- * The service excels in the following areas:
510
- * - Content accuracy: translation accuracy, parameter and unit accuracy.
511
- * - Structural integrity: overall layout continuity, page margin and layout preservation.
510
+ * 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.
511
+ * Excels in the following areas:
512
+ * - Content accuracy: translation accuracy, parameter and unit accuracy
513
+ * - Structural integrity: overall layout continuity, page margin and layout preservation
512
514
  * ## Common scenarios
513
515
  * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
514
516
  * 3. Features
515
- * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed list of supported languages, see section 4.5.
516
- * - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
517
+ * - Supports PDF and Word formats. Supports source documents containing multiple languages. Refer to section 4.5 for the detailed language list.
518
+ * - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
517
519
  * - Supports high-fidelity layout preservation after translation.
518
- * - A single PDF supports up to 100 pages, and a single Word document supports up to 100 pages.
519
- * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). 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.
520
+ * - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
521
+ * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 glossary entries. Contact the platform for additional capacity.
520
522
  *
521
523
  * @param request - DocumentTranslateRequest
522
524
  * @param runtime - runtime options for this request RuntimeOptions
@@ -554,25 +556,24 @@ class Client extends openapi_core_1.default {
554
556
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DocumentTranslateResponse({}));
555
557
  }
556
558
  /**
557
- * 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.
558
- * The service excels in the following areas:
559
- * - Content accuracy: translation accuracy, parameter and unit accuracy.
560
- * - Structural integrity: overall layout continuity, page margin and layout preservation.
559
+ * Translates documents between more than 100 language pairs (including bridged pairs), supporting multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas:
560
+ * - Content accuracy: translation accuracy, parameter and unit accuracy
561
+ * - Structural integrity: overall layout continuity, page margin and layout preservation
561
562
  *
562
563
  * @remarks
563
564
  * ## Product Introduction
564
- * 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.
565
- * The service excels in the following areas:
566
- * - Content accuracy: translation accuracy, parameter and unit accuracy.
567
- * - Structural integrity: overall layout continuity, page margin and layout preservation.
565
+ * 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.
566
+ * Excels in the following areas:
567
+ * - Content accuracy: translation accuracy, parameter and unit accuracy
568
+ * - Structural integrity: overall layout continuity, page margin and layout preservation
568
569
  * ## Common scenarios
569
570
  * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
570
571
  * 3. Features
571
- * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed list of supported languages, see section 4.5.
572
- * - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
572
+ * - Supports PDF and Word formats. Supports source documents containing multiple languages. Refer to section 4.5 for the detailed language list.
573
+ * - Supports translation of text within images in documents, as well as other complex translation scenarios such as charts and special symbols.
573
574
  * - Supports high-fidelity layout preservation after translation.
574
- * - A single PDF supports up to 100 pages, and a single Word document supports up to 100 pages.
575
- * - 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.
575
+ * - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
576
+ * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 glossary entries. Contact the platform for additional capacity.
576
577
  *
577
578
  * @param request - DocumentTranslateRequest
578
579
  * @returns DocumentTranslateResponse
@@ -667,32 +668,32 @@ class Client extends openapi_core_1.default {
667
668
  return await this.imageCroppingWithOptions(request, runtime);
668
669
  }
669
670
  /**
670
- * 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).
671
+ * 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)
671
672
  *
672
673
  * @remarks
673
674
  * ## Product Introduction
674
- * 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).
675
+ * 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)
675
676
  * ## Scenarios
676
677
  * * **Secondary editing of materials**: After separating the image subject from the background, you can further edit the image.
677
678
  *
678
679
  * * **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.
679
680
  * ## Features.
680
681
  * #### 1. One-click precise subject recognition
681
- * * **AI automatic recognition**: Based on deep learning models, the feature intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
682
+ * * **AI automatic recognition**: Based on deep learning models, intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
682
683
  *
683
684
  * * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair strands, transparent objects, and fur edges) with an accuracy rate exceeding 95%.
684
685
  * #### 2. Intelligent edge optimization
685
- * * **Detail-level processing**: Performs automatic optimization of edge aliasing and semi-transparent areas (such as smoke and glass) while preserving natural transition effects.
686
+ * * **Detail-level processing**: Performs automatic optimization on edge aliasing and semi-transparent areas (such as smoke and glass) to preserve natural transition effects.
686
687
  * #### 3. Multi-format output and background operations
687
688
  * * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, suitable for e-commerce, design, and other scenarios.
688
689
  *
689
- * * **Custom background color support**.
690
+ * * **Custom background color support**
690
691
  * ## Effect comparison
691
692
  * | **Original image (input)** | **Result image (output)** |
692
693
  * | --- | --- |
693
694
  * | ![主图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) |
694
695
  * | ![主图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) |
695
- * | ![主图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) |.
696
+ * | ![主图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) |
696
697
  *
697
698
  * @param request - ImageMattingRequest
698
699
  * @param runtime - runtime options for this request RuntimeOptions
@@ -733,32 +734,32 @@ class Client extends openapi_core_1.default {
733
734
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageMattingResponse({}));
734
735
  }
735
736
  /**
736
- * 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).
737
+ * 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)
737
738
  *
738
739
  * @remarks
739
740
  * ## Product Introduction
740
- * 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).
741
+ * 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)
741
742
  * ## Scenarios
742
743
  * * **Secondary editing of materials**: After separating the image subject from the background, you can further edit the image.
743
744
  *
744
745
  * * **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.
745
746
  * ## Features.
746
747
  * #### 1. One-click precise subject recognition
747
- * * **AI automatic recognition**: Based on deep learning models, the feature intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
748
+ * * **AI automatic recognition**: Based on deep learning models, intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
748
749
  *
749
750
  * * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair strands, transparent objects, and fur edges) with an accuracy rate exceeding 95%.
750
751
  * #### 2. Intelligent edge optimization
751
- * * **Detail-level processing**: Performs automatic optimization of edge aliasing and semi-transparent areas (such as smoke and glass) while preserving natural transition effects.
752
+ * * **Detail-level processing**: Performs automatic optimization on edge aliasing and semi-transparent areas (such as smoke and glass) to preserve natural transition effects.
752
753
  * #### 3. Multi-format output and background operations
753
754
  * * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, suitable for e-commerce, design, and other scenarios.
754
755
  *
755
- * * **Custom background color support**.
756
+ * * **Custom background color support**
756
757
  * ## Effect comparison
757
758
  * | **Original image (input)** | **Result image (output)** |
758
759
  * | --- | --- |
759
760
  * | ![主图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) |
760
761
  * | ![主图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) |
761
- * | ![主图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) |.
762
+ * | ![主图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) |
762
763
  *
763
764
  * @param request - ImageMattingRequest
764
765
  * @returns ImageMattingResponse
@@ -972,80 +973,169 @@ class Client extends openapi_core_1.default {
972
973
  return await this.imageRecognitionWithOptions(request, runtime);
973
974
  }
974
975
  /**
975
- * 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)
976
+ * 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).
976
977
  *
977
978
  * @remarks
978
- * ## Product Overview
979
- * 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)
980
- * ## Use Cases
981
- * * **Efficient E-commerce Image Processing:**
979
+ * ## Product introduction
980
+ * 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)
981
+ * ## Common scenarios
982
+ * * **Efficient e-commerce image processing:**
982
983
  *
983
- * Remove irrelevant visual elements to provide a cleaner, more focused product display and enhance the customer shopping experience.
984
- * * **Multi-platform Product Information Synchronization:**
984
+ * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
985
+ * * **Multi-platform product information synchronization:**
985
986
  *
986
- * 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.
987
- * * **Marketing Material Preparation:**
987
+ * 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.
988
+ * ## Features
989
+ * 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.
988
990
  *
989
- * Merchants can easily remove existing promotional information and quickly update it with the latest campaign details.
990
- * > 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."
991
- * ## Feature Introduction
992
- * 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.
991
+ * 1. Image subject: the core product area in the image.
993
992
  *
994
- * 1. Image subject: The core product area in the image
993
+ * 2. Image background: the remaining part of the image other than the product subject.
995
994
  *
996
- * 2. Image background: The remaining portion of the image apart from the product subject
995
+ * 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:
996
+ * ## Effect comparison
997
+ * | **Original image** | **Image after removal** |
998
+ * | --- | --- |
999
+ * | ![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) |
1000
+ * | ![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) |
997
1001
  *
998
- * 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:
1002
+ * @param request - ImageRemovalProRequest
1003
+ * @param runtime - runtime options for this request RuntimeOptions
1004
+ * @returns ImageRemovalProResponse
1005
+ */
1006
+ async imageRemovalProWithOptions(request, runtime) {
1007
+ request.validate();
1008
+ let query = {};
1009
+ if (!$dara.isNull(request.async)) {
1010
+ query["Async"] = request.async;
1011
+ }
1012
+ if (!$dara.isNull(request.imageUrl)) {
1013
+ query["ImageUrl"] = request.imageUrl;
1014
+ }
1015
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1016
+ query: openapi_core_2.OpenApiUtil.query(query),
1017
+ });
1018
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1019
+ action: "ImageRemovalPro",
1020
+ version: "2026-04-28",
1021
+ protocol: "HTTPS",
1022
+ pathname: "/",
1023
+ method: "POST",
1024
+ authType: "AK",
1025
+ style: "RPC",
1026
+ reqBodyType: "formData",
1027
+ bodyType: "json",
1028
+ });
1029
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemovalProResponse({}));
1030
+ }
1031
+ /**
1032
+ * 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).
999
1033
  *
1000
- * ## Effect Comparison
1001
- * | **Removable Objects in Images** | **Original Image** | **Image After Removal** |
1034
+ * @remarks
1035
+ * ## Product introduction
1036
+ * 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)
1037
+ * ## Common scenarios
1038
+ * * **Efficient e-commerce image processing:**
1039
+ *
1040
+ * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
1041
+ * * **Multi-platform product information synchronization:**
1042
+ *
1043
+ * 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.
1044
+ * ## Features
1045
+ * 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.
1046
+ *
1047
+ * 1. Image subject: the core product area in the image.
1048
+ *
1049
+ * 2. Image background: the remaining part of the image other than the product subject.
1050
+ *
1051
+ * 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:
1052
+ * ## Effect comparison
1053
+ * | **Original image** | **Image after removal** |
1054
+ * | --- | --- |
1055
+ * | ![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) |
1056
+ * | ![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) |
1057
+ *
1058
+ * @param request - ImageRemovalProRequest
1059
+ * @returns ImageRemovalProResponse
1060
+ */
1061
+ async imageRemovalPro(request) {
1062
+ let runtime = new $dara.RuntimeOptions({});
1063
+ return await this.imageRemovalProWithOptions(request, runtime);
1064
+ }
1065
+ /**
1066
+ * 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)
1067
+ *
1068
+ * @remarks
1069
+ * ## Product Introduction
1070
+ * 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)
1071
+ * ## Scenarios
1072
+ * * **Efficient e-commerce image processing:**
1073
+ *
1074
+ * Removes irrelevant visual elements to provide clearer, more focused product displays that enhance the shopping experience.
1075
+ * * **Multi-platform product information synchronization:**
1076
+ *
1077
+ * 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.
1078
+ * * **Marketing material preparation:**
1079
+ *
1080
+ * Merchants can easily remove existing promotional information and quickly update images with the latest campaign details.
1081
+ * > 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.
1082
+ * ## Features
1083
+ * 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.
1084
+ *
1085
+ * 1. Image subject: The core product area in the image.
1086
+ *
1087
+ * 2. Image background: The remaining portion of the image outside the product subject.
1088
+ *
1089
+ * 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:
1090
+ * ## Effect comparison
1091
+ * | **Erasable objects in images** | **Original image** | **Image after erasure** |
1002
1092
  * | --- | --- | --- |
1003
- * | Text | * Involving the image subject area
1093
+ * | Text | * Involves the image subject area
1004
1094
  *
1005
1095
  * ![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)
1006
1096
  *
1007
- * * Not involving the image subject area
1097
+ * * Does not involve the image subject area
1008
1098
  *
1009
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involving the image subject area
1099
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involves the image subject area
1010
1100
  *
1011
1101
  * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
1012
- * * Not involving the image subject area
1102
+ * * Does not involve the image subject area
1013
1103
  *
1014
1104
  * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
1015
- * | Specific Names | * Involving the image subject area
1105
+ * | Specific names | * Involves the image subject area
1016
1106
  *
1017
1107
  * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
1018
1108
  *
1019
- * * Not involving the image subject area
1109
+ * * Does not involve the image subject area
1020
1110
  *
1021
- * ![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
1111
+ * ![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
1022
1112
  *
1023
1113
  * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
1024
- * * Not involving the image subject area
1114
+ * * Does not involve the image subject area
1025
1115
  *
1026
1116
  * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
1027
- * | Transparent Text Blocks | * Involving the image subject area
1117
+ * | Transparent text blocks | * Involves the image subject area
1028
1118
  *
1029
1119
  * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
1030
1120
  *
1031
- * * Not involving the image subject area
1121
+ * * Does not involve the image subject area
1032
1122
  *
1033
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involving the image subject area
1123
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involves the image subject area
1034
1124
  *
1035
1125
  * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
1036
- * * Not involving the image subject area
1126
+ * * Does not involve the image subject area
1037
1127
  *
1038
1128
  * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
1039
- * | Blemishes | * Involving the image subject area
1129
+ * | Image blemishes | * Involves the image subject area
1040
1130
  *
1041
1131
  * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
1042
1132
  *
1043
- * * Not involving the image subject area
1133
+ * * Does not involve the image subject area
1044
1134
  *
1045
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involving the image subject area
1135
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involves the image subject area
1046
1136
  *
1047
1137
  * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
1048
- * * Not involving the image subject area
1138
+ * * Does not involve the image subject area
1049
1139
  *
1050
1140
  * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
1051
1141
  *
@@ -1093,80 +1183,79 @@ class Client extends openapi_core_1.default {
1093
1183
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemoveResponse({}));
1094
1184
  }
1095
1185
  /**
1096
- * 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)
1186
+ * 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)
1097
1187
  *
1098
1188
  * @remarks
1099
- * ## Product Overview
1100
- * 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)
1101
- * ## Use Cases
1102
- * * **Efficient E-commerce Image Processing:**
1103
- *
1104
- * Remove irrelevant visual elements to provide a cleaner, more focused product display and enhance the customer shopping experience.
1105
- * * **Multi-platform Product Information Synchronization:**
1189
+ * ## Product Introduction
1190
+ * 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)
1191
+ * ## Scenarios
1192
+ * * **Efficient e-commerce image processing:**
1106
1193
  *
1107
- * 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.
1108
- * * **Marketing Material Preparation:**
1194
+ * Removes irrelevant visual elements to provide clearer, more focused product displays that enhance the shopping experience.
1195
+ * * **Multi-platform product information synchronization:**
1109
1196
  *
1110
- * Merchants can easily remove existing promotional information and quickly update it with the latest campaign details.
1111
- * > 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."
1112
- * ## Feature Introduction
1113
- * 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.
1197
+ * 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.
1198
+ * * **Marketing material preparation:**
1114
1199
  *
1115
- * 1. Image subject: The core product area in the image
1200
+ * Merchants can easily remove existing promotional information and quickly update images with the latest campaign details.
1201
+ * > 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.
1202
+ * ## Features
1203
+ * 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.
1116
1204
  *
1117
- * 2. Image background: The remaining portion of the image apart from the product subject
1205
+ * 1. Image subject: The core product area in the image.
1118
1206
  *
1119
- * 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:
1207
+ * 2. Image background: The remaining portion of the image outside the product subject.
1120
1208
  *
1121
- * ## Effect Comparison
1122
- * | **Removable Objects in Images** | **Original Image** | **Image After Removal** |
1209
+ * 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:
1210
+ * ## Effect comparison
1211
+ * | **Erasable objects in images** | **Original image** | **Image after erasure** |
1123
1212
  * | --- | --- | --- |
1124
- * | Text | * Involving the image subject area
1213
+ * | Text | * Involves the image subject area
1125
1214
  *
1126
1215
  * ![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)
1127
1216
  *
1128
- * * Not involving the image subject area
1217
+ * * Does not involve the image subject area
1129
1218
  *
1130
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involving the image subject area
1219
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involves the image subject area
1131
1220
  *
1132
1221
  * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
1133
- * * Not involving the image subject area
1222
+ * * Does not involve the image subject area
1134
1223
  *
1135
1224
  * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
1136
- * | Specific Names | * Involving the image subject area
1225
+ * | Specific names | * Involves the image subject area
1137
1226
  *
1138
1227
  * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
1139
1228
  *
1140
- * * Not involving the image subject area
1229
+ * * Does not involve the image subject area
1141
1230
  *
1142
- * ![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
1231
+ * ![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
1143
1232
  *
1144
1233
  * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
1145
- * * Not involving the image subject area
1234
+ * * Does not involve the image subject area
1146
1235
  *
1147
1236
  * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
1148
- * | Transparent Text Blocks | * Involving the image subject area
1237
+ * | Transparent text blocks | * Involves the image subject area
1149
1238
  *
1150
1239
  * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
1151
1240
  *
1152
- * * Not involving the image subject area
1241
+ * * Does not involve the image subject area
1153
1242
  *
1154
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involving the image subject area
1243
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involves the image subject area
1155
1244
  *
1156
1245
  * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
1157
- * * Not involving the image subject area
1246
+ * * Does not involve the image subject area
1158
1247
  *
1159
1248
  * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
1160
- * | Blemishes | * Involving the image subject area
1249
+ * | Image blemishes | * Involves the image subject area
1161
1250
  *
1162
1251
  * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
1163
1252
  *
1164
- * * Not involving the image subject area
1253
+ * * Does not involve the image subject area
1165
1254
  *
1166
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involving the image subject area
1255
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involves the image subject area
1167
1256
  *
1168
1257
  * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
1169
- * * Not involving the image subject area
1258
+ * * Does not involve the image subject area
1170
1259
  *
1171
1260
  * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
1172
1261
  *
@@ -1178,18 +1267,18 @@ class Client extends openapi_core_1.default {
1178
1267
  return await this.imageRemoveWithOptions(request, runtime);
1179
1268
  }
1180
1269
  /**
1181
- * 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.
1270
+ * Translates images using the Pro edition, which is designed specifically for e-commerce images. This product integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
1182
1271
  *
1183
1272
  * @remarks
1184
1273
  * ## Product Introduction
1185
- * 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.
1274
+ * The Image Translation Pro edition is designed specifically for e-commerce images. It integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
1186
1275
  * ## Scenarios
1187
1276
  * E-commerce product images, marketing images, and images for various other scenarios.
1188
1277
  * ## Features
1189
- * - **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.
1190
- * - **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.
1191
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1192
- * - **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.
1278
+ * - **Product subject protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded information like product names.
1279
+ * - **Post-translation editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
1280
+ * - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
1281
+ * - **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
1193
1282
  *
1194
1283
  * @param request - ImageTranslationProRequest
1195
1284
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1198,6 +1287,9 @@ class Client extends openapi_core_1.default {
1198
1287
  async imageTranslationProWithOptions(request, runtime) {
1199
1288
  request.validate();
1200
1289
  let body = {};
1290
+ if (!$dara.isNull(request.async)) {
1291
+ body["Async"] = request.async;
1292
+ }
1201
1293
  if (!$dara.isNull(request.glossary)) {
1202
1294
  body["Glossary"] = request.glossary;
1203
1295
  }
@@ -1219,9 +1311,6 @@ class Client extends openapi_core_1.default {
1219
1311
  if (!$dara.isNull(request.useImageEditor)) {
1220
1312
  body["UseImageEditor"] = request.useImageEditor;
1221
1313
  }
1222
- if (!$dara.isNull(request.callType)) {
1223
- body["callType"] = request.callType;
1224
- }
1225
1314
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1226
1315
  body: openapi_core_2.OpenApiUtil.parseToMap(body),
1227
1316
  });
@@ -1239,18 +1328,18 @@ class Client extends openapi_core_1.default {
1239
1328
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
1240
1329
  }
1241
1330
  /**
1242
- * 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.
1331
+ * Translates images using the Pro edition, which is designed specifically for e-commerce images. This product integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
1243
1332
  *
1244
1333
  * @remarks
1245
1334
  * ## Product Introduction
1246
- * 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.
1335
+ * The Image Translation Pro edition is designed specifically for e-commerce images. It integrates multimodal large model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. Supports more than 100 language directions (including bridged translations).
1247
1336
  * ## Scenarios
1248
1337
  * E-commerce product images, marketing images, and images for various other scenarios.
1249
1338
  * ## Features
1250
- * - **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.
1251
- * - **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.
1252
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1253
- * - **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.
1339
+ * - **Product subject protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded information like product names.
1340
+ * - **Post-translation editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
1341
+ * - **Brand name protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
1342
+ * - **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
1254
1343
  *
1255
1344
  * @param request - ImageTranslationProRequest
1256
1345
  * @returns ImageTranslationProResponse
@@ -1380,6 +1469,101 @@ class Client extends openapi_core_1.default {
1380
1469
  let runtime = new $dara.RuntimeOptions({});
1381
1470
  return await this.languageDetectWithOptions(request, runtime);
1382
1471
  }
1472
+ /**
1473
+ * 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.
1474
+ *
1475
+ * @remarks
1476
+ * ## **Common scenarios**
1477
+ * - **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."
1478
+ *
1479
+ * - **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.
1480
+ *
1481
+ * - **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.
1482
+ * ## **Features**
1483
+ * - **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.
1484
+ *
1485
+ * - **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.
1486
+ *
1487
+ * - **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.
1488
+ *
1489
+ * - **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.
1490
+ * ## **How to invoke**
1491
+ * - **Synchronous call**: Returns detection results in a single request without polling. The response uses a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
1492
+ *
1493
+ * - **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.
1494
+ *
1495
+ * - **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).
1496
+ *
1497
+ * @param request - MaterialInspectionRequest
1498
+ * @param runtime - runtime options for this request RuntimeOptions
1499
+ * @returns MaterialInspectionResponse
1500
+ */
1501
+ async materialInspectionWithOptions(request, runtime) {
1502
+ request.validate();
1503
+ let query = {};
1504
+ if (!$dara.isNull(request.apiId)) {
1505
+ query["ApiId"] = request.apiId;
1506
+ }
1507
+ if (!$dara.isNull(request.imageRefer)) {
1508
+ query["ImageRefer"] = request.imageRefer;
1509
+ }
1510
+ if (!$dara.isNull(request.imageUrl)) {
1511
+ query["ImageUrl"] = request.imageUrl;
1512
+ }
1513
+ if (!$dara.isNull(request.reqId)) {
1514
+ query["ReqId"] = request.reqId;
1515
+ }
1516
+ if (!$dara.isNull(request.rules)) {
1517
+ query["Rules"] = request.rules;
1518
+ }
1519
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1520
+ query: openapi_core_2.OpenApiUtil.query(query),
1521
+ });
1522
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1523
+ action: "MaterialInspection",
1524
+ version: "2026-04-28",
1525
+ protocol: "HTTPS",
1526
+ pathname: "/",
1527
+ method: "POST",
1528
+ authType: "AK",
1529
+ style: "RPC",
1530
+ reqBodyType: "formData",
1531
+ bodyType: "json",
1532
+ });
1533
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.MaterialInspectionResponse({}));
1534
+ }
1535
+ /**
1536
+ * 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.
1537
+ *
1538
+ * @remarks
1539
+ * ## **Common scenarios**
1540
+ * - **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."
1541
+ *
1542
+ * - **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.
1543
+ *
1544
+ * - **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.
1545
+ * ## **Features**
1546
+ * - **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.
1547
+ *
1548
+ * - **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.
1549
+ *
1550
+ * - **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.
1551
+ *
1552
+ * - **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.
1553
+ * ## **How to invoke**
1554
+ * - **Synchronous call**: Returns detection results in a single request without polling. The response uses a unified envelope of `Code` / `Message` / `RequestId` / `Success` / `Data`.
1555
+ *
1556
+ * - **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.
1557
+ *
1558
+ * - **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).
1559
+ *
1560
+ * @param request - MaterialInspectionRequest
1561
+ * @returns MaterialInspectionResponse
1562
+ */
1563
+ async materialInspection(request) {
1564
+ let runtime = new $dara.RuntimeOptions({});
1565
+ return await this.materialInspectionWithOptions(request, runtime);
1566
+ }
1383
1567
  /**
1384
1568
  * 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.
1385
1569
  *
@@ -1940,28 +2124,28 @@ class Client extends openapi_core_1.default {
1940
2124
  return await this.textCorrectWithOptions(request, runtime);
1941
2125
  }
1942
2126
  /**
1943
- * 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.
2127
+ * 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.
1944
2128
  *
1945
2129
  * @remarks
1946
2130
  * ## Product Introduction
1947
- * 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.
2131
+ * 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.
1948
2132
  * ## Common scenarios
1949
- * - 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.
1950
- * - 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.
1951
- * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
1952
- * - 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.
1953
- * Marco MT can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
2133
+ * - 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.
2134
+ * - 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.
2135
+ * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
2136
+ * - 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.
2137
+ * Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
1954
2138
  * ## Features
1955
- * - **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.
1956
- * - **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.
2139
+ * - **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.
2140
+ * - **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.
1957
2141
  * - **Supported text format types** Currently supports text and html text types.
1958
- * - **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.
2142
+ * - **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.
1959
2143
  * ## Translation quality comparison
1960
2144
  * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
1961
2145
  * |----------|---------------|-----------------------|-----------------------|---------------------|
1962
2146
  * | 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 |
1963
2147
  * | 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 |
1964
- * | 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 |.
2148
+ * | 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 |
1965
2149
  *
1966
2150
  * @param tmpReq - TextTranslateRequest
1967
2151
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1975,6 +2159,9 @@ class Client extends openapi_core_1.default {
1975
2159
  request.sourceTextListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sourceTextList, "SourceTextList", "json");
1976
2160
  }
1977
2161
  let body = {};
2162
+ if (!$dara.isNull(request.bizName)) {
2163
+ body["BizName"] = request.bizName;
2164
+ }
1978
2165
  if (!$dara.isNull(request.formatType)) {
1979
2166
  body["FormatType"] = request.formatType;
1980
2167
  }
@@ -1990,6 +2177,9 @@ class Client extends openapi_core_1.default {
1990
2177
  if (!$dara.isNull(request.targetLanguage)) {
1991
2178
  body["TargetLanguage"] = request.targetLanguage;
1992
2179
  }
2180
+ if (!$dara.isNull(request.translateScene)) {
2181
+ body["TranslateScene"] = request.translateScene;
2182
+ }
1993
2183
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1994
2184
  body: openapi_core_2.OpenApiUtil.parseToMap(body),
1995
2185
  });
@@ -2007,28 +2197,28 @@ class Client extends openapi_core_1.default {
2007
2197
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateResponse({}));
2008
2198
  }
2009
2199
  /**
2010
- * 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.
2200
+ * 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.
2011
2201
  *
2012
2202
  * @remarks
2013
2203
  * ## Product Introduction
2014
- * 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.
2204
+ * 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.
2015
2205
  * ## Common scenarios
2016
- * - 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.
2017
- * - 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.
2018
- * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
2019
- * - 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.
2020
- * Marco MT can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
2206
+ * - 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.
2207
+ * - 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.
2208
+ * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
2209
+ * - 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.
2210
+ * Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
2021
2211
  * ## Features
2022
- * - **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.
2023
- * - **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.
2212
+ * - **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.
2213
+ * - **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.
2024
2214
  * - **Supported text format types** Currently supports text and html text types.
2025
- * - **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.
2215
+ * - **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.
2026
2216
  * ## Translation quality comparison
2027
2217
  * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
2028
2218
  * |----------|---------------|-----------------------|-----------------------|---------------------|
2029
2219
  * | 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 |
2030
2220
  * | 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 |
2031
- * | 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 |.
2221
+ * | 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 |
2032
2222
  *
2033
2223
  * @param request - TextTranslateRequest
2034
2224
  * @returns TextTranslateResponse