@alicloud/aidge20260428 5.1.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.
Files changed (37) hide show
  1. package/dist/client.d.ts +111 -54
  2. package/dist/client.js +158 -54
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ImageTranslationPlusResponseBody.d.ts +4 -6
  5. package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -1
  6. package/dist/models/PrepaidTextTranslateRequest.d.ts +73 -0
  7. package/dist/models/PrepaidTextTranslateRequest.js +73 -0
  8. package/dist/models/PrepaidTextTranslateRequest.js.map +1 -0
  9. package/dist/models/PrepaidTextTranslateResponse.d.ts +19 -0
  10. package/dist/models/PrepaidTextTranslateResponse.js +69 -0
  11. package/dist/models/PrepaidTextTranslateResponse.js.map +1 -0
  12. package/dist/models/PrepaidTextTranslateResponseBody.d.ts +110 -0
  13. package/dist/models/PrepaidTextTranslateResponseBody.js +119 -0
  14. package/dist/models/PrepaidTextTranslateResponseBody.js.map +1 -0
  15. package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +73 -0
  16. package/dist/models/PrepaidTextTranslateShrinkRequest.js +70 -0
  17. package/dist/models/PrepaidTextTranslateShrinkRequest.js.map +1 -0
  18. package/dist/models/VideoGenerationRequest.d.ts +29 -0
  19. package/dist/models/VideoGenerationRequest.js.map +1 -1
  20. package/dist/models/VideoGenerationResponseBody.d.ts +23 -0
  21. package/dist/models/VideoGenerationResponseBody.js.map +1 -1
  22. package/dist/models/VideoGenerationShrinkRequest.d.ts +8 -0
  23. package/dist/models/VideoGenerationShrinkRequest.js.map +1 -1
  24. package/dist/models/model.d.ts +6 -0
  25. package/dist/models/model.js +15 -3
  26. package/dist/models/model.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/client.ts +168 -54
  29. package/src/models/ImageTranslationPlusResponseBody.ts +4 -6
  30. package/src/models/PrepaidTextTranslateRequest.ts +101 -0
  31. package/src/models/PrepaidTextTranslateResponse.ts +40 -0
  32. package/src/models/PrepaidTextTranslateResponseBody.ts +164 -0
  33. package/src/models/PrepaidTextTranslateShrinkRequest.ts +98 -0
  34. package/src/models/VideoGenerationRequest.ts +29 -0
  35. package/src/models/VideoGenerationResponseBody.ts +23 -0
  36. package/src/models/VideoGenerationShrinkRequest.ts +8 -0
  37. package/src/models/model.ts +6 -0
package/src/client.ts CHANGED
@@ -1319,15 +1319,15 @@ export default class Client extends OpenApi {
1319
1319
  }
1320
1320
 
