@alicloud/aidge20260428 5.4.0 → 5.5.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 (39) hide show
  1. package/dist/client.d.ts +151 -74
  2. package/dist/client.js +184 -74
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DocumentTranslateRequest.d.ts +2 -2
  5. package/dist/models/DocumentTranslateResponseBody.d.ts +2 -2
  6. package/dist/models/ImageTranslationProRequest.d.ts +9 -9
  7. package/dist/models/ImageTranslationProResponseBody.d.ts +5 -5
  8. package/dist/models/ImageTranslationStandardRequest.d.ts +4 -4
  9. package/dist/models/ImageTranslationStandardResponseBody.d.ts +3 -3
  10. package/dist/models/TextTranslateRequest.d.ts +6 -6
  11. package/dist/models/TextTranslateResponseBody.d.ts +5 -5
  12. package/dist/models/TextTranslateShrinkRequest.d.ts +6 -6
  13. package/dist/models/VirtualTryOnRequest.d.ts +51 -0
  14. package/dist/models/VirtualTryOnRequest.js +64 -0
  15. package/dist/models/VirtualTryOnRequest.js.map +1 -0
  16. package/dist/models/VirtualTryOnResponse.d.ts +19 -0
  17. package/dist/models/VirtualTryOnResponse.js +69 -0
  18. package/dist/models/VirtualTryOnResponse.js.map +1 -0
  19. package/dist/models/VirtualTryOnResponseBody.d.ts +77 -0
  20. package/dist/models/VirtualTryOnResponseBody.js +93 -0
  21. package/dist/models/VirtualTryOnResponseBody.js.map +1 -0
  22. package/dist/models/model.d.ts +4 -0
  23. package/dist/models/model.js +11 -3
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +190 -74
  27. package/src/models/DocumentTranslateRequest.ts +2 -2
  28. package/src/models/DocumentTranslateResponseBody.ts +2 -2
  29. package/src/models/ImageTranslationProRequest.ts +9 -9
  30. package/src/models/ImageTranslationProResponseBody.ts +5 -5
  31. package/src/models/ImageTranslationStandardRequest.ts +4 -4
  32. package/src/models/ImageTranslationStandardResponseBody.ts +3 -3
  33. package/src/models/TextTranslateRequest.ts +6 -6
  34. package/src/models/TextTranslateResponseBody.ts +5 -5
  35. package/src/models/TextTranslateShrinkRequest.ts +6 -6
  36. package/src/models/VirtualTryOnRequest.ts +70 -0
  37. package/src/models/VirtualTryOnResponse.ts +40 -0
  38. package/src/models/VirtualTryOnResponseBody.ts +114 -0
  39. package/src/models/model.ts +4 -0
package/src/client.ts CHANGED
@@ -592,25 +592,25 @@ export default class Client extends OpenApi {
592
592
  }
593
593
 
