@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.
Files changed (46) hide show
  1. package/dist/client.d.ts +166 -2
  2. package/dist/client.js +255 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ImageTranslationPlusRequest.d.ts +75 -0
  5. package/dist/models/ImageTranslationPlusRequest.js +70 -0
  6. package/dist/models/ImageTranslationPlusRequest.js.map +1 -0
  7. package/dist/models/ImageTranslationPlusResponse.d.ts +19 -0
  8. package/dist/models/ImageTranslationPlusResponse.js +69 -0
  9. package/dist/models/ImageTranslationPlusResponse.js.map +1 -0
  10. package/dist/models/ImageTranslationPlusResponseBody.d.ts +70 -0
  11. package/dist/models/ImageTranslationPlusResponseBody.js +88 -0
  12. package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -0
  13. package/dist/models/PrepaidTextTranslateRequest.d.ts +73 -0
  14. package/dist/models/PrepaidTextTranslateRequest.js +73 -0
  15. package/dist/models/PrepaidTextTranslateRequest.js.map +1 -0
  16. package/dist/models/PrepaidTextTranslateResponse.d.ts +19 -0
  17. package/dist/models/PrepaidTextTranslateResponse.js +69 -0
  18. package/dist/models/PrepaidTextTranslateResponse.js.map +1 -0
  19. package/dist/models/PrepaidTextTranslateResponseBody.d.ts +110 -0
  20. package/dist/models/PrepaidTextTranslateResponseBody.js +119 -0
  21. package/dist/models/PrepaidTextTranslateResponseBody.js.map +1 -0
  22. package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +73 -0
  23. package/dist/models/PrepaidTextTranslateShrinkRequest.js +70 -0
  24. package/dist/models/PrepaidTextTranslateShrinkRequest.js.map +1 -0
  25. package/dist/models/VideoGenerationRequest.d.ts +50 -0
  26. package/dist/models/VideoGenerationRequest.js.map +1 -1
  27. package/dist/models/VideoGenerationResponseBody.d.ts +31 -4
  28. package/dist/models/VideoGenerationResponseBody.js.map +1 -1
  29. package/dist/models/VideoGenerationShrinkRequest.d.ts +8 -0
  30. package/dist/models/VideoGenerationShrinkRequest.js.map +1 -1
  31. package/dist/models/model.d.ts +10 -0
  32. package/dist/models/model.js +23 -3
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +274 -2
  36. package/src/models/ImageTranslationPlusRequest.ts +100 -0
  37. package/src/models/ImageTranslationPlusResponse.ts +40 -0
  38. package/src/models/ImageTranslationPlusResponseBody.ts +104 -0
  39. package/src/models/PrepaidTextTranslateRequest.ts +101 -0
  40. package/src/models/PrepaidTextTranslateResponse.ts +40 -0
  41. package/src/models/PrepaidTextTranslateResponseBody.ts +164 -0
  42. package/src/models/PrepaidTextTranslateShrinkRequest.ts +98 -0
  43. package/src/models/VideoGenerationRequest.ts +50 -0
  44. package/src/models/VideoGenerationResponseBody.ts +31 -4
  45. package/src/models/VideoGenerationShrinkRequest.ts +8 -0
  46. package/src/models/model.ts +10 -0
package/src/client.ts CHANGED
@@ -1318,6 +1318,128 @@ export default class Client extends OpenApi {
1318
1318
  return await this.imageRemoveWithOptions(request, runtime);
1319
1319
  }
1320
1320
 