1321
1321
  /**
1322
- * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following 8 language pairs, with more to be supported in the future.
1322
+ * 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.
1323
1323
  *
1324
1324
  * @remarks
1325
1325
  * ## Product Introduction
1326
- * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following language pairs, with more to be supported in the future.
1326
+ * 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.
1327
1327
  * Supported language pairs:
1328
- * | **No.** | **Source Language** | | **Target Language** | |
1328
+ * | **No.** | **Source language** | | **Target language** | |
1329
1329
  * | --- | --- | --- | --- | --- |
1330
- * | | Language Code | Language Name | Language Code | Language Name |
1330
+ * | | Language code | Language name | Language code | Language name |
1331
1331
  * | 1 | en | English | ar | Arabic |
1332
1332
  * | 2 | en | English | id | Indonesian |
1333
1333
  * | 3 | en | English | th | Thai |
@@ -1339,15 +1339,15 @@ export default class Client extends OpenApi {
1339
1339
  * | 9 | en | English | es | Spanish |
1340
1340
  * | 10 | en | English | fr | French |
1341
1341
  * | 11 | en | English | de | German |
1342
- * | 12 | en | English | pl | Polish |.
1343
- * ## Common scenarios
1342
+ * | 12 | en | English | pl | Polish |
1343
+ * ## Scenarios
1344
1344
  * Main product images and detail images for cross-border e-commerce.
1345
- * ## Functions and features
1346
- * * **Product body information protection**: Supports custom selection of whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
1345
+ * ## Features
1346
+ * * **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.
1347
1347
  *
1348
- * * **Brand name protection**: Supports custom selection of whether to translate brand names on images. This helps protect brand name information from being translated.
1348
+ * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
1349
1349
  *
1350
- * * **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1350
+ * * **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.
1351
1351
  *
1352
1352
  * @param request - ImageTranslationPlusRequest
1353
1353
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1402,15 +1402,15 @@ export default class Client extends OpenApi {
1402
1402
  }
1403
1403
 
1404
1404
  /**
1405
- * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following 8 language pairs, with more to be supported in the future.
1405
+ * 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.
1406
1406
  *
1407
1407
  * @remarks
1408
1408
  * ## Product Introduction
1409
- * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following language pairs, with more to be supported in the future.
1409
+ * 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.
1410
1410
  * Supported language pairs:
1411
- * | **No.** | **Source Language** | | **Target Language** | |
1411
+ * | **No.** | **Source language** | | **Target language** | |
1412
1412
  * | --- | --- | --- | --- | --- |
1413
- * | | Language Code | Language Name | Language Code | Language Name |
1413
+ * | | Language code | Language name | Language code | Language name |
1414
1414
  * | 1 | en | English | ar | Arabic |
1415
1415
  * | 2 | en | English | id | Indonesian |
1416
1416
  * | 3 | en | English | th | Thai |
@@ -1422,15 +1422,15 @@ export default class Client extends OpenApi {
1422
1422
  * | 9 | en | English | es | Spanish |
1423
1423
  * | 10 | en | English | fr | French |
1424
1424
  * | 11 | en | English | de | German |
1425
- * | 12 | en | English | pl | Polish |.
1426
- * ## Common scenarios
1425
+ * | 12 | en | English | pl | Polish |
1426
+ * ## Scenarios
1427
1427
  * Main product images and detail images for cross-border e-commerce.
1428
- * ## Functions and features
1429
- * * **Product body information protection**: Supports custom selection of whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
1428
+ * ## Features
1429
+ * * **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.
1430
1430
  *
1431
- * * **Brand name protection**: Supports custom selection of whether to translate brand names on images. This helps protect brand name information from being translated.
1431
+ * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
1432
1432
  *
1433
- * * **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1433
+ * * **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.
1434
1434
  *
1435
1435
  * @param request - ImageTranslationPlusRequest
1436
1436
  * @returns ImageTranslationPlusResponse
@@ -1914,6 +1914,120 @@ export default class Client extends OpenApi {
1914
1914
  return await this.packageWeightSizeCheckWithOptions(request, runtime);
1915
1915
  }
1916
1916
 
1917
+ /**
1918
+ * 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.
1919
+ *
1920
+ * @remarks
1921
+ * ## Product Introduction
1922
+ * 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.
1923
+ * ## Common scenarios
1924
+ * - 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.
1925
+ * - 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.
1926
+ * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
1927
+ * - 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.
1928
+ * Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
1929
+ * ## Features
1930
+ * - **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.
1931
+ * - **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.
1932
+ * - **Supported text format types** Currently supports text and html text types.
1933
+ * - **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.
1934
+ * ## Translation quality comparison
1935
+ * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
1936
+ * |----------|---------------|-----------------------|-----------------------|---------------------|
1937
+ * | 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 |
1938
+ * | 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 |
1939
+ * | 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 |
1940
+ *
1941
+ * @param tmpReq - PrepaidTextTranslateRequest
1942
+ * @param runtime - runtime options for this request RuntimeOptions
1943
+ * @returns PrepaidTextTranslateResponse
1944
+ */
1945
+ async prepaidTextTranslateWithOptions(tmpReq: $_model.PrepaidTextTranslateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PrepaidTextTranslateResponse> {
1946
+ tmpReq.validate();
1947
+ let request = new $_model.PrepaidTextTranslateShrinkRequest({ });
1948
+ OpenApiUtil.convert(tmpReq, request);
1949
+ if (!$dara.isNull(tmpReq.sourceTextList)) {
1950
+ request.sourceTextListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sourceTextList, "SourceTextList", "json");
1951
+ }
1952
+
1953
+ let body : {[key: string ]: any} = { };
1954
+ if (!$dara.isNull(request.bizName)) {
1955
+ body["BizName"] = request.bizName;
1956
+ }
1957
+
1958
+ if (!$dara.isNull(request.formatType)) {
1959
+ body["FormatType"] = request.formatType;
1960
+ }
1961
+
1962
+ if (!$dara.isNull(request.glossary)) {
1963
+ body["Glossary"] = request.glossary;
1964
+ }
1965
+
1966
+ if (!$dara.isNull(request.sourceLanguage)) {
1967
+ body["SourceLanguage"] = request.sourceLanguage;
1968
+ }
1969
+
1970
+ if (!$dara.isNull(request.sourceTextListShrink)) {
1971
+ body["SourceTextList"] = request.sourceTextListShrink;
1972
+ }
1973
+
1974
+ if (!$dara.isNull(request.targetLanguage)) {
1975
+ body["TargetLanguage"] = request.targetLanguage;
1976
+ }
1977
+
1978
+ if (!$dara.isNull(request.translateScene)) {
1979
+ body["TranslateScene"] = request.translateScene;
1980
+ }
1981
+
1982
+ let req = new $OpenApiUtil.OpenApiRequest({
1983
+ body: OpenApiUtil.parseToMap(body),
1984
+ });
1985
+ let params = new $OpenApiUtil.Params({
1986
+ action: "PrepaidTextTranslate",
1987
+ version: "2026-04-28",
1988
+ protocol: "HTTPS",
1989
+ pathname: "/",
1990
+ method: "POST",
1991
+ authType: "AK",
1992
+ style: "RPC",
1993
+ reqBodyType: "formData",
1994
+ bodyType: "json",
1995
+ });
1996
+ return $dara.cast<$_model.PrepaidTextTranslateResponse>(await this.callApi(params, req, runtime), new $_model.PrepaidTextTranslateResponse({}));
1997
+ }
1998
+
1999
+ /**
2000
+ * 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.
2001
+ *
2002
+ * @remarks
2003
+ * ## Product Introduction
2004
+ * 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.
2005
+ * ## Common scenarios
2006
+ * - 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.
2007
+ * - 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.
2008
+ * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and parameters.
2009
+ * - 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.
2010
+ * Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
2011
+ * ## Features
2012
+ * - **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.
2013
+ * - **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.
2014
+ * - **Supported text format types** Currently supports text and html text types.
2015
+ * - **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.
2016
+ * ## Translation quality comparison
2017
+ * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
2018
+ * |----------|---------------|-----------------------|-----------------------|---------------------|
2019
+ * | 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 |
2020
+ * | 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 |
2021
+ * | 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 |
2022
+ *
2023
+ * @param request - PrepaidTextTranslateRequest
2024
+ * @returns PrepaidTextTranslateResponse
2025
+ */
2026
+ async prepaidTextTranslate(request: $_model.PrepaidTextTranslateRequest): Promise<$_model.PrepaidTextTranslateResponse> {
2027
+ let runtime = new $dara.RuntimeOptions({ });
2028
+ return await this.prepaidTextTranslateWithOptions(request, runtime);
2029
+ }
2030
+
1917
2031
  /**
1918
2032
  * Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
1919
2033
  *
@@ -2533,25 +2647,25 @@ export default class Client extends OpenApi {
2533
2647
  }
2534
2648
 
2535
2649
  /**
2536
- * 电商视频生成(异步提交)
2650
+ * 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.
2537
2651
  *
2538
2652
  * @remarks
2539
- * # 适用场景
2540
- * - 卖家/平台批量生成商品短视频:支持多种视频比例与尺寸(3:4、9:16),适配商品详情页视频位、商品主页展示、信息流投放、短视频种草、活动会场素材等场景。
2541
- * - 商品上新,快速生成首批视频素材:当商家有大量新品集中上架时,只需上传商品图、商品标题等基础信息,即可快速生成商品展示视频、模特上身视频、口播讲解视频等内容,帮助商家在上新阶段迅速完成素材铺设。
2542
- * - 高保真服饰展示:基于商品主图生成更贴近真实商拍效果的模特展示视频,重点优化版型还原、面料纹理保留、颜色准确呈现、细节稳定一致等能力,支持服装上身、转身、走动、近景特写、多角度切换等常见电商展示方式。
2543
- * - 生成高质量商拍模特:内置 20+ 套目标受众模特库,覆盖大码女性、大码男性、泳装、少女风、轻熟通勤、青年休闲、商务男装、运动健身等多体型、多肤色、多人种模特,支持站姿展示、侧身展示、走动展示、局部特写等多种商拍表达方式。
2544
- * - 标品讲解等高频电商场景:适用于护肤品、化妆品、个护小家电、食品饮料、家清日用、3C 数码等标准化商品类目,可基于商品主图、标题、卖点信息和讲解脚本快速生成商品讲解视频。
2545
- * - 多商品、多卖点测试,提升投放效率:面向信息流广告、短视频投放和内容种草场景,可快速生成多个版本的视频素材,便于企业低成本验证不同卖点与表现形式的转化效果,提升投放 ROI。
2546
- * # 功能介绍
2547
- * - 全自动端到端批量生成,零 Prompt 门槛:调用方仅需传入商品图片 URL 与标题,系统自动完成从商品理解、分镜规划到视频生成的全流程处理,无需人工编写 Prompt、选择模板或反复调参。内置商品理解、画面质检、脚本规划、编导运镜等多 Agent,大幅降低使用门槛。
2548
- * - 高稳定生成,低废片率:采用确定性生成流程与多层质量控制机制,可在更少重试次数下输出可用素材,减少无效生成和资源浪费,整体生产成本更可控。
2549
- * - 电商专属商品保真能力:内置多轮质检 Agent,在视频生成全程锁定商品状态(如拉链不会被拉开、袖子不会被放下、印花不会消失),通过「脚本改写 + 显式约束注入 + 失败感知重试」多层防御确保商品一致性。
2550
- * - 参考图优先 + 6 轴一致性校验:采用 Reference-Image-First 生成范式,以原商品图作为视觉唯一事实源,自动执行 6 维度 VL 诊断(颜色漂移、图案缺失、轮廓偏移、结构增减、模特匹配、脏污检测),从机制上杜绝生成图与商品不像的问题。
2551
- * - 灵活的分镜编排与时长控制:支持 5–30 秒可调视频时长;Agent 自主规划独立分镜展示商品在不同场景下的效果;也支持固定场景模式,在统一视觉风格下深度展示产品调性。
2552
- * - 电影级运镜能力:内置子弹时间、格莱美慢镜头、360° 环绕旋转、模特全身旋转展示等高级运镜模式,通过分段精准控制实现确定性产出。
2553
- * - 模特库与定制化服务:内置多类型模特资源库,支持商家指定固定模特、定制专属模特形象、长期绑定品牌视觉人设,保证品牌视觉统一性。
2554
- * - 适配高频电商内容场景:支持 720P、1080P 等多种清晰度及 3:4、9:16等多种长宽比,适配商品详情页视频位、商品主页视频展示、瀑布流/信息流投放、活动会场素材、上新与促销视频生成。
2653
+ * # Scenarios
2654
+ * - 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.
2655
+ * - 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.
2656
+ * - 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.
2657
+ * - 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.
2658
+ * - 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.
2659
+ * - 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.
2660
+ * # Features
2661
+ * - 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.
2662
+ * - 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.
2663
+ * - 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."
2664
+ * - 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.
2665
+ * - 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.
2666
+ * - 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.
2667
+ * - 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.
2668
+ * - 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.
2555
2669
  *
2556
2670
  * @param tmpReq - VideoGenerationRequest
2557
2671
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2604,25 +2718,25 @@ export default class Client extends OpenApi {
2604
2718
  }
2605
2719
 
2606
2720
  /**
2607
- * 电商视频生成(异步提交)
2721
+ * 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.
2608
2722
  *
2609
2723
  * @remarks
2610
- * # 适用场景
2611
- * - 卖家/平台批量生成商品短视频:支持多种视频比例与尺寸(3:4、9:16),适配商品详情页视频位、商品主页展示、信息流投放、短视频种草、活动会场素材等场景。
2612
- * - 商品上新,快速生成首批视频素材:当商家有大量新品集中上架时,只需上传商品图、商品标题等基础信息,即可快速生成商品展示视频、模特上身视频、口播讲解视频等内容,帮助商家在上新阶段迅速完成素材铺设。
2613
- * - 高保真服饰展示:基于商品主图生成更贴近真实商拍效果的模特展示视频,重点优化版型还原、面料纹理保留、颜色准确呈现、细节稳定一致等能力,支持服装上身、转身、走动、近景特写、多角度切换等常见电商展示方式。
2614
- * - 生成高质量商拍模特:内置 20+ 套目标受众模特库,覆盖大码女性、大码男性、泳装、少女风、轻熟通勤、青年休闲、商务男装、运动健身等多体型、多肤色、多人种模特,支持站姿展示、侧身展示、走动展示、局部特写等多种商拍表达方式。
2615
- * - 标品讲解等高频电商场景:适用于护肤品、化妆品、个护小家电、食品饮料、家清日用、3C 数码等标准化商品类目,可基于商品主图、标题、卖点信息和讲解脚本快速生成商品讲解视频。
2616
- * - 多商品、多卖点测试,提升投放效率:面向信息流广告、短视频投放和内容种草场景,可快速生成多个版本的视频素材,便于企业低成本验证不同卖点与表现形式的转化效果,提升投放 ROI。
2617
- * # 功能介绍
2618
- * - 全自动端到端批量生成,零 Prompt 门槛:调用方仅需传入商品图片 URL 与标题,系统自动完成从商品理解、分镜规划到视频生成的全流程处理,无需人工编写 Prompt、选择模板或反复调参。内置商品理解、画面质检、脚本规划、编导运镜等多 Agent,大幅降低使用门槛。
2619
- * - 高稳定生成,低废片率:采用确定性生成流程与多层质量控制机制,可在更少重试次数下输出可用素材,减少无效生成和资源浪费,整体生产成本更可控。
2620
- * - 电商专属商品保真能力:内置多轮质检 Agent,在视频生成全程锁定商品状态(如拉链不会被拉开、袖子不会被放下、印花不会消失),通过「脚本改写 + 显式约束注入 + 失败感知重试」多层防御确保商品一致性。
2621
- * - 参考图优先 + 6 轴一致性校验:采用 Reference-Image-First 生成范式,以原商品图作为视觉唯一事实源,自动执行 6 维度 VL 诊断(颜色漂移、图案缺失、轮廓偏移、结构增减、模特匹配、脏污检测),从机制上杜绝生成图与商品不像的问题。
2622
- * - 灵活的分镜编排与时长控制:支持 5–30 秒可调视频时长;Agent 自主规划独立分镜展示商品在不同场景下的效果;也支持固定场景模式,在统一视觉风格下深度展示产品调性。
2623
- * - 电影级运镜能力:内置子弹时间、格莱美慢镜头、360° 环绕旋转、模特全身旋转展示等高级运镜模式,通过分段精准控制实现确定性产出。
2624
- * - 模特库与定制化服务:内置多类型模特资源库,支持商家指定固定模特、定制专属模特形象、长期绑定品牌视觉人设,保证品牌视觉统一性。
2625
- * - 适配高频电商内容场景:支持 720P、1080P 等多种清晰度及 3:4、9:16等多种长宽比,适配商品详情页视频位、商品主页视频展示、瀑布流/信息流投放、活动会场素材、上新与促销视频生成。
2724
+ * # Scenarios
2725
+ * - 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.
2726
+ * - 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.
2727
+ * - 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.
2728
+ * - 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.
2729
+ * - 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.
2730
+ * - 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.
2731
+ * # Features
2732
+ * - 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.
2733
+ * - 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.
2734
+ * - 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."
2735
+ * - 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.
2736
+ * - 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.
2737
+ * - 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.
2738
+ * - 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.
2739
+ * - 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.
2626
2740
  *
2627
2741
  * @param request - VideoGenerationRequest
2628
2742
  * @returns VideoGenerationResponse
@@ -35,7 +35,7 @@ export class ImageTranslationPlusResponseBodyData extends $dara.Model {
35
35
  export class ImageTranslationPlusResponseBody extends $dara.Model {
36
36
  /**
37
37
  * @remarks
38
- * The error code. This parameter is not returned if the call is successful.
38
+ * The error code. This parameter is not returned for successful calls.
39
39
  *
40
40
  * @example
41
41
  * 200
@@ -43,12 +43,12 @@ export class ImageTranslationPlusResponseBody extends $dara.Model {
43
43
  code?: string;
44
44
  /**
45
45
  * @remarks
46
- * The submit status of the asynchronous task.
46
+ * The asynchronous task submit status.
47
47
  */