594
594
  /**
595
- * Designed specifically for document translation, this API supports translation between more than 100 language pairs (including bridged pairs), meeting the needs of multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
596
- * It excels in the following areas:
597
- * - Content accuracy: translation accuracy, and accuracy of parameters and units.
598
- * - Structural integrity: overall layout continuity, and page margin and layout restoration.
595
+ * Designed specifically for document translation. Supports translation between more than 100 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
596
+ * Excels in the following areas:
597
+ * - Content accuracy: translation accuracy, parameter and unit accuracy.
598
+ * - Structural integrity: overall layout continuity, page margin and layout restoration.
599
599
  *
600
600
  * @remarks
601
601
  * ## Product Introduction
602
- * 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.
602
+ * Designed specifically for document translation. Supports translation between more than 100 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
603
603
  * Excels in the following areas:
604
604
  * - Content accuracy: translation accuracy, parameter and unit accuracy
605
- * - Structural integrity: overall layout continuity, page margin and layout preservation
606
- * ## Scenarios
607
- * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and other scenarios.
608
- * ## Features
609
- * - Supports PDF and Word formats. Supports source documents containing multiple languages. For a detailed language list, see section 4.5.
605
+ * - Structural integrity: overall layout continuity, page margin and layout restoration
606
+ * ## Common scenarios
607
+ * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and many other scenarios.
608
+ * ## Functions and features
609
+ * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see section 4.5.
610
610
  * - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
611
- * - Supports high-fidelity layout preservation after translation.
611
+ * - Supports high-fidelity layout restoration after translation.
612
612
  * - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
613
- * - 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. 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 if you need more.
613
+ * - 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 scenarios such as brand name protection. 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. If you need more, contact the platform for assistance.
614
614
  *
615
615
  * @param request - DocumentTranslateRequest
616
616
  * @param runtime - runtime options for this request RuntimeOptions
@@ -653,25 +653,25 @@ export default class Client extends OpenApi {
653
653
  }
654
654
 
655
655
  /**
656
- * Designed specifically for document translation, this API supports translation between more than 100 language pairs (including bridged pairs), meeting the needs of multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
657
- * It excels in the following areas:
658
- * - Content accuracy: translation accuracy, and accuracy of parameters and units.
659
- * - Structural integrity: overall layout continuity, and page margin and layout restoration.
656
+ * Designed specifically for document translation. Supports translation between more than 100 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
657
+ * Excels in the following areas:
658
+ * - Content accuracy: translation accuracy, parameter and unit accuracy.
659
+ * - Structural integrity: overall layout continuity, page margin and layout restoration.
660
660
  *
661
661
  * @remarks
662
662
  * ## Product Introduction
663
- * 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.
663
+ * Designed specifically for document translation. Supports translation between more than 100 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
664
664
  * Excels in the following areas:
665
665
  * - Content accuracy: translation accuracy, parameter and unit accuracy
666
- * - Structural integrity: overall layout continuity, page margin and layout preservation
667
- * ## Scenarios
668
- * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and other scenarios.
669
- * ## Features
670
- * - Supports PDF and Word formats. Supports source documents containing multiple languages. For a detailed language list, see section 4.5.
666
+ * - Structural integrity: overall layout continuity, page margin and layout restoration
667
+ * ## Common scenarios
668
+ * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and many other scenarios.
669
+ * ## Functions and features
670
+ * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see section 4.5.
671
671
  * - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
672
- * - Supports high-fidelity layout preservation after translation.
672
+ * - Supports high-fidelity layout restoration after translation.
673
673
  * - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
674
- * - 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. 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 if you need more.
674
+ * - 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 scenarios such as brand name protection. 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. If you need more, contact the platform for assistance.
675
675
  *
676
676
  * @param request - DocumentTranslateRequest
677
677
  * @returns DocumentTranslateResponse
@@ -1662,18 +1662,18 @@ export default class Client extends OpenApi {
1662
1662
  }
1663
1663
 
1664
1664
  /**
1665
- * Translates images using the Pro edition, which is designed for e-commerce images and 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 directions).
1665
+ * Image Translation Pro is designed 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. It supports more than 100 language directions, including bridged translations.
1666
1666
  *
1667
1667
  * @remarks
1668
1668
  * ## Product Introduction
1669
- * 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. It supports more than 100 language directions (including bridged directions).
1669
+ * Image Translation Pro is designed 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. It supports more than 100 language directions, including bridged translations.
1670
1670
  * ## Scenarios
1671
1671
  * E-commerce product images, marketing images, and images for various other scenarios.
1672
1672
  * ## Features
1673
- * - **Product subject protection**: Allows you to choose whether to translate text on the product subject, helping you protect subject information such as embedded product names from being translated.
1674
- * - **Post-translation editing**: Allows you to choose 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.
1675
- * - **Brand name protection**: Allows you to choose whether to translate brand names on images, helping you protect brand name information from being translated.
1676
- * - **Translation intervention**: Allows you to customize 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 and similar scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1673
+ * - **Product subject protection**: Specify whether to translate text on the product subject. This helps protect subject information such as embedded product names from being translated.
1674
+ * - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This information can be used for secondary editing when integrated with an image editor. The editor SDK is not yet available. Follow platform notifications for updates.
1675
+ * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1676
+ * - **Translation intervention**: Customize translation results, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and remove text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need a higher limit.
1677
1677
  * - **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1678
1678
  *
1679
1679
  * @param request - ImageTranslationProRequest
@@ -1733,18 +1733,18 @@ export default class Client extends OpenApi {
1733
1733
  }
1734
1734
 
1735
1735
  /**
1736
- * Translates images using the Pro edition, which is designed for e-commerce images and 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 directions).
1736
+ * Image Translation Pro is designed 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. It supports more than 100 language directions, including bridged translations.
1737
1737
  *
1738
1738
  * @remarks
1739
1739
  * ## Product Introduction
1740
- * 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. It supports more than 100 language directions (including bridged directions).
1740
+ * Image Translation Pro is designed 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. It supports more than 100 language directions, including bridged translations.
1741
1741
  * ## Scenarios
1742
1742
  * E-commerce product images, marketing images, and images for various other scenarios.
1743
1743
  * ## Features
1744
- * - **Product subject protection**: Allows you to choose whether to translate text on the product subject, helping you protect subject information such as embedded product names from being translated.
1745
- * - **Post-translation editing**: Allows you to choose 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.
1746
- * - **Brand name protection**: Allows you to choose whether to translate brand names on images, helping you protect brand name information from being translated.
1747
- * - **Translation intervention**: Allows you to customize 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 and similar scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1744
+ * - **Product subject protection**: Specify whether to translate text on the product subject. This helps protect subject information such as embedded product names from being translated.
1745
+ * - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This information can be used for secondary editing when integrated with an image editor. The editor SDK is not yet available. Follow platform notifications for updates.
1746
+ * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1747
+ * - **Translation intervention**: Customize translation results, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and remove text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need a higher limit.
1748
1748
  * - **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1749
1749
  *
1750
1750
  * @param request - ImageTranslationProRequest
@@ -1756,22 +1756,22 @@ export default class Client extends OpenApi {
1756
1756
  }
1757
1757
 
1758
1758
  /**
1759
- * Translates text in images with support for over 100 language directions (including bridging). This product is designed specifically for e-commerce images, accurately handling complex text layouts within images and ensuring that translated content matches the image context. It helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
1759
+ * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, making it easy to integrate with image editors for secondary editing of translation results.
1760
1760
  *
1761
1761
  * @remarks
1762
1762
  * # 1. Product Introduction
1763
- * The image translation product is designed specifically for e-commerce images, supporting over 100 language directions (including bridging). It accurately handles complex text layouts within images and ensures that translated content matches the image context, helping e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
1764
- * # 2. Common scenarios
1763
+ * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, making it easy to integrate with image editors for secondary editing of translation results.
1764
+ * # 2. Applicable scenarios
1765
1765
  * E-commerce product images, marketing images, and images for various other scenarios.
1766
1766
  * # 3. Features
1767
- * * **Product area protection**: Allows you to choose whether to translate text on the product area. This helps protect product information from being translated, avoiding translation of embedded information such as product names.
1767
+ * * **Product subject information protection**: You can choose whether to translate text on the product subject. This helps protect subject information from being translated, avoiding translation of embedded information such as product names.
1768
1768
  *
1769
- * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
1769
+ * * **Brand name protection**: You can choose whether to translate brand names on images. This helps protect brand name information from being translated.
1770
1770
  *
1771
- * * **Secondary editing after translation (layer information)**: Allows you to choose whether to return layer information such as text position, font, and color. This can be used to integrate with an image editor for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
1771
+ * * **Secondary editing after translation (layer information)**: You can choose whether to return layer information such as text position, font, and color. This information can be used to integrate with image editors for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
1772
1772
  *
1773
- * * **Translation intervention**: Allows you to customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand 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. If you need more, contact the platform for assistance.
1774
- * * **Image editor integration**: For more information, see [Image translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1773
+ * * **Translation intervention support**: You can customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for scenarios such as brand term protection. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1774
+ * * **Image editor integration support**: For more information, see [Image Translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1775
1775
  *
1776
1776
  * @param request - ImageTranslationStandardRequest
1777
1777
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1826,22 +1826,22 @@ export default class Client extends OpenApi {
1826
1826
  }
1827
1827
 
1828
1828
  /**
1829
- * Translates text in images with support for over 100 language directions (including bridging). This product is designed specifically for e-commerce images, accurately handling complex text layouts within images and ensuring that translated content matches the image context. It helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
1829
+ * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, making it easy to integrate with image editors for secondary editing of translation results.
1830
1830
  *
1831
1831
  * @remarks
1832
1832
  * # 1. Product Introduction
1833
- * The image translation product is designed specifically for e-commerce images, supporting over 100 language directions (including bridging). It accurately handles complex text layouts within images and ensures that translated content matches the image context, helping e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
1834
- * # 2. Common scenarios
1833
+ * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, making it easy to integrate with image editors for secondary editing of translation results.
1834
+ * # 2. Applicable scenarios
1835
1835
  * E-commerce product images, marketing images, and images for various other scenarios.
1836
1836
  * # 3. Features
1837
- * * **Product area protection**: Allows you to choose whether to translate text on the product area. This helps protect product information from being translated, avoiding translation of embedded information such as product names.
1837
+ * * **Product subject information protection**: You can choose whether to translate text on the product subject. This helps protect subject information from being translated, avoiding translation of embedded information such as product names.
1838
1838
  *
1839
- * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
1839
+ * * **Brand name protection**: You can choose whether to translate brand names on images. This helps protect brand name information from being translated.
1840
1840
  *
1841
- * * **Secondary editing after translation (layer information)**: Allows you to choose whether to return layer information such as text position, font, and color. This can be used to integrate with an image editor for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
1841
+ * * **Secondary editing after translation (layer information)**: You can choose whether to return layer information such as text position, font, and color. This information can be used to integrate with image editors for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
1842
1842
  *
1843
- * * **Translation intervention**: Allows you to customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand 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. If you need more, contact the platform for assistance.
1844
- * * **Image editor integration**: For more information, see [Image translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1843
+ * * **Translation intervention support**: You can customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for scenarios such as brand term protection. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1844
+ * * **Image editor integration support**: For more information, see [Image Translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1845
1845
  *
1846
1846
  * @param request - ImageTranslationStandardRequest
1847
1847
  * @returns ImageTranslationStandardResponse
@@ -2870,32 +2870,32 @@ export default class Client extends OpenApi {
2870
2870
  }
2871
2871
 
2872
2872
  /**
2873
- * 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 languages. If you do not specify a source language, automatic detection is performed.
2873
+ * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 100 language pairs (including bridged pairs), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 languages. If you do not specify a source language, automatic detection is performed.
2874
2874
  *
2875
2875
  * @remarks
2876
2876
  * ## Product Introduction
2877
- * 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 languages. If you do not specify a source language, automatic detection is performed.
2877
+ * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 100 language pairs (including bridged pairs), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 languages. If you do not specify a source language, automatic detection is performed.
2878
2878
  * ## Common scenarios
2879
2879
  * - 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.
2880
2880
  * - 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.
2881
- * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
2881
+ * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and parameters.
2882
2882
  * - 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 pairs.
2883
- * Marco MT can also be used for general translation scenarios such as office work, meetings, and daily conversations.
2884
- * ## Features
2883
+ * Marco MT can also be used for general translation scenarios, such as office work, meetings, and daily conversations.
2884
+ * ## Functions and features
2885
2885
  * - **Supported language pairs**
2886
- * Marco MT supports translation between more than 100 languages and language detection for 24 languages. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
2886
+ * Marco MT supports mutual translation among more than 100 languages and language detection for 24 languages. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
2887
2887
  * - **Ultra-low hallucination rate and high-speed inference**
2888
- * Marco MT is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference speed and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
2888
+ * Marco MT is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
2889
2889
  * - **Supported text format types**
2890
- * Currently supports text and html format types.
2891
- * - **Translation intervention**
2892
- * 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 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.
2890
+ * Currently, text and html text types are supported.
2891
+ * - **Translation intervention support**
2892
+ * Custom translation results are supported, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and skip translation (ABC→empty value). This is commonly used for scenarios such as 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.
2893
2893
  * ## Translation quality comparison
2894
2894
  * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
2895
2895
  * |----------|---------------|-----------------------|-----------------------|---------------------|
2896
2896
  * | 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 |
2897
2897
  * | 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 |
2898
- * | 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 product subject description — correctly identifies "key bag" rather than "keychain," avoiding ambiguity about the product |
2898
+ * | 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. The translation correctly identifies "key bag" rather than "keychain", avoiding ambiguity about the product type in other translations |
2899
2899
  *
2900
2900
  * @param tmpReq - TextTranslateRequest
2901
2901
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2956,32 +2956,32 @@ export default class Client extends OpenApi {
2956
2956
  }
2957
2957
 
2958
2958
  /**
2959
- * 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 languages. If you do not specify a source language, automatic detection is performed.
2959
+ * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 100 language pairs (including bridged pairs), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 languages. If you do not specify a source language, automatic detection is performed.
2960
2960
  *
2961
2961
  * @remarks
2962
2962
  * ## Product Introduction
2963
- * 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 languages. If you do not specify a source language, automatic detection is performed.
2963
+ * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 100 language pairs (including bridged pairs), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 languages. If you do not specify a source language, automatic detection is performed.
2964
2964
  * ## Common scenarios
2965
2965
  * - 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.
2966
2966
  * - 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.
2967
- * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
2967
+ * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and parameters.
2968
2968
  * - 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 pairs.
2969
- * Marco MT can also be used for general translation scenarios such as office work, meetings, and daily conversations.
2970
- * ## Features
2969
+ * Marco MT can also be used for general translation scenarios, such as office work, meetings, and daily conversations.
2970
+ * ## Functions and features
2971
2971
  * - **Supported language pairs**
2972
- * Marco MT supports translation between more than 100 languages and language detection for 24 languages. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
2972
+ * Marco MT supports mutual translation among more than 100 languages and language detection for 24 languages. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
2973
2973
  * - **Ultra-low hallucination rate and high-speed inference**
2974
- * Marco MT is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference speed and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
2974
+ * Marco MT is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
2975
2975
  * - **Supported text format types**
2976
- * Currently supports text and html format types.
2977
- * - **Translation intervention**
2978
- * 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 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.
2976
+ * Currently, text and html text types are supported.
2977
+ * - **Translation intervention support**
2978
+ * Custom translation results are supported, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and skip translation (ABC→empty value). This is commonly used for scenarios such as 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.
2979
2979
  * ## Translation quality comparison
2980
2980
  * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
2981
2981
  * |----------|---------------|-----------------------|-----------------------|---------------------|
2982
2982
  * | 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 |
2983
2983
  * | 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 |
2984
- * | 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 product subject description — correctly identifies "key bag" rather than "keychain," avoiding ambiguity about the product |
2984
+ * | 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. The translation correctly identifies "key bag" rather than "keychain", avoiding ambiguity about the product type in other translations |
2985
2985
  *
2986
2986
  * @param request - TextTranslateRequest
2987
2987
  * @returns TextTranslateResponse
@@ -3193,6 +3193,122 @@ export default class Client extends OpenApi {
3193
3193
  return await this.videoTranslationWithOptions(request, runtime);
3194
3194
  }
3195
3195
 
3196
+ /**
3197
+ * Generates virtual try-on images based on AI algorithms. This API service replaces the clothing on a model with the specified garment based on the input garment image and model image, while preserving the model\\"s appearance details, pose, facial features, and scene details to achieve a realistic and well-fitted try-on result. You only need to provide the URL of the original product image to obtain a processed clean image.
3198
+ *
3199
+ * @remarks
3200
+ * ## Scenarios
3201
+ * - **Virtual try-on for clothing products:**
3202
+ * Supports multiple clothing categories such as tops, bottoms, jumpsuits, and skirts. After uploading a model image and a product image, the system generates a natural and realistic try-on effect that intuitively showcases how the clothing looks when worn.
3203
+ * - **Virtual try-on for shoes and hats:**
3204
+ * Supports virtual try-on for shoes, hats, and similar products. The system intelligently matches the product position and proportion based on the model\\"s pose and body parts, producing a coordinated and realistic wearing effect.
3205
+ * - **E-commerce product display and marketing:**
3206
+ * Helps merchants quickly generate model try-on images for different products, reducing the costs of traditional photography, outfit changes, and post-production, and improving the production efficiency of product images.
3207
+ * - **Online shopping experience optimization:**
3208
+ * Consumers can preview how products look when worn through virtual try-on, gaining a more intuitive understanding of the style, coordination, and overall effect of products, which assists purchase decisions and enhances the shopping experience.
3209
+ * ## Features
3210
+ * - **First, the user needs to provide a model image and a product image. The system uses the model image as the try-on subject and applies the garment from the product image onto the model:**
3211
+ * - a. Model image: the image of the person for the virtual try-on.
3212
+ * - b. Product image: the image of the clothing, shoes, or hat to be applied onto the model.
3213
+ * - **Second, the user can select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, skirts, shoes, and hats:**
3214
+ * - a. Specified product type: the user can directly specify the product type, and the system processes accordingly.
3215
+ * - b. Automatic type recognition: if the user does not specify a product type, the system automatically identifies the product category from the product image and performs the virtual try-on based on the recognition result.
3216
+ * - **Finally, the system combines the model image, product image, and product type to generate a virtual try-on image that shows how the product looks on the model:**
3217
+ * - a. Preserves model details: the generation process does not alter the model\\"s appearance, hairstyle, pose, body shape, or other details from the original model image.
3218
+ * - b. Maintains scene consistency: the background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
3219
+ * - c. Generates try-on effect: the product is naturally applied onto the model, fitting the model\\"s pose and body structure to produce a coordinated and realistic virtual try-on image.
3220
+ * ## Sample results
3221
+ * | **Type** | **Model image** | **Garment image** | **Try-on result** |
3222
+ * | --- | --- | --- | --- |
3223
+ * | Tops | ![lQLPJv-OKUNDSxvNBojNA62wAMWEBuiTUuMKXnNidWFWAA_941_1672.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/e4273b03-0d3b-4e98-b8f3-8713fccee303.png) | ![男模特衬衫正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/d9ab77f7-8791-4fa5-8d76-4fda3e2e1310.png) | ![7c1c0c04-9828-940f-b86d-c08f7ec8fb97_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/42982786-73ee-4d23-a8d0-551f7a18be22.png) |
3224
+ * | Bottoms | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![微喇牛仔裤-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/f79a31cb-08bd-4b59-be9d-9b9aa3f60230.png) | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/297f29eb-7bc9-49a5-b4f7-114375a0f312.png) |
3225
+ * | Shoes | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![男模特鞋子正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/bb9804b5-0ab9-485b-829b-d54708377fd2.png) | ![91d7b8c4-fc31-9a7f-8b6e-3bec5e62efb3_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/8e54fdc3-7a86-4e3b-aa1d-f3741ce7658c.png) |
3226
+ * | Jumpsuits | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/eddffa7c-a494-4f5b-9d66-da758fb0265f.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/7f5cec40-a884-4640-8339-6109305dfa1d.png) | ![20c8b46a-213e-985c-aab2-d56f8752f3a4_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/635096eb-f2b2-4fd8-91d8-4c7e2e7d7ad1.png) |
3227
+ * | Skirts | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/eddffa7c-a494-4f5b-9d66-da758fb0265f.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/3d4a6de0-95d2-40cf-9105-48b5e899e0d3.png) | ![45b630e6-4e9d-9bf0-bb4e-224b30a91f77_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/a3cbb609-db71-47d6-8ac6-884f18c6596f.png) |
3228
+ * | Hats | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/ac26f38e-acc7-49d1-a4ec-a51b54e4bd66.png) | ![帽子-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/34176b57-3aa8-4b6e-8d0f-808ae953654a.png) | ![881f02f3-12f5-95dd-b651-98fab6e30fa0_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/949b4c28-8821-4aa5-a2b4-e4acc1e57b9b.png) |
3229
+ *
3230
+ * @param request - VirtualTryOnRequest
3231
+ * @param runtime - runtime options for this request RuntimeOptions
3232
+ * @returns VirtualTryOnResponse
3233
+ */
3234
+ async virtualTryOnWithOptions(request: $_model.VirtualTryOnRequest, runtime: $dara.RuntimeOptions): Promise<$_model.VirtualTryOnResponse> {
3235
+ request.validate();
3236
+ let query = { };
3237
+ if (!$dara.isNull(request.clothImageUrl)) {
3238
+ query["ClothImageUrl"] = request.clothImageUrl;
3239
+ }
3240
+
3241
+ if (!$dara.isNull(request.clothType)) {
3242
+ query["ClothType"] = request.clothType;
3243
+ }
3244
+
3245
+ if (!$dara.isNull(request.modelImageUrl)) {
3246
+ query["ModelImageUrl"] = request.modelImageUrl;
3247
+ }
3248
+
3249
+ if (!$dara.isNull(request.resolution)) {
3250
+ query["Resolution"] = request.resolution;
3251
+ }
3252
+
3253
+ let req = new $OpenApiUtil.OpenApiRequest({
3254
+ query: OpenApiUtil.query(query),
3255
+ });
3256
+ let params = new $OpenApiUtil.Params({
3257
+ action: "VirtualTryOn",
3258
+ version: "2026-04-28",
3259
+ protocol: "HTTPS",
3260
+ pathname: "/",
3261
+ method: "POST",
3262
+ authType: "AK",
3263
+ style: "RPC",
3264
+ reqBodyType: "formData",
3265
+ bodyType: "json",
3266
+ });
3267
+ return $dara.cast<$_model.VirtualTryOnResponse>(await this.callApi(params, req, runtime), new $_model.VirtualTryOnResponse({}));
3268
+ }
3269
+
3270
+ /**
3271
+ * Generates virtual try-on images based on AI algorithms. This API service replaces the clothing on a model with the specified garment based on the input garment image and model image, while preserving the model\\"s appearance details, pose, facial features, and scene details to achieve a realistic and well-fitted try-on result. You only need to provide the URL of the original product image to obtain a processed clean image.
3272
+ *
3273
+ * @remarks
3274
+ * ## Scenarios
3275
+ * - **Virtual try-on for clothing products:**
3276
+ * Supports multiple clothing categories such as tops, bottoms, jumpsuits, and skirts. After uploading a model image and a product image, the system generates a natural and realistic try-on effect that intuitively showcases how the clothing looks when worn.
3277
+ * - **Virtual try-on for shoes and hats:**
3278
+ * Supports virtual try-on for shoes, hats, and similar products. The system intelligently matches the product position and proportion based on the model\\"s pose and body parts, producing a coordinated and realistic wearing effect.
3279
+ * - **E-commerce product display and marketing:**
3280
+ * Helps merchants quickly generate model try-on images for different products, reducing the costs of traditional photography, outfit changes, and post-production, and improving the production efficiency of product images.
3281
+ * - **Online shopping experience optimization:**
3282
+ * Consumers can preview how products look when worn through virtual try-on, gaining a more intuitive understanding of the style, coordination, and overall effect of products, which assists purchase decisions and enhances the shopping experience.
3283
+ * ## Features
3284
+ * - **First, the user needs to provide a model image and a product image. The system uses the model image as the try-on subject and applies the garment from the product image onto the model:**
3285
+ * - a. Model image: the image of the person for the virtual try-on.
3286
+ * - b. Product image: the image of the clothing, shoes, or hat to be applied onto the model.
3287
+ * - **Second, the user can select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, skirts, shoes, and hats:**
3288
+ * - a. Specified product type: the user can directly specify the product type, and the system processes accordingly.
3289
+ * - b. Automatic type recognition: if the user does not specify a product type, the system automatically identifies the product category from the product image and performs the virtual try-on based on the recognition result.
3290
+ * - **Finally, the system combines the model image, product image, and product type to generate a virtual try-on image that shows how the product looks on the model:**
3291
+ * - a. Preserves model details: the generation process does not alter the model\\"s appearance, hairstyle, pose, body shape, or other details from the original model image.
3292
+ * - b. Maintains scene consistency: the background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
3293
+ * - c. Generates try-on effect: the product is naturally applied onto the model, fitting the model\\"s pose and body structure to produce a coordinated and realistic virtual try-on image.
3294
+ * ## Sample results
3295
+ * | **Type** | **Model image** | **Garment image** | **Try-on result** |
3296
+ * | --- | --- | --- | --- |
3297
+ * | Tops | ![lQLPJv-OKUNDSxvNBojNA62wAMWEBuiTUuMKXnNidWFWAA_941_1672.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/e4273b03-0d3b-4e98-b8f3-8713fccee303.png) | ![男模特衬衫正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/d9ab77f7-8791-4fa5-8d76-4fda3e2e1310.png) | ![7c1c0c04-9828-940f-b86d-c08f7ec8fb97_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/42982786-73ee-4d23-a8d0-551f7a18be22.png) |
3298
+ * | Bottoms | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![微喇牛仔裤-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/f79a31cb-08bd-4b59-be9d-9b9aa3f60230.png) | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/297f29eb-7bc9-49a5-b4f7-114375a0f312.png) |
3299
+ * | Shoes | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![男模特鞋子正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/bb9804b5-0ab9-485b-829b-d54708377fd2.png) | ![91d7b8c4-fc31-9a7f-8b6e-3bec5e62efb3_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/8e54fdc3-7a86-4e3b-aa1d-f3741ce7658c.png) |
3300
+ * | Jumpsuits | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/eddffa7c-a494-4f5b-9d66-da758fb0265f.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/7f5cec40-a884-4640-8339-6109305dfa1d.png) | ![20c8b46a-213e-985c-aab2-d56f8752f3a4_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/635096eb-f2b2-4fd8-91d8-4c7e2e7d7ad1.png) |
3301
+ * | Skirts | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/eddffa7c-a494-4f5b-9d66-da758fb0265f.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/3d4a6de0-95d2-40cf-9105-48b5e899e0d3.png) | ![45b630e6-4e9d-9bf0-bb4e-224b30a91f77_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/a3cbb609-db71-47d6-8ac6-884f18c6596f.png) |
3302
+ * | Hats | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/ac26f38e-acc7-49d1-a4ec-a51b54e4bd66.png) | ![帽子-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/34176b57-3aa8-4b6e-8d0f-808ae953654a.png) | ![881f02f3-12f5-95dd-b651-98fab6e30fa0_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/949b4c28-8821-4aa5-a2b4-e4acc1e57b9b.png) |
3303
+ *
3304
+ * @param request - VirtualTryOnRequest
3305
+ * @returns VirtualTryOnResponse
3306
+ */
3307
+ async virtualTryOn(request: $_model.VirtualTryOnRequest): Promise<$_model.VirtualTryOnResponse> {
3308
+ let runtime = new $dara.RuntimeOptions({ });
3309
+ return await this.virtualTryOnWithOptions(request, runtime);
3310
+ }
3311
+
3196
3312
  /**
3197
3313
  * Provides a one-stop AI-powered image processing service for e-commerce sellers. Orchestrates seven atomic capabilities — element detection, intelligent matting, intelligent removal, Image Translation Pro, image expansion, intelligent cropping, and HD upscaling — into an image processing workflow. Users upload an image once, select the desired capabilities, and complete multiple image optimizations sequentially in a single call to produce product images that meet listing platform requirements. (Asynchronous)
3198
3314
  *
@@ -19,7 +19,7 @@ export class DocumentTranslateRequest extends $dara.Model {
19
19
  fileType?: string;
20
20
  /**
21
21
  * @remarks
22
- * The glossary ID. Specify this parameter when you need the glossary feature. 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.
22
+ * The glossary ID. Specify this parameter when you need the glossary feature. 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 scenarios such as brand name protection.
23
23
  *
24
24
  * @example
25
25
  * glossary_1
@@ -37,7 +37,7 @@ export class DocumentTranslateRequest extends $dara.Model {
37
37
  targetLanguage?: string;
38
38
  /**
39
39
  * @remarks
40
- * The OSS URL path of the document to be translated.
40
+ * The OSS URL of the document to be translated.
41
41
  *
42
42
  * This parameter is required.
43
43
  *
@@ -57,7 +57,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
57
57
  message?: string;
58
58
  /**
59
59
  * @remarks
60
- * The unique request identity, used for troubleshooting and tracing.
60
+ * The unique identity of this request, used for troubleshooting and Tracing Analysis.
61
61
  *
62
62
  * @example
63
63
  * 39E8A74B-F99E-1195-A5FF-3ECC5F94F304
@@ -65,7 +65,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
65
65
  requestId?: string;
66
66
  /**
67
67
  * @remarks
68
- * Indicates whether the call was successful. Valid values: true: The call was successful. false: The call failed.
68
+ * Indicates whether the call is successful. Valid values: true: The call is successful. false: The call failed.
69
69
  *
70
70
  * @example
71
71
  * True
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageTranslationProRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the API immediately returns a TaskId, and you must use the query translation result API to obtain the final result.
8
+ * Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the API immediately returns a TaskId. Use the query translation result API to retrieve the final result.
9
9
  *
10
10
  * @example
11
11
  * true
@@ -13,7 +13,7 @@ export class ImageTranslationProRequest extends $dara.Model {
13
13
  async?: boolean;
14
14
  /**
15
15
  * @remarks
16
- * The intervention glossary ID. Optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
16
+ * The ID of the intervention glossary. This parameter is optional. Create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
17
17
  *
18
18
  * @example
19
19
  * glossary_1
@@ -21,13 +21,13 @@ export class ImageTranslationProRequest extends $dara.Model {
21
21
  glossary?: string;
22
22
  /**
23
23
  * @remarks
24
- * The URL of the original image. Required.
24
+ * The URL of the original image. This parameter is required.
25
25
  *
26
26
  * Image requirements:
27
27
  * - Image URL: Must be publicly accessible.
28
28
  * - Format: png, jpeg, jpg, bmp, or webp.
29
- * - Pixels: Width and height must not exceed 4000 each.
30
- * - File size: Original file ≤ 10 MB.
29
+ * - Pixels: The width and height must not exceed 4000 pixels each.
30
+ * - File size: The original file must be 10 MB or smaller.
31
31
  *
32
32
  * This parameter is required.
33
33
  *
@@ -37,7 +37,7 @@ export class ImageTranslationProRequest extends $dara.Model {
37
37
  imageUrl?: string;
38
38
  /**
39
39
  * @remarks
40
- * Specifies whether to translate text on the image subject. Optional. Default value: false. This helps you protect information and avoid translating embedded information such as product names.
40
+ * Specifies whether to translate text on the image subject. This parameter is optional. Default value: false. Setting this parameter to false helps protect information such as embedded product names from being translated.
41
41
  *
42
42
  * @example
43
43
  * false
@@ -45,7 +45,7 @@ export class ImageTranslationProRequest extends $dara.Model {
45
45
  includingProductArea?: boolean;
46
46
  /**
47
47
  * @remarks
48
- * The source language code. Required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
48
+ * The source language code. This parameter is required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
49
49
  *
50
50
  * This parameter is required.
51
51
  *
@@ -55,7 +55,7 @@ export class ImageTranslationProRequest extends $dara.Model {
55
55
  sourceLanguage?: string;
56
56
  /**
57
57
  * @remarks
58
- * The target language code. Required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
58
+ * The target language code. This parameter is required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
59
59
  *
60
60
  * This parameter is required.
61
61
  *
@@ -65,7 +65,7 @@ export class ImageTranslationProRequest extends $dara.Model {
65
65
  targetLanguage?: string;
66
66
  /**
67
67
  * @remarks
68
- * Specifies whether to translate brand names on images. Optional. Default value: false. This helps you protect brand name information from being translated.
68
+ * Specifies whether to translate brand names on the image. This parameter is optional. Default value: false. Setting this parameter to false helps protect brand name information from being translated.
69
69
  *
70
70
  * @example
71
71
  * false