@alicloud/aidge20260428 5.0.0 → 5.2.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 +166 -2
- package/dist/client.js +255 -2
- package/dist/client.js.map +1 -1
- package/dist/models/ImageTranslationPlusRequest.d.ts +75 -0
- package/dist/models/ImageTranslationPlusRequest.js +70 -0
- package/dist/models/ImageTranslationPlusRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusResponse.d.ts +19 -0
- package/dist/models/ImageTranslationPlusResponse.js +69 -0
- package/dist/models/ImageTranslationPlusResponse.js.map +1 -0
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationPlusResponseBody.js +88 -0
- package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -0
- package/dist/models/PrepaidTextTranslateRequest.d.ts +73 -0
- package/dist/models/PrepaidTextTranslateRequest.js +73 -0
- package/dist/models/PrepaidTextTranslateRequest.js.map +1 -0
- package/dist/models/PrepaidTextTranslateResponse.d.ts +19 -0
- package/dist/models/PrepaidTextTranslateResponse.js +69 -0
- package/dist/models/PrepaidTextTranslateResponse.js.map +1 -0
- package/dist/models/PrepaidTextTranslateResponseBody.d.ts +110 -0
- package/dist/models/PrepaidTextTranslateResponseBody.js +119 -0
- package/dist/models/PrepaidTextTranslateResponseBody.js.map +1 -0
- package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +73 -0
- package/dist/models/PrepaidTextTranslateShrinkRequest.js +70 -0
- package/dist/models/PrepaidTextTranslateShrinkRequest.js.map +1 -0
- package/dist/models/VideoGenerationRequest.d.ts +50 -0
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +31 -4
- package/dist/models/VideoGenerationResponseBody.js.map +1 -1
- package/dist/models/VideoGenerationShrinkRequest.d.ts +8 -0
- package/dist/models/VideoGenerationShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +23 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +274 -2
- package/src/models/ImageTranslationPlusRequest.ts +100 -0
- package/src/models/ImageTranslationPlusResponse.ts +40 -0
- package/src/models/ImageTranslationPlusResponseBody.ts +104 -0
- package/src/models/PrepaidTextTranslateRequest.ts +101 -0
- package/src/models/PrepaidTextTranslateResponse.ts +40 -0
- package/src/models/PrepaidTextTranslateResponseBody.ts +164 -0
- package/src/models/PrepaidTextTranslateShrinkRequest.ts +98 -0
- package/src/models/VideoGenerationRequest.ts +50 -0
- package/src/models/VideoGenerationResponseBody.ts +31 -4
- package/src/models/VideoGenerationShrinkRequest.ts +8 -0
- package/src/models/model.ts +10 -0
package/dist/client.d.ts
CHANGED
|
@@ -784,6 +784,77 @@ export default class Client extends OpenApi {
|
|
|
784
784
|
* @returns ImageRemoveResponse
|
|
785
785
|
*/
|
|
786
786
|
imageRemove(request: $_model.ImageRemoveRequest): Promise<$_model.ImageRemoveResponse>;
|
|
787
|
+
/**
|
|
788
|
+
* Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Lite and Pro editions. Use it for the following 8 language pairs, with more to be supported in the future.
|
|
789
|
+
*
|
|
790
|
+
* @remarks
|
|
791
|
+
* ## Product Introduction
|
|
792
|
+
* Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Lite and Pro editions. Use it for the following 8 language pairs, with more to be supported in the future.
|
|
793
|
+
* Supported language pairs:
|
|
794
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
795
|
+
* | --- | --- | --- | --- | --- |
|
|
796
|
+
* | | Language code | Language name | Language code | Language name |
|
|
797
|
+
* | 1 | en | English | ar | Arabic |
|
|
798
|
+
* | 2 | en | English | id | Indonesian |
|
|
799
|
+
* | 3 | en | English | th | Thai |
|
|
800
|
+
* | 4 | en | English | ko | Korean |
|
|
801
|
+
* | 5 | en | English | ja | Japanese |
|
|
802
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
803
|
+
* | 7 | en | English | ru | Russian |
|
|
804
|
+
* | 8 | en | English | tl | Filipino |
|
|
805
|
+
* | 9 | en | English | es | Spanish |
|
|
806
|
+
* | 10 | en | English | fr | French |
|
|
807
|
+
* | 11 | en | English | de | German |
|
|
808
|
+
* | 12 | en | English | pl | Polish |
|
|
809
|
+
* ## Scenarios
|
|
810
|
+
* Main product images and detail images for cross-border e-commerce.
|
|
811
|
+
* ## Features
|
|
812
|
+
* * **Product body information protection**: Allows you to choose whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
|
|
813
|
+
*
|
|
814
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
815
|
+
*
|
|
816
|
+
* * **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 scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
|
|
817
|
+
*
|
|
818
|
+
* @param request - ImageTranslationPlusRequest
|
|
819
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
820
|
+
* @returns ImageTranslationPlusResponse
|
|
821
|
+
*/
|
|
822
|
+
imageTranslationPlusWithOptions(request: $_model.ImageTranslationPlusRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationPlusResponse>;
|
|
823
|
+
/**
|
|
824
|
+
* Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Lite and Pro editions. Use it for the following 8 language pairs, with more to be supported in the future.
|
|
825
|
+
*
|
|
826
|
+
* @remarks
|
|
827
|
+
* ## Product Introduction
|
|
828
|
+
* Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Lite and Pro editions. Use it for the following 8 language pairs, with more to be supported in the future.
|
|
829
|
+
* Supported language pairs:
|
|
830
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
831
|
+
* | --- | --- | --- | --- | --- |
|
|
832
|
+
* | | Language code | Language name | Language code | Language name |
|
|
833
|
+
* | 1 | en | English | ar | Arabic |
|
|
834
|
+
* | 2 | en | English | id | Indonesian |
|
|
835
|
+
* | 3 | en | English | th | Thai |
|
|
836
|
+
* | 4 | en | English | ko | Korean |
|
|
837
|
+
* | 5 | en | English | ja | Japanese |
|
|
838
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
839
|
+
* | 7 | en | English | ru | Russian |
|
|
840
|
+
* | 8 | en | English | tl | Filipino |
|
|
841
|
+
* | 9 | en | English | es | Spanish |
|
|
842
|
+
* | 10 | en | English | fr | French |
|
|
843
|
+
* | 11 | en | English | de | German |
|
|
844
|
+
* | 12 | en | English | pl | Polish |
|
|
845
|
+
* ## Scenarios
|
|
846
|
+
* Main product images and detail images for cross-border e-commerce.
|
|
847
|
+
* ## Features
|
|
848
|
+
* * **Product body information protection**: Allows you to choose whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
|
|
849
|
+
*
|
|
850
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
851
|
+
*
|
|
852
|
+
* * **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 scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
|
|
853
|
+
*
|
|
854
|
+
* @param request - ImageTranslationPlusRequest
|
|
855
|
+
* @returns ImageTranslationPlusResponse
|
|
856
|
+
*/
|
|
857
|
+
imageTranslationPlus(request: $_model.ImageTranslationPlusRequest): Promise<$_model.ImageTranslationPlusResponse>;
|
|
787
858
|
/**
|
|
788
859
|
* Translates text in e-commerce images using the Pro edition, which integrates multimodal foundation model technology for more accurate image understanding and significantly improved translation quality.
|
|
789
860
|
*
|
|
@@ -1012,6 +1083,63 @@ export default class Client extends OpenApi {
|
|
|
1012
1083
|
* @returns PackageWeightSizeCheckResponse
|
|
1013
1084
|
*/
|
|
1014
1085
|
packageWeightSizeCheck(request: $_model.PackageWeightSizeCheckRequest): Promise<$_model.PackageWeightSizeCheckResponse>;
|
|
1086
|
+
/**
|
|
1087
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify the source language, automatic detection is performed.
|
|
1088
|
+
*
|
|
1089
|
+
* @remarks
|
|
1090
|
+
* ## Product Introduction
|
|
1091
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify the source language, automatic detection is performed.
|
|
1092
|
+
* ## Common scenarios
|
|
1093
|
+
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending words in product titles into the target language, improving product visibility on e-commerce platforms.
|
|
1094
|
+
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco large model translation supports long text translation and HTML format, delivering excellent translation quality and format preservation.
|
|
1095
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
1096
|
+
* - Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
|
|
1097
|
+
* Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
1098
|
+
* ## Features
|
|
1099
|
+
* - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in Section 5.6.
|
|
1100
|
+
* - **Ultra-low hallucination rate and high-speed inference** Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference speed and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
1101
|
+
* - **Supported text format types** Currently supports text and html text types.
|
|
1102
|
+
* - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1103
|
+
* ## Translation quality comparison
|
|
1104
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
1105
|
+
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
1106
|
+
* | 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 |
|
|
1107
|
+
* | 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 |
|
|
1108
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression. The translation correctly identifies "key bag" rather than "keychain", avoiding ambiguity about the product type |
|
|
1109
|
+
*
|
|
1110
|
+
* @param tmpReq - PrepaidTextTranslateRequest
|
|
1111
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1112
|
+
* @returns PrepaidTextTranslateResponse
|
|
1113
|
+
*/
|
|
1114
|
+
prepaidTextTranslateWithOptions(tmpReq: $_model.PrepaidTextTranslateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PrepaidTextTranslateResponse>;
|
|
1115
|
+
/**
|
|
1116
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify the source language, automatic detection is performed.
|
|
1117
|
+
*
|
|
1118
|
+
* @remarks
|
|
1119
|
+
* ## Product Introduction
|
|
1120
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify the source language, automatic detection is performed.
|
|
1121
|
+
* ## Common scenarios
|
|
1122
|
+
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending words in product titles into the target language, improving product visibility on e-commerce platforms.
|
|
1123
|
+
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco large model translation supports long text translation and HTML format, delivering excellent translation quality and format preservation.
|
|
1124
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
1125
|
+
* - Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
|
|
1126
|
+
* Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
1127
|
+
* ## Features
|
|
1128
|
+
* - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in Section 5.6.
|
|
1129
|
+
* - **Ultra-low hallucination rate and high-speed inference** Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference speed and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
1130
|
+
* - **Supported text format types** Currently supports text and html text types.
|
|
1131
|
+
* - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1132
|
+
* ## Translation quality comparison
|
|
1133
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
1134
|
+
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
1135
|
+
* | 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 |
|
|
1136
|
+
* | 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 |
|
|
1137
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression. The translation correctly identifies "key bag" rather than "keychain", avoiding ambiguity about the product type |
|
|
1138
|
+
*
|
|
1139
|
+
* @param request - PrepaidTextTranslateRequest
|
|
1140
|
+
* @returns PrepaidTextTranslateResponse
|
|
1141
|
+
*/
|
|
1142
|
+
prepaidTextTranslate(request: $_model.PrepaidTextTranslateRequest): Promise<$_model.PrepaidTextTranslateResponse>;
|
|
1015
1143
|
/**
|
|
1016
1144
|
* Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1017
1145
|
*
|
|
@@ -1444,7 +1572,25 @@ export default class Client extends OpenApi {
|
|
|
1444
1572
|
*/
|
|
1445
1573
|
textTranslate(request: $_model.TextTranslateRequest): Promise<$_model.TextTranslateResponse>;
|
|
1446
1574
|
/**
|
|
1447
|
-
*
|
|
1575
|
+
* The E-commerce AI Video Generation Agent is designed for e-commerce merchants and platforms. Based on product main images, titles, selling points, and other information, it automatically generates 5–30 second product showcase short videos, helping customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P, supports both single-product quick calls and multi-product batch generation, catering to both daily operations and large-scale product content production needs. Currently, it covers all apparel categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to skincare, cosmetics, food and beverages, home appliances, and other core e-commerce categories.
|
|
1576
|
+
*
|
|
1577
|
+
* @remarks
|
|
1578
|
+
* # Scenarios
|
|
1579
|
+
* - Sellers/platforms batch-generate product short videos: Supports multiple video aspect ratios and sizes (3:4, 9:16), suitable for product detail page video slots, product homepage displays, information feed placements, short video content marketing, campaign material, and other scenarios.
|
|
1580
|
+
* - New product launches with rapid initial video material generation: When merchants have a large number of new products to list, they only need to upload product images and titles to quickly generate product showcase videos, model try-on videos, voiceover explanation videos, and other content, helping merchants rapidly complete material deployment during the launch phase.
|
|
1581
|
+
* - High-fidelity apparel display: Generates model showcase videos that closely resemble real commercial photography based on product main images, with optimized capabilities for silhouette reproduction, fabric texture preservation, accurate color rendering, and consistent detail stability. Supports common e-commerce display methods such as garment try-on, turning, walking, close-up shots, and multi-angle switching.
|
|
1582
|
+
* - High-quality commercial photography models: Includes 20+ built-in target audience model libraries covering plus-size women, plus-size men, swimwear, youthful style, smart casual commuter, young casual, business menswear, sports and fitness, and other body types, skin tones, and ethnicities. Supports standing poses, side views, walking displays, partial close-ups, and other commercial photography expressions.
|
|
1583
|
+
* - Standard product explanations and other high-frequency e-commerce scenarios: Suitable for standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, household cleaning products, and 3C digital products. Can quickly generate product explanation videos based on product main images, titles, selling point information, and explanation scripts.
|
|
1584
|
+
* - Multi-product, multi-selling-point testing to improve placement efficiency: For information feed advertising, short video placement, and content marketing scenarios, quickly generates multiple versions of video materials, enabling enterprises to validate conversion effects of different selling points and presentation formats at low cost, improving placement ROI.
|
|
1585
|
+
* # Features
|
|
1586
|
+
* - Fully automated end-to-end batch generation with zero Prompt threshold: Callers only need to provide product image URLs and titles. The system automatically completes the entire process from product understanding, storyboard planning to video generation, without manual Prompt writing, template selection, or repeated parameter tuning. Built-in multi-Agent capabilities including product understanding, visual quality inspection, script planning, and cinematography direction significantly lower the usage barrier.
|
|
1587
|
+
* - Highly stable generation with low discard rate: Uses a deterministic generation pipeline and multi-layer quality control mechanisms to output usable materials with fewer retries, reducing invalid generation and resource waste, making overall production costs more controllable.
|
|
1588
|
+
* - E-commerce-specific product fidelity capability: Built-in multi-round quality inspection Agent locks product state throughout video generation (e.g., zippers won\\"t be unzipped, sleeves won\\"t be lowered, prints won\\"t disappear), ensuring product consistency through multi-layer defense of "script rewriting + explicit constraint injection + failure-aware retry."
|
|
1589
|
+
* - Reference image priority + 6-axis consistency verification: Uses a Reference-Image-First generation paradigm with the original product image as the sole visual truth source. Automatically performs 6-dimensional VL diagnostics (color drift, pattern loss, contour deviation, structural addition/removal, model matching, stain detection), fundamentally preventing generated images from deviating from the product.
|
|
1590
|
+
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The Agent autonomously plans independent storyboards to showcase product effects in different scenarios. Also supports fixed scene mode for in-depth product presentation under a unified visual style.
|
|
1591
|
+
* - Cinematic camera movement capabilities: Built-in advanced camera modes including bullet time, Grammy-style slow motion, 360° orbital rotation, and full-body model rotation display, achieving deterministic output through segmented precise control.
|
|
1592
|
+
* - Model library and customization services: Built-in multi-type model resource library. Supports merchants specifying fixed models, customizing exclusive model personas, and long-term brand visual identity binding to ensure brand visual consistency.
|
|
1593
|
+
* - Adapted for high-frequency e-commerce content scenarios: Supports multiple resolutions such as 720P and 1080P, and multiple aspect ratios such as 3:4 and 9:16. Suitable for product detail page video slots, product homepage video displays, waterfall/information feed placements, campaign materials, and new product and promotional video generation.
|
|
1448
1594
|
*
|
|
1449
1595
|
* @param tmpReq - VideoGenerationRequest
|
|
1450
1596
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1452,7 +1598,25 @@ export default class Client extends OpenApi {
|
|
|
1452
1598
|
*/
|
|
1453
1599
|
videoGenerationWithOptions(tmpReq: $_model.VideoGenerationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.VideoGenerationResponse>;
|
|
1454
1600
|
/**
|
|
1455
|
-
*
|
|
1601
|
+
* The E-commerce AI Video Generation Agent is designed for e-commerce merchants and platforms. Based on product main images, titles, selling points, and other information, it automatically generates 5–30 second product showcase short videos, helping customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P, supports both single-product quick calls and multi-product batch generation, catering to both daily operations and large-scale product content production needs. Currently, it covers all apparel categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to skincare, cosmetics, food and beverages, home appliances, and other core e-commerce categories.
|
|
1602
|
+
*
|
|
1603
|
+
* @remarks
|
|
1604
|
+
* # Scenarios
|
|
1605
|
+
* - Sellers/platforms batch-generate product short videos: Supports multiple video aspect ratios and sizes (3:4, 9:16), suitable for product detail page video slots, product homepage displays, information feed placements, short video content marketing, campaign material, and other scenarios.
|
|
1606
|
+
* - New product launches with rapid initial video material generation: When merchants have a large number of new products to list, they only need to upload product images and titles to quickly generate product showcase videos, model try-on videos, voiceover explanation videos, and other content, helping merchants rapidly complete material deployment during the launch phase.
|
|
1607
|
+
* - High-fidelity apparel display: Generates model showcase videos that closely resemble real commercial photography based on product main images, with optimized capabilities for silhouette reproduction, fabric texture preservation, accurate color rendering, and consistent detail stability. Supports common e-commerce display methods such as garment try-on, turning, walking, close-up shots, and multi-angle switching.
|
|
1608
|
+
* - High-quality commercial photography models: Includes 20+ built-in target audience model libraries covering plus-size women, plus-size men, swimwear, youthful style, smart casual commuter, young casual, business menswear, sports and fitness, and other body types, skin tones, and ethnicities. Supports standing poses, side views, walking displays, partial close-ups, and other commercial photography expressions.
|
|
1609
|
+
* - Standard product explanations and other high-frequency e-commerce scenarios: Suitable for standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, household cleaning products, and 3C digital products. Can quickly generate product explanation videos based on product main images, titles, selling point information, and explanation scripts.
|
|
1610
|
+
* - Multi-product, multi-selling-point testing to improve placement efficiency: For information feed advertising, short video placement, and content marketing scenarios, quickly generates multiple versions of video materials, enabling enterprises to validate conversion effects of different selling points and presentation formats at low cost, improving placement ROI.
|
|
1611
|
+
* # Features
|
|
1612
|
+
* - Fully automated end-to-end batch generation with zero Prompt threshold: Callers only need to provide product image URLs and titles. The system automatically completes the entire process from product understanding, storyboard planning to video generation, without manual Prompt writing, template selection, or repeated parameter tuning. Built-in multi-Agent capabilities including product understanding, visual quality inspection, script planning, and cinematography direction significantly lower the usage barrier.
|
|
1613
|
+
* - Highly stable generation with low discard rate: Uses a deterministic generation pipeline and multi-layer quality control mechanisms to output usable materials with fewer retries, reducing invalid generation and resource waste, making overall production costs more controllable.
|
|
1614
|
+
* - E-commerce-specific product fidelity capability: Built-in multi-round quality inspection Agent locks product state throughout video generation (e.g., zippers won\\"t be unzipped, sleeves won\\"t be lowered, prints won\\"t disappear), ensuring product consistency through multi-layer defense of "script rewriting + explicit constraint injection + failure-aware retry."
|
|
1615
|
+
* - Reference image priority + 6-axis consistency verification: Uses a Reference-Image-First generation paradigm with the original product image as the sole visual truth source. Automatically performs 6-dimensional VL diagnostics (color drift, pattern loss, contour deviation, structural addition/removal, model matching, stain detection), fundamentally preventing generated images from deviating from the product.
|
|
1616
|
+
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The Agent autonomously plans independent storyboards to showcase product effects in different scenarios. Also supports fixed scene mode for in-depth product presentation under a unified visual style.
|
|
1617
|
+
* - Cinematic camera movement capabilities: Built-in advanced camera modes including bullet time, Grammy-style slow motion, 360° orbital rotation, and full-body model rotation display, achieving deterministic output through segmented precise control.
|
|
1618
|
+
* - Model library and customization services: Built-in multi-type model resource library. Supports merchants specifying fixed models, customizing exclusive model personas, and long-term brand visual identity binding to ensure brand visual consistency.
|
|
1619
|
+
* - Adapted for high-frequency e-commerce content scenarios: Supports multiple resolutions such as 720P and 1080P, and multiple aspect ratios such as 3:4 and 9:16. Suitable for product detail page video slots, product homepage video displays, waterfall/information feed placements, campaign materials, and new product and promotional video generation.
|
|
1456
1620
|
*
|
|
1457
1621
|
* @param request - VideoGenerationRequest
|
|
1458
1622
|
* @returns VideoGenerationResponse
|
package/dist/client.js
CHANGED
|
@@ -1262,6 +1262,119 @@ class Client extends openapi_core_1.default {
|
|
|
1262
1262
|
let runtime = new $dara.RuntimeOptions({});
|
|
1263
1263
|
return await this.imageRemoveWithOptions(request, runtime);
|
|
1264
1264
|
}
|
|
1265
|
+
/**
|
|
1266
|
+
* Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Lite and Pro editions. Use it for the following 8 language pairs, with more to be supported in the future.
|
|
1267
|
+
*
|
|
1268
|
+
* @remarks
|
|
1269
|
+
* ## Product Introduction
|
|
1270
|
+
* Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Lite and Pro editions. Use it for the following 8 language pairs, with more to be supported in the future.
|
|
1271
|
+
* Supported language pairs:
|
|
1272
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
1273
|
+
* | --- | --- | --- | --- | --- |
|
|
1274
|
+
* | | Language code | Language name | Language code | Language name |
|
|
1275
|
+
* | 1 | en | English | ar | Arabic |
|
|
1276
|
+
* | 2 | en | English | id | Indonesian |
|
|
1277
|
+
* | 3 | en | English | th | Thai |
|
|
1278
|
+
* | 4 | en | English | ko | Korean |
|
|
1279
|
+
* | 5 | en | English | ja | Japanese |
|
|
1280
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
1281
|
+
* | 7 | en | English | ru | Russian |
|
|
1282
|
+
* | 8 | en | English | tl | Filipino |
|
|
1283
|
+
* | 9 | en | English | es | Spanish |
|
|
1284
|
+
* | 10 | en | English | fr | French |
|
|
1285
|
+
* | 11 | en | English | de | German |
|
|
1286
|
+
* | 12 | en | English | pl | Polish |
|
|
1287
|
+
* ## Scenarios
|
|
1288
|
+
* Main product images and detail images for cross-border e-commerce.
|
|
1289
|
+
* ## Features
|
|
1290
|
+
* * **Product body information protection**: Allows you to choose whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
|
|
1291
|
+
*
|
|
1292
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1293
|
+
*
|
|
1294
|
+
* * **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 scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
|
|
1295
|
+
*
|
|
1296
|
+
* @param request - ImageTranslationPlusRequest
|
|
1297
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1298
|
+
* @returns ImageTranslationPlusResponse
|
|
1299
|
+
*/
|
|
1300
|
+
async imageTranslationPlusWithOptions(request, runtime) {
|
|
1301
|
+
request.validate();
|
|
1302
|
+
let body = {};
|
|
1303
|
+
if (!$dara.isNull(request.glossary)) {
|
|
1304
|
+
body["Glossary"] = request.glossary;
|
|
1305
|
+
}
|
|
1306
|
+
if (!$dara.isNull(request.imageUrl)) {
|
|
1307
|
+
body["ImageUrl"] = request.imageUrl;
|
|
1308
|
+
}
|
|
1309
|
+
if (!$dara.isNull(request.includingProductArea)) {
|
|
1310
|
+
body["IncludingProductArea"] = request.includingProductArea;
|
|
1311
|
+
}
|
|
1312
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
1313
|
+
body["SourceLanguage"] = request.sourceLanguage;
|
|
1314
|
+
}
|
|
1315
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
1316
|
+
body["TargetLanguage"] = request.targetLanguage;
|
|
1317
|
+
}
|
|
1318
|
+
if (!$dara.isNull(request.translatingBrandInTheProduct)) {
|
|
1319
|
+
body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
|
|
1320
|
+
}
|
|
1321
|
+
if (!$dara.isNull(request.useImageEditor)) {
|
|
1322
|
+
body["UseImageEditor"] = request.useImageEditor;
|
|
1323
|
+
}
|
|
1324
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1325
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1326
|
+
});
|
|
1327
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1328
|
+
action: "ImageTranslationPlus",
|
|
1329
|
+
version: "2026-04-28",
|
|
1330
|
+
protocol: "HTTPS",
|
|
1331
|
+
pathname: "/",
|
|
1332
|
+
method: "POST",
|
|
1333
|
+
authType: "AK",
|
|
1334
|
+
style: "RPC",
|
|
1335
|
+
reqBodyType: "formData",
|
|
1336
|
+
bodyType: "json",
|
|
1337
|
+
});
|
|
1338
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusResponse({}));
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Lite and Pro editions. Use it for the following 8 language pairs, with more to be supported in the future.
|
|
1342
|
+
*
|
|
1343
|
+
* @remarks
|
|
1344
|
+
* ## Product Introduction
|
|
1345
|
+
* Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and delivers superior translation accuracy for multiple minority languages compared to the Lite and Pro editions. Use it for the following 8 language pairs, with more to be supported in the future.
|
|
1346
|
+
* Supported language pairs:
|
|
1347
|
+
* | **No.** | **Source language** | | **Target language** | |
|
|
1348
|
+
* | --- | --- | --- | --- | --- |
|
|
1349
|
+
* | | Language code | Language name | Language code | Language name |
|
|
1350
|
+
* | 1 | en | English | ar | Arabic |
|
|
1351
|
+
* | 2 | en | English | id | Indonesian |
|
|
1352
|
+
* | 3 | en | English | th | Thai |
|
|
1353
|
+
* | 4 | en | English | ko | Korean |
|
|
1354
|
+
* | 5 | en | English | ja | Japanese |
|
|
1355
|
+
* | 6 | en | English | vi | Vietnamese |
|
|
1356
|
+
* | 7 | en | English | ru | Russian |
|
|
1357
|
+
* | 8 | en | English | tl | Filipino |
|
|
1358
|
+
* | 9 | en | English | es | Spanish |
|
|
1359
|
+
* | 10 | en | English | fr | French |
|
|
1360
|
+
* | 11 | en | English | de | German |
|
|
1361
|
+
* | 12 | en | English | pl | Polish |
|
|
1362
|
+
* ## Scenarios
|
|
1363
|
+
* Main product images and detail images for cross-border e-commerce.
|
|
1364
|
+
* ## Features
|
|
1365
|
+
* * **Product body information protection**: Allows you to choose whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
|
|
1366
|
+
*
|
|
1367
|
+
* * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
|
|
1368
|
+
*
|
|
1369
|
+
* * **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 scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
|
|
1370
|
+
*
|
|
1371
|
+
* @param request - ImageTranslationPlusRequest
|
|
1372
|
+
* @returns ImageTranslationPlusResponse
|
|
1373
|
+
*/
|
|
1374
|
+
async imageTranslationPlus(request) {
|
|
1375
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1376
|
+
return await this.imageTranslationPlusWithOptions(request, runtime);
|
|
1377
|
+
}
|
|
1265
1378
|
/**
|
|
1266
1379
|
* Translates text in e-commerce images using the Pro edition, which integrates multimodal foundation model technology for more accurate image understanding and significantly improved translation quality.
|
|
1267
1380
|
*
|
|
@@ -1697,6 +1810,110 @@ class Client extends openapi_core_1.default {
|
|
|
1697
1810
|
let runtime = new $dara.RuntimeOptions({});
|
|
1698
1811
|
return await this.packageWeightSizeCheckWithOptions(request, runtime);
|
|
1699
1812
|
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify the source language, automatic detection is performed.
|
|
1815
|
+
*
|
|
1816
|
+
* @remarks
|
|
1817
|
+
* ## Product Introduction
|
|
1818
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify the source language, automatic detection is performed.
|
|
1819
|
+
* ## Common scenarios
|
|
1820
|
+
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending words in product titles into the target language, improving product visibility on e-commerce platforms.
|
|
1821
|
+
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco large model translation supports long text translation and HTML format, delivering excellent translation quality and format preservation.
|
|
1822
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
1823
|
+
* - Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
|
|
1824
|
+
* Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
1825
|
+
* ## Features
|
|
1826
|
+
* - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in Section 5.6.
|
|
1827
|
+
* - **Ultra-low hallucination rate and high-speed inference** Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference speed and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
1828
|
+
* - **Supported text format types** Currently supports text and html text types.
|
|
1829
|
+
* - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1830
|
+
* ## Translation quality comparison
|
|
1831
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
1832
|
+
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
1833
|
+
* | 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 |
|
|
1834
|
+
* | 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 |
|
|
1835
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression. The translation correctly identifies "key bag" rather than "keychain", avoiding ambiguity about the product type |
|
|
1836
|
+
*
|
|
1837
|
+
* @param tmpReq - PrepaidTextTranslateRequest
|
|
1838
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1839
|
+
* @returns PrepaidTextTranslateResponse
|
|
1840
|
+
*/
|
|
1841
|
+
async prepaidTextTranslateWithOptions(tmpReq, runtime) {
|
|
1842
|
+
tmpReq.validate();
|
|
1843
|
+
let request = new $_model.PrepaidTextTranslateShrinkRequest({});
|
|
1844
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1845
|
+
if (!$dara.isNull(tmpReq.sourceTextList)) {
|
|
1846
|
+
request.sourceTextListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sourceTextList, "SourceTextList", "json");
|
|
1847
|
+
}
|
|
1848
|
+
let body = {};
|
|
1849
|
+
if (!$dara.isNull(request.bizName)) {
|
|
1850
|
+
body["BizName"] = request.bizName;
|
|
1851
|
+
}
|
|
1852
|
+
if (!$dara.isNull(request.formatType)) {
|
|
1853
|
+
body["FormatType"] = request.formatType;
|
|
1854
|
+
}
|
|
1855
|
+
if (!$dara.isNull(request.glossary)) {
|
|
1856
|
+
body["Glossary"] = request.glossary;
|
|
1857
|
+
}
|
|
1858
|
+
if (!$dara.isNull(request.sourceLanguage)) {
|
|
1859
|
+
body["SourceLanguage"] = request.sourceLanguage;
|
|
1860
|
+
}
|
|
1861
|
+
if (!$dara.isNull(request.sourceTextListShrink)) {
|
|
1862
|
+
body["SourceTextList"] = request.sourceTextListShrink;
|
|
1863
|
+
}
|
|
1864
|
+
if (!$dara.isNull(request.targetLanguage)) {
|
|
1865
|
+
body["TargetLanguage"] = request.targetLanguage;
|
|
1866
|
+
}
|
|
1867
|
+
if (!$dara.isNull(request.translateScene)) {
|
|
1868
|
+
body["TranslateScene"] = request.translateScene;
|
|
1869
|
+
}
|
|
1870
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1871
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1872
|
+
});
|
|
1873
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1874
|
+
action: "PrepaidTextTranslate",
|
|
1875
|
+
version: "2026-04-28",
|
|
1876
|
+
protocol: "HTTPS",
|
|
1877
|
+
pathname: "/",
|
|
1878
|
+
method: "POST",
|
|
1879
|
+
authType: "AK",
|
|
1880
|
+
style: "RPC",
|
|
1881
|
+
reqBodyType: "formData",
|
|
1882
|
+
bodyType: "json",
|
|
1883
|
+
});
|
|
1884
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.PrepaidTextTranslateResponse({}));
|
|
1885
|
+
}
|
|
1886
|
+
/**
|
|
1887
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify the source language, automatic detection is performed.
|
|
1888
|
+
*
|
|
1889
|
+
* @remarks
|
|
1890
|
+
* ## Product Introduction
|
|
1891
|
+
* Marco MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify the source language, automatic detection is performed.
|
|
1892
|
+
* ## Common scenarios
|
|
1893
|
+
* - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending words in product titles into the target language, improving product visibility on e-commerce platforms.
|
|
1894
|
+
* - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco large model translation supports long text translation and HTML format, delivering excellent translation quality and format preservation.
|
|
1895
|
+
* - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
|
|
1896
|
+
* - Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
|
|
1897
|
+
* Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
|
|
1898
|
+
* ## Features
|
|
1899
|
+
* - **Supported language directions** Marco MT large model translation supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in Section 5.6.
|
|
1900
|
+
* - **Ultra-low hallucination rate and high-speed inference** Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it offers faster translation inference speed and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
|
|
1901
|
+
* - **Supported text format types** Currently supports text and html text types.
|
|
1902
|
+
* - **Translation intervention support** Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
|
|
1903
|
+
* ## Translation quality comparison
|
|
1904
|
+
* | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
|
|
1905
|
+
* |----------|---------------|-----------------------|-----------------------|---------------------|
|
|
1906
|
+
* | 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 |
|
|
1907
|
+
* | 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 |
|
|
1908
|
+
* | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more precise product subject expression. The translation correctly identifies "key bag" rather than "keychain", avoiding ambiguity about the product type |
|
|
1909
|
+
*
|
|
1910
|
+
* @param request - PrepaidTextTranslateRequest
|
|
1911
|
+
* @returns PrepaidTextTranslateResponse
|
|
1912
|
+
*/
|
|
1913
|
+
async prepaidTextTranslate(request) {
|
|
1914
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1915
|
+
return await this.prepaidTextTranslateWithOptions(request, runtime);
|
|
1916
|
+
}
|
|
1700
1917
|
/**
|
|
1701
1918
|
* Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
|
|
1702
1919
|
*
|
|
@@ -2289,7 +2506,25 @@ class Client extends openapi_core_1.default {
|
|
|
2289
2506
|
return await this.textTranslateWithOptions(request, runtime);
|
|
2290
2507
|
}
|
|
2291
2508
|
/**
|
|
2292
|
-
*
|
|
2509
|
+
* The E-commerce AI Video Generation Agent is designed for e-commerce merchants and platforms. Based on product main images, titles, selling points, and other information, it automatically generates 5–30 second product showcase short videos, helping customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P, supports both single-product quick calls and multi-product batch generation, catering to both daily operations and large-scale product content production needs. Currently, it covers all apparel categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to skincare, cosmetics, food and beverages, home appliances, and other core e-commerce categories.
|
|
2510
|
+
*
|
|
2511
|
+
* @remarks
|
|
2512
|
+
* # Scenarios
|
|
2513
|
+
* - Sellers/platforms batch-generate product short videos: Supports multiple video aspect ratios and sizes (3:4, 9:16), suitable for product detail page video slots, product homepage displays, information feed placements, short video content marketing, campaign material, and other scenarios.
|
|
2514
|
+
* - New product launches with rapid initial video material generation: When merchants have a large number of new products to list, they only need to upload product images and titles to quickly generate product showcase videos, model try-on videos, voiceover explanation videos, and other content, helping merchants rapidly complete material deployment during the launch phase.
|
|
2515
|
+
* - High-fidelity apparel display: Generates model showcase videos that closely resemble real commercial photography based on product main images, with optimized capabilities for silhouette reproduction, fabric texture preservation, accurate color rendering, and consistent detail stability. Supports common e-commerce display methods such as garment try-on, turning, walking, close-up shots, and multi-angle switching.
|
|
2516
|
+
* - High-quality commercial photography models: Includes 20+ built-in target audience model libraries covering plus-size women, plus-size men, swimwear, youthful style, smart casual commuter, young casual, business menswear, sports and fitness, and other body types, skin tones, and ethnicities. Supports standing poses, side views, walking displays, partial close-ups, and other commercial photography expressions.
|
|
2517
|
+
* - Standard product explanations and other high-frequency e-commerce scenarios: Suitable for standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, household cleaning products, and 3C digital products. Can quickly generate product explanation videos based on product main images, titles, selling point information, and explanation scripts.
|
|
2518
|
+
* - Multi-product, multi-selling-point testing to improve placement efficiency: For information feed advertising, short video placement, and content marketing scenarios, quickly generates multiple versions of video materials, enabling enterprises to validate conversion effects of different selling points and presentation formats at low cost, improving placement ROI.
|
|
2519
|
+
* # Features
|
|
2520
|
+
* - Fully automated end-to-end batch generation with zero Prompt threshold: Callers only need to provide product image URLs and titles. The system automatically completes the entire process from product understanding, storyboard planning to video generation, without manual Prompt writing, template selection, or repeated parameter tuning. Built-in multi-Agent capabilities including product understanding, visual quality inspection, script planning, and cinematography direction significantly lower the usage barrier.
|
|
2521
|
+
* - Highly stable generation with low discard rate: Uses a deterministic generation pipeline and multi-layer quality control mechanisms to output usable materials with fewer retries, reducing invalid generation and resource waste, making overall production costs more controllable.
|
|
2522
|
+
* - E-commerce-specific product fidelity capability: Built-in multi-round quality inspection Agent locks product state throughout video generation (e.g., zippers won\\"t be unzipped, sleeves won\\"t be lowered, prints won\\"t disappear), ensuring product consistency through multi-layer defense of "script rewriting + explicit constraint injection + failure-aware retry."
|
|
2523
|
+
* - Reference image priority + 6-axis consistency verification: Uses a Reference-Image-First generation paradigm with the original product image as the sole visual truth source. Automatically performs 6-dimensional VL diagnostics (color drift, pattern loss, contour deviation, structural addition/removal, model matching, stain detection), fundamentally preventing generated images from deviating from the product.
|
|
2524
|
+
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The Agent autonomously plans independent storyboards to showcase product effects in different scenarios. Also supports fixed scene mode for in-depth product presentation under a unified visual style.
|
|
2525
|
+
* - Cinematic camera movement capabilities: Built-in advanced camera modes including bullet time, Grammy-style slow motion, 360° orbital rotation, and full-body model rotation display, achieving deterministic output through segmented precise control.
|
|
2526
|
+
* - Model library and customization services: Built-in multi-type model resource library. Supports merchants specifying fixed models, customizing exclusive model personas, and long-term brand visual identity binding to ensure brand visual consistency.
|
|
2527
|
+
* - Adapted for high-frequency e-commerce content scenarios: Supports multiple resolutions such as 720P and 1080P, and multiple aspect ratios such as 3:4 and 9:16. Suitable for product detail page video slots, product homepage video displays, waterfall/information feed placements, campaign materials, and new product and promotional video generation.
|
|
2293
2528
|
*
|
|
2294
2529
|
* @param tmpReq - VideoGenerationRequest
|
|
2295
2530
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2335,7 +2570,25 @@ class Client extends openapi_core_1.default {
|
|
|
2335
2570
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoGenerationResponse({}));
|
|
2336
2571
|
}
|
|
2337
2572
|
/**
|
|
2338
|
-
*
|
|
2573
|
+
* The E-commerce AI Video Generation Agent is designed for e-commerce merchants and platforms. Based on product main images, titles, selling points, and other information, it automatically generates 5–30 second product showcase short videos, helping customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P, supports both single-product quick calls and multi-product batch generation, catering to both daily operations and large-scale product content production needs. Currently, it covers all apparel categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to skincare, cosmetics, food and beverages, home appliances, and other core e-commerce categories.
|
|
2574
|
+
*
|
|
2575
|
+
* @remarks
|
|
2576
|
+
* # Scenarios
|
|
2577
|
+
* - Sellers/platforms batch-generate product short videos: Supports multiple video aspect ratios and sizes (3:4, 9:16), suitable for product detail page video slots, product homepage displays, information feed placements, short video content marketing, campaign material, and other scenarios.
|
|
2578
|
+
* - New product launches with rapid initial video material generation: When merchants have a large number of new products to list, they only need to upload product images and titles to quickly generate product showcase videos, model try-on videos, voiceover explanation videos, and other content, helping merchants rapidly complete material deployment during the launch phase.
|
|
2579
|
+
* - High-fidelity apparel display: Generates model showcase videos that closely resemble real commercial photography based on product main images, with optimized capabilities for silhouette reproduction, fabric texture preservation, accurate color rendering, and consistent detail stability. Supports common e-commerce display methods such as garment try-on, turning, walking, close-up shots, and multi-angle switching.
|
|
2580
|
+
* - High-quality commercial photography models: Includes 20+ built-in target audience model libraries covering plus-size women, plus-size men, swimwear, youthful style, smart casual commuter, young casual, business menswear, sports and fitness, and other body types, skin tones, and ethnicities. Supports standing poses, side views, walking displays, partial close-ups, and other commercial photography expressions.
|
|
2581
|
+
* - Standard product explanations and other high-frequency e-commerce scenarios: Suitable for standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, household cleaning products, and 3C digital products. Can quickly generate product explanation videos based on product main images, titles, selling point information, and explanation scripts.
|
|
2582
|
+
* - Multi-product, multi-selling-point testing to improve placement efficiency: For information feed advertising, short video placement, and content marketing scenarios, quickly generates multiple versions of video materials, enabling enterprises to validate conversion effects of different selling points and presentation formats at low cost, improving placement ROI.
|
|
2583
|
+
* # Features
|
|
2584
|
+
* - Fully automated end-to-end batch generation with zero Prompt threshold: Callers only need to provide product image URLs and titles. The system automatically completes the entire process from product understanding, storyboard planning to video generation, without manual Prompt writing, template selection, or repeated parameter tuning. Built-in multi-Agent capabilities including product understanding, visual quality inspection, script planning, and cinematography direction significantly lower the usage barrier.
|
|
2585
|
+
* - Highly stable generation with low discard rate: Uses a deterministic generation pipeline and multi-layer quality control mechanisms to output usable materials with fewer retries, reducing invalid generation and resource waste, making overall production costs more controllable.
|
|
2586
|
+
* - E-commerce-specific product fidelity capability: Built-in multi-round quality inspection Agent locks product state throughout video generation (e.g., zippers won\\"t be unzipped, sleeves won\\"t be lowered, prints won\\"t disappear), ensuring product consistency through multi-layer defense of "script rewriting + explicit constraint injection + failure-aware retry."
|
|
2587
|
+
* - Reference image priority + 6-axis consistency verification: Uses a Reference-Image-First generation paradigm with the original product image as the sole visual truth source. Automatically performs 6-dimensional VL diagnostics (color drift, pattern loss, contour deviation, structural addition/removal, model matching, stain detection), fundamentally preventing generated images from deviating from the product.
|
|
2588
|
+
* - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5–30 seconds. The Agent autonomously plans independent storyboards to showcase product effects in different scenarios. Also supports fixed scene mode for in-depth product presentation under a unified visual style.
|
|
2589
|
+
* - Cinematic camera movement capabilities: Built-in advanced camera modes including bullet time, Grammy-style slow motion, 360° orbital rotation, and full-body model rotation display, achieving deterministic output through segmented precise control.
|
|
2590
|
+
* - Model library and customization services: Built-in multi-type model resource library. Supports merchants specifying fixed models, customizing exclusive model personas, and long-term brand visual identity binding to ensure brand visual consistency.
|
|
2591
|
+
* - Adapted for high-frequency e-commerce content scenarios: Supports multiple resolutions such as 720P and 1080P, and multiple aspect ratios such as 3:4 and 9:16. Suitable for product detail page video slots, product homepage video displays, waterfall/information feed placements, campaign materials, and new product and promotional video generation.
|
|
2339
2592
|
*
|
|
2340
2593
|
* @param request - VideoGenerationRequest
|
|
2341
2594
|
* @returns VideoGenerationResponse
|