48
48
  data?: ImageTranslationPlusResponseBodyData;
49
49
  /**
50
50
  * @remarks
51
- * The error message. This parameter is not returned if the call is successful.
51
+ * The error message. This parameter is not returned for successful calls.
52
52
  *
53
53
  * @example
54
54
  * OK
@@ -64,9 +64,7 @@ export class ImageTranslationPlusResponseBody extends $dara.Model {
64
64
  requestId?: string;
65
65
  /**
66
66
  * @remarks
67
- * Indicates whether the call is successful. Valid values:
68
- * - true: The call is successful.
69
- * - false: The call failed.
67
+ * Indicates whether the call is successful. Valid values: true: successful. false: failed.
70
68
  *
71
69
  * @example
72
70
  * True
@@ -0,0 +1,101 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class PrepaidTextTranslateRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or an invalid value is passed, the general translation strategy is used by default.
9
+ *
10
+ * @example
11
+ * Alibaba-商品
12
+ */
13
+ bizName?: string;
14
+ /**
15
+ * @remarks
16
+ * The format type of the source text. This parameter is optional. Supports text (plain text format) and html (web page format, preserving HTML tags).
17
+ *
18
+ * @example
19
+ * text
20
+ */
21
+ formatType?: string;
22
+ /**
23
+ * @remarks
24
+ * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the glossary ID is empty, the translation result is not modified.
25
+ *
26
+ * @example
27
+ * custom_glossary
28
+ */
29
+ glossary?: string;
30
+ /**
31
+ * @remarks
32
+ * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
33
+ *
34
+ * @example
35
+ * auto
36
+ */
37
+ sourceLanguage?: string;
38
+ /**
39
+ * @remarks
40
+ * The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
41
+ *
42
+ * This parameter is required.
43
+ *
44
+ * @example
45
+ * ["Hello world"]
46
+ */
47
+ sourceTextList?: string[];
48
+ /**
49
+ * @remarks
50
+ * The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
51
+ *
52
+ * This parameter is required.
53
+ *
54
+ * @example
55
+ * zh
56
+ */
57
+ targetLanguage?: string;
58
+ /**
59
+ * @remarks
60
+ * The format of the translation text. html (web page format. This setting processes both the source text and translated text in HTML format) or text (text format. This setting processes both the source text and translated result as plain text without format processing).
61
+ *
62
+ * @example
63
+ * e-commerce-title
64
+ */
65
+ translateScene?: string;
66
+ static names(): { [key: string]: string } {
67
+ return {
68
+ bizName: 'BizName',
69
+ formatType: 'FormatType',
70
+ glossary: 'Glossary',
71
+ sourceLanguage: 'SourceLanguage',
72
+ sourceTextList: 'SourceTextList',
73
+ targetLanguage: 'TargetLanguage',
74
+ translateScene: 'TranslateScene',
75
+ };
76
+ }
77
+
78
+ static types(): { [key: string]: any } {
79
+ return {
80
+ bizName: 'string',
81
+ formatType: 'string',
82
+ glossary: 'string',
83
+ sourceLanguage: 'string',
84
+ sourceTextList: { 'type': 'array', 'itemType': 'string' },
85
+ targetLanguage: 'string',
86
+ translateScene: 'string',
87
+ };
88
+ }
89
+
90
+ validate() {
91
+ if(Array.isArray(this.sourceTextList)) {
92
+ $dara.Model.validateArray(this.sourceTextList);
93
+ }
94
+ super.validate();
95
+ }
96
+
97
+ constructor(map?: { [key: string]: any }) {
98
+ super(map);
99
+ }
100
+ }
101
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { PrepaidTextTranslateResponseBody } from "./PrepaidTextTranslateResponseBody";
4
+
5
+
6
+ export class PrepaidTextTranslateResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: PrepaidTextTranslateResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: PrepaidTextTranslateResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+