1321
+ /**
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
+ *
1324
+ * @remarks
1325
+ * ## Product Introduction
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
+ * Supported language pairs:
1328
+ * | **No.** | **Source language** | | **Target language** | |
1329
+ * | --- | --- | --- | --- | --- |
1330
+ * | | Language code | Language name | Language code | Language name |
1331
+ * | 1 | en | English | ar | Arabic |
1332
+ * | 2 | en | English | id | Indonesian |
1333
+ * | 3 | en | English | th | Thai |
1334
+ * | 4 | en | English | ko | Korean |
1335
+ * | 5 | en | English | ja | Japanese |
1336
+ * | 6 | en | English | vi | Vietnamese |
1337
+ * | 7 | en | English | ru | Russian |
1338
+ * | 8 | en | English | tl | Filipino |
1339
+ * | 9 | en | English | es | Spanish |
1340
+ * | 10 | en | English | fr | French |
1341
+ * | 11 | en | English | de | German |
1342
+ * | 12 | en | English | pl | Polish |
1343
+ * ## Scenarios
1344
+ * Main product images and detail images for cross-border e-commerce.
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
+ *
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
+ *
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
+ *
1352
+ * @param request - ImageTranslationPlusRequest
1353
+ * @param runtime - runtime options for this request RuntimeOptions
1354
+ * @returns ImageTranslationPlusResponse
1355
+ */
1356
+ async imageTranslationPlusWithOptions(request: $_model.ImageTranslationPlusRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationPlusResponse> {
1357
+ request.validate();
1358
+ let body : {[key: string ]: any} = { };
1359
+ if (!$dara.isNull(request.glossary)) {
1360
+ body["Glossary"] = request.glossary;
1361
+ }
1362
+
1363
+ if (!$dara.isNull(request.imageUrl)) {
1364
+ body["ImageUrl"] = request.imageUrl;
1365
+ }
1366
+
1367
+ if (!$dara.isNull(request.includingProductArea)) {
1368
+ body["IncludingProductArea"] = request.includingProductArea;
1369
+ }
1370
+
1371
+ if (!$dara.isNull(request.sourceLanguage)) {
1372
+ body["SourceLanguage"] = request.sourceLanguage;
1373
+ }
1374
+
1375
+ if (!$dara.isNull(request.targetLanguage)) {
1376
+ body["TargetLanguage"] = request.targetLanguage;
1377
+ }
1378
+
1379
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
1380
+ body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
1381
+ }
1382
+
1383
+ if (!$dara.isNull(request.useImageEditor)) {
1384
+ body["UseImageEditor"] = request.useImageEditor;
1385
+ }
1386
+
1387
+ let req = new $OpenApiUtil.OpenApiRequest({
1388
+ body: OpenApiUtil.parseToMap(body),
1389
+ });
1390
+ let params = new $OpenApiUtil.Params({
1391
+ action: "ImageTranslationPlus",
1392
+ version: "2026-04-28",
1393
+ protocol: "HTTPS",
1394
+ pathname: "/",
1395
+ method: "POST",
1396
+ authType: "AK",
1397
+ style: "RPC",
1398
+ reqBodyType: "formData",
1399
+ bodyType: "json",
1400
+ });
1401
+ return $dara.cast<$_model.ImageTranslationPlusResponse>(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusResponse({}));
1402
+ }
1403
+
1404
+ /**
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
+ *
1407
+ * @remarks
1408
+ * ## Product Introduction
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
+ * Supported language pairs:
1411
+ * | **No.** | **Source language** | | **Target language** | |
1412
+ * | --- | --- | --- | --- | --- |
1413
+ * | | Language code | Language name | Language code | Language name |
1414
+ * | 1 | en | English | ar | Arabic |
1415
+ * | 2 | en | English | id | Indonesian |
1416
+ * | 3 | en | English | th | Thai |
1417
+ * | 4 | en | English | ko | Korean |
1418
+ * | 5 | en | English | ja | Japanese |
1419
+ * | 6 | en | English | vi | Vietnamese |
1420
+ * | 7 | en | English | ru | Russian |
1421
+ * | 8 | en | English | tl | Filipino |
1422
+ * | 9 | en | English | es | Spanish |
1423
+ * | 10 | en | English | fr | French |
1424
+ * | 11 | en | English | de | German |
1425
+ * | 12 | en | English | pl | Polish |
1426
+ * ## Scenarios
1427
+ * Main product images and detail images for cross-border e-commerce.
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
+ *
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
+ *
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
+ *
1435
+ * @param request - ImageTranslationPlusRequest
1436
+ * @returns ImageTranslationPlusResponse
1437
+ */
1438
+ async imageTranslationPlus(request: $_model.ImageTranslationPlusRequest): Promise<$_model.ImageTranslationPlusResponse> {
1439
+ let runtime = new $dara.RuntimeOptions({ });
1440
+ return await this.imageTranslationPlusWithOptions(request, runtime);
1441
+ }
1442
+
1321
1443
  /**
1322
1444
  * 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.
1323
1445
  *
@@ -1792,6 +1914,120 @@ export default class Client extends OpenApi {
1792
1914
  return await this.packageWeightSizeCheckWithOptions(request, runtime);
1793
1915
  }
1794
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
+
1795
2031
  /**
1796
2032
  * Queries the result of an asynchronous task. The API name on the POP gateway is QueryAsyncTaskResult.
1797
2033
  *
@@ -2411,7 +2647,25 @@ export default class Client extends OpenApi {
2411
2647
  }
2412
2648
 
2413
2649
  /**
2414
- * 电商视频生成(异步提交)
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.
2651
+ *
2652
+ * @remarks
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.
2415
2669
  *
2416
2670
  * @param tmpReq - VideoGenerationRequest
2417
2671
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2464,7 +2718,25 @@ export default class Client extends OpenApi {
2464
2718
  }
2465
2719
 
2466
2720
  /**
2467
- * 电商视频生成(异步提交)
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.
2722
+ *
2723
+ * @remarks
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.
2468
2740
  *
2469
2741
  * @param request - VideoGenerationRequest
2470
2742
  * @returns VideoGenerationResponse
@@ -0,0 +1,100 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ImageTranslationPlusRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the intervention glossary. This parameter is optional.
9
+ *
10
+ * @example
11
+ * glossary-001
12
+ */
13
+ glossary?: string;
14
+ /**
15
+ * @remarks
16
+ * The URL of the original image. This parameter is required.
17
+ *
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * https://img.alicdn.com/example.png
22
+ */
23
+ imageUrl?: string;
24
+ /**
25
+ * @remarks
26
+ * Specifies whether to translate text on the product body. This parameter is optional. Default value: false.
27
+ *
28
+ * @example
29
+ * false
30
+ */
31
+ includingProductArea?: boolean;
32
+ /**
33
+ * @remarks
34
+ * The source language. This parameter is required.
35
+ *
36
+ * This parameter is required.
37
+ *
38
+ * @example
39
+ * zh
40
+ */
41
+ sourceLanguage?: string;
42
+ /**
43
+ * @remarks
44
+ * The target language. This parameter is required.
45
+ *
46
+ * This parameter is required.
47
+ *
48
+ * @example
49
+ * en
50
+ */
51
+ targetLanguage?: string;
52
+ /**
53
+ * @remarks
54
+ * Specifies whether to translate brand text on the product. This parameter is optional. Default value: false.
55
+ *
56
+ * @example
57
+ * false
58
+ */
59
+ translatingBrandInTheProduct?: boolean;
60
+ /**
61
+ * @remarks
62
+ * Specifies whether to use the image translation editor protocol. This parameter is optional.
63
+ *
64
+ * @example
65
+ * false
66
+ */
67
+ useImageEditor?: boolean;
68
+ static names(): { [key: string]: string } {
69
+ return {
70
+ glossary: 'Glossary',
71
+ imageUrl: 'ImageUrl',
72
+ includingProductArea: 'IncludingProductArea',
73
+ sourceLanguage: 'SourceLanguage',
74
+ targetLanguage: 'TargetLanguage',
75
+ translatingBrandInTheProduct: 'TranslatingBrandInTheProduct',
76
+ useImageEditor: 'UseImageEditor',
77
+ };
78
+ }
79
+
80
+ static types(): { [key: string]: any } {
81
+ return {
82
+ glossary: 'string',
83
+ imageUrl: 'string',
84
+ includingProductArea: 'boolean',
85
+ sourceLanguage: 'string',
86
+ targetLanguage: 'string',
87
+ translatingBrandInTheProduct: 'boolean',
88
+ useImageEditor: 'boolean',
89
+ };
90
+ }
91
+
92
+ validate() {
93
+ super.validate();
94
+ }
95
+
96
+ constructor(map?: { [key: string]: any }) {
97
+ super(map);
98
+ }
99
+ }
100
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ImageTranslationPlusResponseBody } from "./ImageTranslationPlusResponseBody";
4
+
5
+
6
+ export class ImageTranslationPlusResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ImageTranslationPlusResponseBody;
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: ImageTranslationPlusResponseBody,
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
+
@@ -0,0 +1,104 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ImageTranslationPlusResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The asynchronous task ID. Use the queryTaskResult API to poll for results.
9
+ *
10
+ * @example
11
+ * task-abc123
12
+ */
13
+ taskId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ taskId: 'TaskId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ taskId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
35
+ export class ImageTranslationPlusResponseBody extends $dara.Model {
36
+ /**
37
+ * @remarks
38
+ * The error code. This parameter is not returned for successful calls.
39
+ *
40
+ * @example
41
+ * 200
42
+ */
43
+ code?: string;
44
+ /**
45
+ * @remarks
46
+ * The asynchronous task submit status.
47
+ */
48
+ data?: ImageTranslationPlusResponseBodyData;
49
+ /**
50
+ * @remarks
51
+ * The error message. This parameter is not returned for successful calls.
52
+ *
53
+ * @example
54
+ * OK
55
+ */
56
+ message?: string;
57
+ /**
58
+ * @remarks
59
+ * Id of the request
60
+ *
61
+ * @example
62
+ * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
63
+ */
64
+ requestId?: string;
65
+ /**
66
+ * @remarks
67
+ * Indicates whether the call is successful. Valid values: true: successful. false: failed.
68
+ *
69
+ * @example
70
+ * True
71
+ */
72
+ success?: boolean;
73
+ static names(): { [key: string]: string } {
74
+ return {
75
+ code: 'Code',
76
+ data: 'Data',
77
+ message: 'Message',
78
+ requestId: 'RequestId',
79
+ success: 'Success',
80
+ };
81
+ }
82
+
83
+ static types(): { [key: string]: any } {
84
+ return {
85
+ code: 'string',
86
+ data: ImageTranslationPlusResponseBodyData,
87
+ message: 'string',
88
+ requestId: 'string',
89
+ success: 'boolean',
90
+ };
91
+ }
92
+
93
+ validate() {
94
+ if(this.data && typeof (this.data as any).validate === 'function') {
95
+ (this.data as any).validate();
96
+ }
97
+ super.validate();
98
+ }
99
+
100
+ constructor(map?: { [key: string]: any }) {
101
+ super(map);
102
+ }
103
+ }
104
+
@@ -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
+