@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.
- package/dist/client.d.ts +151 -74
- package/dist/client.js +184 -74
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +2 -2
- package/dist/models/DocumentTranslateResponseBody.d.ts +2 -2
- package/dist/models/ImageTranslationProRequest.d.ts +9 -9
- package/dist/models/ImageTranslationProResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationStandardRequest.d.ts +4 -4
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +3 -3
- package/dist/models/TextTranslateRequest.d.ts +6 -6
- package/dist/models/TextTranslateResponseBody.d.ts +5 -5
- package/dist/models/TextTranslateShrinkRequest.d.ts +6 -6
- package/dist/models/VirtualTryOnRequest.d.ts +51 -0
- package/dist/models/VirtualTryOnRequest.js +64 -0
- package/dist/models/VirtualTryOnRequest.js.map +1 -0
- package/dist/models/VirtualTryOnResponse.d.ts +19 -0
- package/dist/models/VirtualTryOnResponse.js +69 -0
- package/dist/models/VirtualTryOnResponse.js.map +1 -0
- package/dist/models/VirtualTryOnResponseBody.d.ts +77 -0
- package/dist/models/VirtualTryOnResponseBody.js +93 -0
- package/dist/models/VirtualTryOnResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +11 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +190 -74
- package/src/models/DocumentTranslateRequest.ts +2 -2
- package/src/models/DocumentTranslateResponseBody.ts +2 -2
- package/src/models/ImageTranslationProRequest.ts +9 -9
- package/src/models/ImageTranslationProResponseBody.ts +5 -5
- package/src/models/ImageTranslationStandardRequest.ts +4 -4
- package/src/models/ImageTranslationStandardResponseBody.ts +3 -3
- package/src/models/TextTranslateRequest.ts +6 -6
- package/src/models/TextTranslateResponseBody.ts +5 -5
- package/src/models/TextTranslateShrinkRequest.ts +6 -6
- package/src/models/VirtualTryOnRequest.ts +70 -0
- package/src/models/VirtualTryOnResponse.ts +40 -0
- package/src/models/VirtualTryOnResponseBody.ts +114 -0
- package/src/models/model.ts +4 -0
package/dist/client.js
CHANGED
|
@@ -571,25 +571,25 @@ class Client extends openapi_core_1.default {
|
|
|
571
571
|
return await this.diduiAreaDeductionWithOptions(request, runtime);
|
|
572
572
|
}
|
|
573
573
|
/**
|
|
574
|
-
* Designed specifically for document translation
|
|
575
|
-
*
|
|
576
|
-
* - Content accuracy: translation accuracy, and accuracy
|
|
577
|
-
* - Structural integrity: overall layout continuity,
|
|
574
|
+
* 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.
|
|
575
|
+
* Excels in the following areas:
|
|
576
|
+
* - Content accuracy: translation accuracy, parameter and unit accuracy.
|
|
577
|
+
* - Structural integrity: overall layout continuity, page margin and layout restoration.
|
|
578
578
|
*
|
|
579
579
|
* @remarks
|
|
580
580
|
* ## Product Introduction
|
|
581
|
-
* Designed specifically for document translation
|
|
581
|
+
* 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.
|
|
582
582
|
* Excels in the following areas:
|
|
583
583
|
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
584
|
-
* - Structural integrity: overall layout continuity, page margin and layout
|
|
585
|
-
* ##
|
|
586
|
-
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and other scenarios.
|
|
587
|
-
* ##
|
|
588
|
-
* - Supports PDF and Word formats. Supports source documents
|
|
584
|
+
* - Structural integrity: overall layout continuity, page margin and layout restoration
|
|
585
|
+
* ## Common scenarios
|
|
586
|
+
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and many other scenarios.
|
|
587
|
+
* ## Functions and features
|
|
588
|
+
* - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see section 4.5.
|
|
589
589
|
* - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
|
|
590
|
-
* - Supports high-fidelity layout
|
|
590
|
+
* - Supports high-fidelity layout restoration after translation.
|
|
591
591
|
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
592
|
-
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value).
|
|
592
|
+
* - 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.
|
|
593
593
|
*
|
|
594
594
|
* @param request - DocumentTranslateRequest
|
|
595
595
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -627,25 +627,25 @@ class Client extends openapi_core_1.default {
|
|
|
627
627
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DocumentTranslateResponse({}));
|
|
628
628
|
}
|
|
629
629
|
/**
|
|
630
|
-
* Designed specifically for document translation
|
|
631
|
-
*
|
|
632
|
-
* - Content accuracy: translation accuracy, and accuracy
|
|
633
|
-
* - Structural integrity: overall layout continuity,
|
|
630
|
+
* 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.
|
|
631
|
+
* Excels in the following areas:
|
|
632
|
+
* - Content accuracy: translation accuracy, parameter and unit accuracy.
|
|
633
|
+
* - Structural integrity: overall layout continuity, page margin and layout restoration.
|
|
634
634
|
*
|
|
635
635
|
* @remarks
|
|
636
636
|
* ## Product Introduction
|
|
637
|
-
* Designed specifically for document translation
|
|
637
|
+
* 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.
|
|
638
638
|
* Excels in the following areas:
|
|
639
639
|
* - Content accuracy: translation accuracy, parameter and unit accuracy
|
|
640
|
-
* - Structural integrity: overall layout continuity, page margin and layout
|
|
641
|
-
* ##
|
|
642
|
-
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and other scenarios.
|
|
643
|
-
* ##
|
|
644
|
-
* - Supports PDF and Word formats. Supports source documents
|
|
640
|
+
* - Structural integrity: overall layout continuity, page margin and layout restoration
|
|
641
|
+
* ## Common scenarios
|
|
642
|
+
* Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and many other scenarios.
|
|
643
|
+
* ## Functions and features
|
|
644
|
+
* - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see section 4.5.
|
|
645
645
|
* - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
|
|
646
|
-
* - Supports high-fidelity layout
|
|
646
|
+
* - Supports high-fidelity layout restoration after translation.
|
|
647
647
|
* - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
|
|
648
|
-
* - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value).
|
|
648
|
+
* - 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.
|
|
649
649
|
*
|
|
650
650
|
* @param request - DocumentTranslateRequest
|
|
651
651
|
* @returns DocumentTranslateResponse
|
|
@@ -1579,18 +1579,18 @@ class Client extends openapi_core_1.default {
|
|
|
1579
1579
|
return await this.imageTranslationPlusWithOptions(request, runtime);
|
|
1580
1580
|
}
|
|
1581
1581
|
/**
|
|
1582
|
-
*
|
|
1582
|
+
* 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.
|
|
1583
1583
|
*
|
|
1584
1584
|
* @remarks
|
|
1585
1585
|
* ## Product Introduction
|
|
1586
|
-
*
|
|
1586
|
+
* 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.
|
|
1587
1587
|
* ## Scenarios
|
|
1588
1588
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1589
1589
|
* ## Features
|
|
1590
|
-
* - **Product subject protection**:
|
|
1591
|
-
* - **Post-translation editing**:
|
|
1592
|
-
* - **Brand name protection**:
|
|
1593
|
-
* - **Translation intervention**:
|
|
1590
|
+
* - **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.
|
|
1591
|
+
* - **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.
|
|
1592
|
+
* - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1593
|
+
* - **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.
|
|
1594
1594
|
* - **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
1595
1595
|
*
|
|
1596
1596
|
* @param request - ImageTranslationProRequest
|
|
@@ -1641,18 +1641,18 @@ class Client extends openapi_core_1.default {
|
|
|
1641
1641
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
|
|
1642
1642
|
}
|
|
1643
1643
|
/**
|
|
1644
|
-
*
|
|
1644
|
+
* 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.
|
|
1645
1645
|
*
|
|
1646
1646
|
* @remarks
|
|
1647
1647
|
* ## Product Introduction
|
|
1648
|
-
*
|
|
1648
|
+
* 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.
|
|
1649
1649
|
* ## Scenarios
|
|
1650
1650
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1651
1651
|
* ## Features
|
|
1652
|
-
* - **Product subject protection**:
|
|
1653
|
-
* - **Post-translation editing**:
|
|
1654
|
-
* - **Brand name protection**:
|
|
1655
|
-
* - **Translation intervention**:
|
|
1652
|
+
* - **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.
|
|
1653
|
+
* - **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.
|
|
1654
|
+
* - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1655
|
+
* - **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.
|
|
1656
1656
|
* - **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
1657
1657
|
*
|
|
1658
1658
|
* @param request - ImageTranslationProRequest
|
|
@@ -1663,22 +1663,22 @@ class Client extends openapi_core_1.default {
|
|
|
1663
1663
|
return await this.imageTranslationProWithOptions(request, runtime);
|
|
1664
1664
|
}
|
|
1665
1665
|
/**
|
|
1666
|
-
*
|
|
1666
|
+
* 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.
|
|
1667
1667
|
*
|
|
1668
1668
|
* @remarks
|
|
1669
1669
|
* # 1. Product Introduction
|
|
1670
|
-
*
|
|
1671
|
-
* # 2.
|
|
1670
|
+
* 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.
|
|
1671
|
+
* # 2. Applicable scenarios
|
|
1672
1672
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1673
1673
|
* # 3. Features
|
|
1674
|
-
* * **Product
|
|
1674
|
+
* * **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.
|
|
1675
1675
|
*
|
|
1676
|
-
* * **Brand name protection**:
|
|
1676
|
+
* * **Brand name protection**: You can choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1677
1677
|
*
|
|
1678
|
-
* * **Secondary editing after translation (layer information)**:
|
|
1678
|
+
* * **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.
|
|
1679
1679
|
*
|
|
1680
|
-
* * **Translation intervention**:
|
|
1681
|
-
* * **Image editor integration**: For more information, see [Image
|
|
1680
|
+
* * **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.
|
|
1681
|
+
* * **Image editor integration support**: For more information, see [Image Translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
1682
1682
|
*
|
|
1683
1683
|
* @param request - ImageTranslationStandardRequest
|
|
1684
1684
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1725,22 +1725,22 @@ class Client extends openapi_core_1.default {
|
|
|
1725
1725
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardResponse({}));
|
|
1726
1726
|
}
|
|
1727
1727
|
/**
|
|
1728
|
-
*
|
|
1728
|
+
* 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.
|
|
1729
1729
|
*
|
|
1730
1730
|
* @remarks
|
|
1731
1731
|
* # 1. Product Introduction
|
|
1732
|
-
*
|
|
1733
|
-
* # 2.
|
|
1732
|
+
* 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.
|
|
1733
|
+
* # 2. Applicable scenarios
|
|
1734
1734
|
* E-commerce product images, marketing images, and images for various other scenarios.
|
|
1735
1735
|
* # 3. Features
|
|
1736
|
-
* * **Product
|
|
1736
|
+
* * **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.
|
|
1737
1737
|
*
|
|
1738
|
-
* * **Brand name protection**:
|
|
1738
|
+
* * **Brand name protection**: You can choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1739
1739
|
*
|
|
1740
|
-
* * **Secondary editing after translation (layer information)**:
|
|
1740
|
+
* * **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.
|
|
1741
1741
|
*
|
|
1742
|
-
* * **Translation intervention**:
|
|
1743
|
-
* * **Image editor integration**: For more information, see [Image
|
|
1742
|
+
* * **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.
|
|
1743
|
+
* * **Image editor integration support**: For more information, see [Image Translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
|
|
1744
1744
|
*
|
|
1745
1745
|
* @param request - ImageTranslationStandardRequest
|
|
1746
1746
|
* @returns ImageTranslationStandardResponse
|
|
@@ -2714,32 +2714,32 @@ class Client extends openapi_core_1.default {
|
|
|
2714
2714
|
return await this.textCorrectWithOptions(request, runtime);
|
|
2715
2715
|
}
|
|
2716
2716
|
/**
|
|
2717
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs,
|
|
2717
|
+
* 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.
|
|
2718
2718
|
*
|
|
2719
2719
|
* @remarks
|
|
2720
2720
|
* ## Product Introduction
|
|
2721
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs,
|
|
2721
|
+
* 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.
|
|
2722
2722
|
* ## Common scenarios
|
|
2723
2723
|
* - 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.
|
|
2724
2724
|
* - 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.
|
|
2725
|
-
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
2725
|
+
* - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
2726
2726
|
* - 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.
|
|
2727
|
-
* Marco MT can also be used for general translation scenarios such as office work, meetings, and daily conversations.
|
|
2728
|
-
* ##
|
|
2727
|
+
* Marco MT can also be used for general translation scenarios, such as office work, meetings, and daily conversations.
|
|
2728
|
+
* ## Functions and features
|
|
2729
2729
|
* - **Supported language pairs**
|
|
2730
|
-
* Marco MT supports translation
|
|
2730
|
+
* 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).
|
|
2731
2731
|
* - **Ultra-low hallucination rate and high-speed inference**
|
|
2732
|
-
* Marco MT is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it
|
|
2732
|
+
* 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.
|
|
2733
2733
|
* - **Supported text format types**
|
|
2734
|
-
* Currently
|
|
2735
|
-
* - **Translation intervention**
|
|
2736
|
-
*
|
|
2734
|
+
* Currently, text and html text types are supported.
|
|
2735
|
+
* - **Translation intervention support**
|
|
2736
|
+
* 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.
|
|
2737
2737
|
* ## Translation quality comparison
|
|
2738
2738
|
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
2739
2739
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2740
2740
|
* | 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 |
|
|
2741
2741
|
* | 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 |
|
|
2742
|
-
* | 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
|
|
2742
|
+
* | 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 |
|
|
2743
2743
|
*
|
|
2744
2744
|
* @param tmpReq - TextTranslateRequest
|
|
2745
2745
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2791,32 +2791,32 @@ class Client extends openapi_core_1.default {
|
|
|
2791
2791
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateResponse({}));
|
|
2792
2792
|
}
|
|
2793
2793
|
/**
|
|
2794
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs,
|
|
2794
|
+
* 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.
|
|
2795
2795
|
*
|
|
2796
2796
|
* @remarks
|
|
2797
2797
|
* ## Product Introduction
|
|
2798
|
-
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs,
|
|
2798
|
+
* 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.
|
|
2799
2799
|
* ## Common scenarios
|
|
2800
2800
|
* - 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.
|
|
2801
2801
|
* - 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.
|
|
2802
|
-
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
2802
|
+
* - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
2803
2803
|
* - 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.
|
|
2804
|
-
* Marco MT can also be used for general translation scenarios such as office work, meetings, and daily conversations.
|
|
2805
|
-
* ##
|
|
2804
|
+
* Marco MT can also be used for general translation scenarios, such as office work, meetings, and daily conversations.
|
|
2805
|
+
* ## Functions and features
|
|
2806
2806
|
* - **Supported language pairs**
|
|
2807
|
-
* Marco MT supports translation
|
|
2807
|
+
* 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).
|
|
2808
2808
|
* - **Ultra-low hallucination rate and high-speed inference**
|
|
2809
|
-
* Marco MT is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it
|
|
2809
|
+
* 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.
|
|
2810
2810
|
* - **Supported text format types**
|
|
2811
|
-
* Currently
|
|
2812
|
-
* - **Translation intervention**
|
|
2813
|
-
*
|
|
2811
|
+
* Currently, text and html text types are supported.
|
|
2812
|
+
* - **Translation intervention support**
|
|
2813
|
+
* 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.
|
|
2814
2814
|
* ## Translation quality comparison
|
|
2815
2815
|
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
2816
2816
|
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
2817
2817
|
* | 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 |
|
|
2818
2818
|
* | 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 |
|
|
2819
|
-
* | 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
|
|
2819
|
+
* | 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 |
|
|
2820
2820
|
*
|
|
2821
2821
|
* @param request - TextTranslateRequest
|
|
2822
2822
|
* @returns TextTranslateResponse
|
|
@@ -3012,6 +3012,116 @@ class Client extends openapi_core_1.default {
|
|
|
3012
3012
|
let runtime = new $dara.RuntimeOptions({});
|
|
3013
3013
|
return await this.videoTranslationWithOptions(request, runtime);
|
|
3014
3014
|
}
|
|
3015
|
+
/**
|
|
3016
|
+
* 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.
|
|
3017
|
+
*
|
|
3018
|
+
* @remarks
|
|
3019
|
+
* ## Scenarios
|
|
3020
|
+
* - **Virtual try-on for clothing products:**
|
|
3021
|
+
* 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.
|
|
3022
|
+
* - **Virtual try-on for shoes and hats:**
|
|
3023
|
+
* 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.
|
|
3024
|
+
* - **E-commerce product display and marketing:**
|
|
3025
|
+
* 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.
|
|
3026
|
+
* - **Online shopping experience optimization:**
|
|
3027
|
+
* 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.
|
|
3028
|
+
* ## Features
|
|
3029
|
+
* - **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:**
|
|
3030
|
+
* - a. Model image: the image of the person for the virtual try-on.
|
|
3031
|
+
* - b. Product image: the image of the clothing, shoes, or hat to be applied onto the model.
|
|
3032
|
+
* - **Second, the user can select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, skirts, shoes, and hats:**
|
|
3033
|
+
* - a. Specified product type: the user can directly specify the product type, and the system processes accordingly.
|
|
3034
|
+
* - 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.
|
|
3035
|
+
* - **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:**
|
|
3036
|
+
* - 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.
|
|
3037
|
+
* - 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.
|
|
3038
|
+
* - 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.
|
|
3039
|
+
* ## Sample results
|
|
3040
|
+
* | **Type** | **Model image** | **Garment image** | **Try-on result** |
|
|
3041
|
+
* | --- | --- | --- | --- |
|
|
3042
|
+
* | Tops |  |  |  |
|
|
3043
|
+
* | Bottoms |  |  |  |
|
|
3044
|
+
* | Shoes |  |  |  |
|
|
3045
|
+
* | Jumpsuits |  |  |  |
|
|
3046
|
+
* | Skirts |  |  |  |
|
|
3047
|
+
* | Hats |  |  |  |
|
|
3048
|
+
*
|
|
3049
|
+
* @param request - VirtualTryOnRequest
|
|
3050
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3051
|
+
* @returns VirtualTryOnResponse
|
|
3052
|
+
*/
|
|
3053
|
+
async virtualTryOnWithOptions(request, runtime) {
|
|
3054
|
+
request.validate();
|
|
3055
|
+
let query = {};
|
|
3056
|
+
if (!$dara.isNull(request.clothImageUrl)) {
|
|
3057
|
+
query["ClothImageUrl"] = request.clothImageUrl;
|
|
3058
|
+
}
|
|
3059
|
+
if (!$dara.isNull(request.clothType)) {
|
|
3060
|
+
query["ClothType"] = request.clothType;
|
|
3061
|
+
}
|
|
3062
|
+
if (!$dara.isNull(request.modelImageUrl)) {
|
|
3063
|
+
query["ModelImageUrl"] = request.modelImageUrl;
|
|
3064
|
+
}
|
|
3065
|
+
if (!$dara.isNull(request.resolution)) {
|
|
3066
|
+
query["Resolution"] = request.resolution;
|
|
3067
|
+
}
|
|
3068
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3069
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3070
|
+
});
|
|
3071
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3072
|
+
action: "VirtualTryOn",
|
|
3073
|
+
version: "2026-04-28",
|
|
3074
|
+
protocol: "HTTPS",
|
|
3075
|
+
pathname: "/",
|
|
3076
|
+
method: "POST",
|
|
3077
|
+
authType: "AK",
|
|
3078
|
+
style: "RPC",
|
|
3079
|
+
reqBodyType: "formData",
|
|
3080
|
+
bodyType: "json",
|
|
3081
|
+
});
|
|
3082
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VirtualTryOnResponse({}));
|
|
3083
|
+
}
|
|
3084
|
+
/**
|
|
3085
|
+
* 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.
|
|
3086
|
+
*
|
|
3087
|
+
* @remarks
|
|
3088
|
+
* ## Scenarios
|
|
3089
|
+
* - **Virtual try-on for clothing products:**
|
|
3090
|
+
* 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.
|
|
3091
|
+
* - **Virtual try-on for shoes and hats:**
|
|
3092
|
+
* 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.
|
|
3093
|
+
* - **E-commerce product display and marketing:**
|
|
3094
|
+
* 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.
|
|
3095
|
+
* - **Online shopping experience optimization:**
|
|
3096
|
+
* 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.
|
|
3097
|
+
* ## Features
|
|
3098
|
+
* - **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:**
|
|
3099
|
+
* - a. Model image: the image of the person for the virtual try-on.
|
|
3100
|
+
* - b. Product image: the image of the clothing, shoes, or hat to be applied onto the model.
|
|
3101
|
+
* - **Second, the user can select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, skirts, shoes, and hats:**
|
|
3102
|
+
* - a. Specified product type: the user can directly specify the product type, and the system processes accordingly.
|
|
3103
|
+
* - 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.
|
|
3104
|
+
* - **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:**
|
|
3105
|
+
* - 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.
|
|
3106
|
+
* - 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.
|
|
3107
|
+
* - 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.
|
|
3108
|
+
* ## Sample results
|
|
3109
|
+
* | **Type** | **Model image** | **Garment image** | **Try-on result** |
|
|
3110
|
+
* | --- | --- | --- | --- |
|
|
3111
|
+
* | Tops |  |  |  |
|
|
3112
|
+
* | Bottoms |  |  |  |
|
|
3113
|
+
* | Shoes |  |  |  |
|
|
3114
|
+
* | Jumpsuits |  |  |  |
|
|
3115
|
+
* | Skirts |  |  |  |
|
|
3116
|
+
* | Hats |  |  |  |
|
|
3117
|
+
*
|
|
3118
|
+
* @param request - VirtualTryOnRequest
|
|
3119
|
+
* @returns VirtualTryOnResponse
|
|
3120
|
+
*/
|
|
3121
|
+
async virtualTryOn(request) {
|
|
3122
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3123
|
+
return await this.virtualTryOnWithOptions(request, runtime);
|
|
3124
|
+
}
|
|
3015
3125
|
/**
|
|
3016
3126
|
* 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)
|
|
3017
3127
|
*
|