@alicloud/aidge20260428 5.8.0 → 5.10.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 (328) hide show
  1. package/dist/client.d.ts +1534 -313
  2. package/dist/client.js +2648 -749
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddDisplayKnowledgeRequest.d.ts +68 -0
  5. package/dist/models/AddDisplayKnowledgeRequest.js +88 -0
  6. package/dist/models/AddDisplayKnowledgeRequest.js.map +1 -0
  7. package/dist/models/AddDisplayKnowledgeResponse.d.ts +19 -0
  8. package/dist/models/AddDisplayKnowledgeResponse.js +69 -0
  9. package/dist/models/AddDisplayKnowledgeResponse.js.map +1 -0
  10. package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +210 -0
  11. package/dist/models/AddDisplayKnowledgeResponseBody.js +143 -0
  12. package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -0
  13. package/dist/models/AddDisplayKnowledgeShrinkRequest.d.ts +30 -0
  14. package/dist/models/AddDisplayKnowledgeShrinkRequest.js +60 -0
  15. package/dist/models/AddDisplayKnowledgeShrinkRequest.js.map +1 -0
  16. package/dist/models/AiTryOnRequest.d.ts +4 -4
  17. package/dist/models/AiTryOnResponseBody.d.ts +10 -10
  18. package/dist/models/AiTryOnResponseBody.js +0 -2
  19. package/dist/models/AiTryOnResponseBody.js.map +1 -1
  20. package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +30 -0
  21. package/dist/models/DeleteDisplayKnowledgeRequest.js +63 -0
  22. package/dist/models/DeleteDisplayKnowledgeRequest.js.map +1 -0
  23. package/dist/models/DeleteDisplayKnowledgeResponse.d.ts +19 -0
  24. package/dist/models/DeleteDisplayKnowledgeResponse.js +69 -0
  25. package/dist/models/DeleteDisplayKnowledgeResponse.js.map +1 -0
  26. package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +214 -0
  27. package/dist/models/DeleteDisplayKnowledgeResponseBody.js +145 -0
  28. package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -0
  29. package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +30 -0
  30. package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js +60 -0
  31. package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js.map +1 -0
  32. package/dist/models/DocumentTranslateRequest.d.ts +4 -4
  33. package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
  34. package/dist/models/EcomVideoRecreationRequest.d.ts +24 -16
  35. package/dist/models/EcomVideoRecreationRequest.js +2 -0
  36. package/dist/models/EcomVideoRecreationRequest.js.map +1 -1
  37. package/dist/models/EcomVideoRecreationResponseBody.d.ts +5 -5
  38. package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +2 -2
  39. package/dist/models/ImageMattingAsyncRequest.d.ts +59 -0
  40. package/dist/models/ImageMattingAsyncRequest.js +66 -0
  41. package/dist/models/ImageMattingAsyncRequest.js.map +1 -0
  42. package/dist/models/ImageMattingAsyncResponse.d.ts +19 -0
  43. package/dist/models/ImageMattingAsyncResponse.js +69 -0
  44. package/dist/models/ImageMattingAsyncResponse.js.map +1 -0
  45. package/dist/models/ImageMattingAsyncResponseBody.d.ts +72 -0
  46. package/dist/models/ImageMattingAsyncResponseBody.js +88 -0
  47. package/dist/models/ImageMattingAsyncResponseBody.js.map +1 -0
  48. package/dist/models/ImageRecognitionAsyncRequest.d.ts +101 -0
  49. package/dist/models/ImageRecognitionAsyncRequest.js +78 -0
  50. package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -0
  51. package/dist/models/ImageRecognitionAsyncResponse.d.ts +19 -0
  52. package/dist/models/ImageRecognitionAsyncResponse.js +69 -0
  53. package/dist/models/ImageRecognitionAsyncResponse.js.map +1 -0
  54. package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +72 -0
  55. package/dist/models/ImageRecognitionAsyncResponseBody.js +88 -0
  56. package/dist/models/ImageRecognitionAsyncResponseBody.js.map +1 -0
  57. package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +101 -0
  58. package/dist/models/ImageRecognitionAsyncShrinkRequest.js +72 -0
  59. package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -0
  60. package/dist/models/ImageRemovalProAsyncRequest.d.ts +23 -0
  61. package/dist/models/ImageRemovalProAsyncRequest.js +58 -0
  62. package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -0
  63. package/dist/models/ImageRemovalProAsyncResponse.d.ts +19 -0
  64. package/dist/models/ImageRemovalProAsyncResponse.js +69 -0
  65. package/dist/models/ImageRemovalProAsyncResponse.js.map +1 -0
  66. package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +70 -0
  67. package/dist/models/ImageRemovalProAsyncResponseBody.js +88 -0
  68. package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -0
  69. package/dist/models/ImageRemoveAsyncRequest.d.ts +59 -0
  70. package/dist/models/ImageRemoveAsyncRequest.js +82 -0
  71. package/dist/models/ImageRemoveAsyncRequest.js.map +1 -0
  72. package/dist/models/ImageRemoveAsyncResponse.d.ts +19 -0
  73. package/dist/models/ImageRemoveAsyncResponse.js +69 -0
  74. package/dist/models/ImageRemoveAsyncResponse.js.map +1 -0
  75. package/dist/models/ImageRemoveAsyncResponseBody.d.ts +70 -0
  76. package/dist/models/ImageRemoveAsyncResponseBody.js +88 -0
  77. package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -0
  78. package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +59 -0
  79. package/dist/models/ImageRemoveAsyncShrinkRequest.js +70 -0
  80. package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -0
  81. package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +78 -0
  82. package/dist/models/ImageTranslationPlusAsyncRequest.js +70 -0
  83. package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -0
  84. package/dist/models/ImageTranslationPlusAsyncResponse.d.ts +19 -0
  85. package/dist/models/ImageTranslationPlusAsyncResponse.js +69 -0
  86. package/dist/models/ImageTranslationPlusAsyncResponse.js.map +1 -0
  87. package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +70 -0
  88. package/dist/models/ImageTranslationPlusAsyncResponseBody.js +88 -0
  89. package/dist/models/ImageTranslationPlusAsyncResponseBody.js.map +1 -0
  90. package/dist/models/ImageTranslationProAsyncRequest.d.ts +78 -0
  91. package/dist/models/ImageTranslationProAsyncRequest.js +70 -0
  92. package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -0
  93. package/dist/models/ImageTranslationProAsyncResponse.d.ts +19 -0
  94. package/dist/models/ImageTranslationProAsyncResponse.js +69 -0
  95. package/dist/models/ImageTranslationProAsyncResponse.js.map +1 -0
  96. package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +70 -0
  97. package/dist/models/ImageTranslationProAsyncResponseBody.js +88 -0
  98. package/dist/models/ImageTranslationProAsyncResponseBody.js.map +1 -0
  99. package/dist/models/ImageTranslationProRequest.d.ts +12 -8
  100. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  101. package/dist/models/ImageTranslationProResponseBody.d.ts +4 -2
  102. package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
  103. package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +75 -0
  104. package/dist/models/ImageTranslationStandardAsyncRequest.js +70 -0
  105. package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -0
  106. package/dist/models/ImageTranslationStandardAsyncResponse.d.ts +19 -0
  107. package/dist/models/ImageTranslationStandardAsyncResponse.js +69 -0
  108. package/dist/models/ImageTranslationStandardAsyncResponse.js.map +1 -0
  109. package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +70 -0
  110. package/dist/models/ImageTranslationStandardAsyncResponseBody.js +88 -0
  111. package/dist/models/ImageTranslationStandardAsyncResponseBody.js.map +1 -0
  112. package/dist/models/ImageTranslationStandardRequest.d.ts +11 -7
  113. package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
  114. package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
  115. package/dist/models/MerchandisePlacementDetectionLiteRequest.d.ts +23 -0
  116. package/dist/models/MerchandisePlacementDetectionLiteRequest.js +58 -0
  117. package/dist/models/MerchandisePlacementDetectionLiteRequest.js.map +1 -0
  118. package/dist/models/MerchandisePlacementDetectionLiteResponse.d.ts +19 -0
  119. package/dist/models/MerchandisePlacementDetectionLiteResponse.js +69 -0
  120. package/dist/models/MerchandisePlacementDetectionLiteResponse.js.map +1 -0
  121. package/dist/models/MerchandisePlacementDetectionLiteResponseBody.d.ts +239 -0
  122. package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js +229 -0
  123. package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js.map +1 -0
  124. package/dist/models/MerchandisePriceTagDetectionRequest.d.ts +23 -0
  125. package/dist/models/MerchandisePriceTagDetectionRequest.js +58 -0
  126. package/dist/models/MerchandisePriceTagDetectionRequest.js.map +1 -0
  127. package/dist/models/MerchandisePriceTagDetectionResponse.d.ts +19 -0
  128. package/dist/models/MerchandisePriceTagDetectionResponse.js +69 -0
  129. package/dist/models/MerchandisePriceTagDetectionResponse.js.map +1 -0
  130. package/dist/models/MerchandisePriceTagDetectionResponseBody.d.ts +258 -0
  131. package/dist/models/MerchandisePriceTagDetectionResponseBody.js +230 -0
  132. package/dist/models/MerchandisePriceTagDetectionResponseBody.js.map +1 -0
  133. package/dist/models/MerchandiseSceneDetectionRequest.d.ts +23 -0
  134. package/dist/models/MerchandiseSceneDetectionRequest.js +58 -0
  135. package/dist/models/MerchandiseSceneDetectionRequest.js.map +1 -0
  136. package/dist/models/MerchandiseSceneDetectionResponse.d.ts +19 -0
  137. package/dist/models/MerchandiseSceneDetectionResponse.js +69 -0
  138. package/dist/models/MerchandiseSceneDetectionResponse.js.map +1 -0
  139. package/dist/models/MerchandiseSceneDetectionResponseBody.d.ts +263 -0
  140. package/dist/models/MerchandiseSceneDetectionResponseBody.js +235 -0
  141. package/dist/models/MerchandiseSceneDetectionResponseBody.js.map +1 -0
  142. package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.d.ts +23 -0
  143. package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.js +58 -0
  144. package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.js.map +1 -0
  145. package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.d.ts +19 -0
  146. package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.js +69 -0
  147. package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.js.map +1 -0
  148. package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.d.ts +170 -0
  149. package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.js +172 -0
  150. package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.js.map +1 -0
  151. package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.d.ts +23 -0
  152. package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.js +58 -0
  153. package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.js.map +1 -0
  154. package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.d.ts +19 -0
  155. package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.js +69 -0
  156. package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.js.map +1 -0
  157. package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.d.ts +197 -0
  158. package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js +178 -0
  159. package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js.map +1 -0
  160. package/dist/models/PetHealthAnalysisRequest.d.ts +2 -10
  161. package/dist/models/PetHealthAnalysisRequest.js.map +1 -1
  162. package/dist/models/PetHealthAnalysisResponseBody.d.ts +0 -19
  163. package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -1
  164. package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +2 -10
  165. package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -1
  166. package/dist/models/QueryDisplayKnowledgeRequest.d.ts +60 -0
  167. package/dist/models/QueryDisplayKnowledgeRequest.js +71 -0
  168. package/dist/models/QueryDisplayKnowledgeRequest.js.map +1 -0
  169. package/dist/models/QueryDisplayKnowledgeResponse.d.ts +19 -0
  170. package/dist/models/QueryDisplayKnowledgeResponse.js +69 -0
  171. package/dist/models/QueryDisplayKnowledgeResponse.js.map +1 -0
  172. package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +240 -0
  173. package/dist/models/QueryDisplayKnowledgeResponseBody.js +151 -0
  174. package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -0
  175. package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +60 -0
  176. package/dist/models/QueryDisplayKnowledgeShrinkRequest.js +68 -0
  177. package/dist/models/QueryDisplayKnowledgeShrinkRequest.js.map +1 -0
  178. package/dist/models/SizeChartExtractAsyncRequest.d.ts +36 -0
  179. package/dist/models/SizeChartExtractAsyncRequest.js +65 -0
  180. package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -0
  181. package/dist/models/SizeChartExtractAsyncResponse.d.ts +19 -0
  182. package/dist/models/SizeChartExtractAsyncResponse.js +69 -0
  183. package/dist/models/SizeChartExtractAsyncResponse.js.map +1 -0
  184. package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +70 -0
  185. package/dist/models/SizeChartExtractAsyncResponseBody.js +88 -0
  186. package/dist/models/SizeChartExtractAsyncResponseBody.js.map +1 -0
  187. package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +36 -0
  188. package/dist/models/SizeChartExtractAsyncShrinkRequest.js +62 -0
  189. package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -0
  190. package/dist/models/StorefrontSceneRecognitionRequest.d.ts +23 -0
  191. package/dist/models/StorefrontSceneRecognitionRequest.js +58 -0
  192. package/dist/models/StorefrontSceneRecognitionRequest.js.map +1 -0
  193. package/dist/models/StorefrontSceneRecognitionResponse.d.ts +19 -0
  194. package/dist/models/StorefrontSceneRecognitionResponse.js +69 -0
  195. package/dist/models/StorefrontSceneRecognitionResponse.js.map +1 -0
  196. package/dist/models/StorefrontSceneRecognitionResponseBody.d.ts +190 -0
  197. package/dist/models/StorefrontSceneRecognitionResponseBody.js +199 -0
  198. package/dist/models/StorefrontSceneRecognitionResponseBody.js.map +1 -0
  199. package/dist/models/TextTranslateAsyncRequest.d.ts +84 -0
  200. package/dist/models/TextTranslateAsyncRequest.js +75 -0
  201. package/dist/models/TextTranslateAsyncRequest.js.map +1 -0
  202. package/dist/models/TextTranslateAsyncResponse.d.ts +19 -0
  203. package/dist/models/TextTranslateAsyncResponse.js +69 -0
  204. package/dist/models/TextTranslateAsyncResponse.js.map +1 -0
  205. package/dist/models/TextTranslateAsyncResponseBody.d.ts +70 -0
  206. package/dist/models/TextTranslateAsyncResponseBody.js +88 -0
  207. package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -0
  208. package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +84 -0
  209. package/dist/models/TextTranslateAsyncShrinkRequest.js +72 -0
  210. package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -0
  211. package/dist/models/TextTranslateRequest.d.ts +10 -10
  212. package/dist/models/TextTranslateResponseBody.d.ts +1 -1
  213. package/dist/models/TextTranslateShrinkRequest.d.ts +10 -10
  214. package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +74 -0
  215. package/dist/models/UpdateDisplayKnowledgeRequest.js +88 -0
  216. package/dist/models/UpdateDisplayKnowledgeRequest.js.map +1 -0
  217. package/dist/models/UpdateDisplayKnowledgeResponse.d.ts +19 -0
  218. package/dist/models/UpdateDisplayKnowledgeResponse.js +69 -0
  219. package/dist/models/UpdateDisplayKnowledgeResponse.js.map +1 -0
  220. package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +206 -0
  221. package/dist/models/UpdateDisplayKnowledgeResponseBody.js +143 -0
  222. package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -0
  223. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +30 -0
  224. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js +60 -0
  225. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js.map +1 -0
  226. package/dist/models/VideoGenerationRequest.d.ts +21 -12
  227. package/dist/models/VideoGenerationRequest.js.map +1 -1
  228. package/dist/models/VideoGenerationResponseBody.d.ts +5 -5
  229. package/dist/models/VideoTranslationRequest.d.ts +36 -6
  230. package/dist/models/VideoTranslationRequest.js +8 -0
  231. package/dist/models/VideoTranslationRequest.js.map +1 -1
  232. package/dist/models/VideoTranslationResponseBody.d.ts +4 -4
  233. package/dist/models/VideoTranslationShrinkRequest.d.ts +36 -6
  234. package/dist/models/VideoTranslationShrinkRequest.js +8 -0
  235. package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
  236. package/dist/models/model.d.ts +115 -0
  237. package/dist/models/model.js +237 -4
  238. package/dist/models/model.js.map +1 -1
  239. package/package.json +1 -1
  240. package/src/client.ts +2810 -786
  241. package/src/models/AddDisplayKnowledgeRequest.ts +100 -0
  242. package/src/models/AddDisplayKnowledgeResponse.ts +40 -0
  243. package/src/models/AddDisplayKnowledgeResponseBody.ts +288 -0
  244. package/src/models/AddDisplayKnowledgeShrinkRequest.ts +45 -0
  245. package/src/models/AiTryOnRequest.ts +4 -4
  246. package/src/models/AiTryOnResponseBody.ts +10 -10
  247. package/src/models/DeleteDisplayKnowledgeRequest.ts +48 -0
  248. package/src/models/DeleteDisplayKnowledgeResponse.ts +40 -0
  249. package/src/models/DeleteDisplayKnowledgeResponseBody.ts +294 -0
  250. package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +45 -0
  251. package/src/models/DocumentTranslateRequest.ts +4 -4
  252. package/src/models/DocumentTranslateResponseBody.ts +3 -3
  253. package/src/models/EcomVideoRecreationRequest.ts +26 -16
  254. package/src/models/EcomVideoRecreationResponseBody.ts +5 -5
  255. package/src/models/EcomVideoRecreationShrinkRequest.ts +2 -2
  256. package/src/models/ImageMattingAsyncRequest.ts +80 -0
  257. package/src/models/ImageMattingAsyncResponse.ts +40 -0
  258. package/src/models/ImageMattingAsyncResponseBody.ts +106 -0
  259. package/src/models/ImageRecognitionAsyncRequest.ts +134 -0
  260. package/src/models/ImageRecognitionAsyncResponse.ts +40 -0
  261. package/src/models/ImageRecognitionAsyncResponseBody.ts +106 -0
  262. package/src/models/ImageRecognitionAsyncShrinkRequest.ts +128 -0
  263. package/src/models/ImageRemovalProAsyncRequest.ts +36 -0
  264. package/src/models/ImageRemovalProAsyncResponse.ts +40 -0
  265. package/src/models/ImageRemovalProAsyncResponseBody.ts +104 -0
  266. package/src/models/ImageRemoveAsyncRequest.ts +96 -0
  267. package/src/models/ImageRemoveAsyncResponse.ts +40 -0
  268. package/src/models/ImageRemoveAsyncResponseBody.ts +104 -0
  269. package/src/models/ImageRemoveAsyncShrinkRequest.ts +84 -0
  270. package/src/models/ImageTranslationPlusAsyncRequest.ts +103 -0
  271. package/src/models/ImageTranslationPlusAsyncResponse.ts +40 -0
  272. package/src/models/ImageTranslationPlusAsyncResponseBody.ts +104 -0
  273. package/src/models/ImageTranslationProAsyncRequest.ts +103 -0
  274. package/src/models/ImageTranslationProAsyncResponse.ts +40 -0
  275. package/src/models/ImageTranslationProAsyncResponseBody.ts +104 -0
  276. package/src/models/ImageTranslationProRequest.ts +12 -8
  277. package/src/models/ImageTranslationProResponseBody.ts +4 -2
  278. package/src/models/ImageTranslationStandardAsyncRequest.ts +100 -0
  279. package/src/models/ImageTranslationStandardAsyncResponse.ts +40 -0
  280. package/src/models/ImageTranslationStandardAsyncResponseBody.ts +104 -0
  281. package/src/models/ImageTranslationStandardRequest.ts +11 -7
  282. package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
  283. package/src/models/MerchandisePlacementDetectionLiteRequest.ts +36 -0
  284. package/src/models/MerchandisePlacementDetectionLiteResponse.ts +40 -0
  285. package/src/models/MerchandisePlacementDetectionLiteResponseBody.ts +367 -0
  286. package/src/models/MerchandisePriceTagDetectionRequest.ts +36 -0
  287. package/src/models/MerchandisePriceTagDetectionResponse.ts +40 -0
  288. package/src/models/MerchandisePriceTagDetectionResponseBody.ts +387 -0
  289. package/src/models/MerchandiseSceneDetectionRequest.ts +36 -0
  290. package/src/models/MerchandiseSceneDetectionResponse.ts +40 -0
  291. package/src/models/MerchandiseSceneDetectionResponseBody.ts +397 -0
  292. package/src/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.ts +36 -0
  293. package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.ts +40 -0
  294. package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.ts +259 -0
  295. package/src/models/MilkPowderCartonCodeRephotographyDetectionRequest.ts +36 -0
  296. package/src/models/MilkPowderCartonCodeRephotographyDetectionResponse.ts +40 -0
  297. package/src/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.ts +292 -0
  298. package/src/models/PetHealthAnalysisRequest.ts +2 -10
  299. package/src/models/PetHealthAnalysisResponseBody.ts +0 -19
  300. package/src/models/PetHealthAnalysisShrinkRequest.ts +2 -10
  301. package/src/models/QueryDisplayKnowledgeRequest.ts +86 -0
  302. package/src/models/QueryDisplayKnowledgeResponse.ts +40 -0
  303. package/src/models/QueryDisplayKnowledgeResponseBody.ts +326 -0
  304. package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +83 -0
  305. package/src/models/SizeChartExtractAsyncRequest.ts +56 -0
  306. package/src/models/SizeChartExtractAsyncResponse.ts +40 -0
  307. package/src/models/SizeChartExtractAsyncResponseBody.ts +104 -0
  308. package/src/models/SizeChartExtractAsyncShrinkRequest.ts +53 -0
  309. package/src/models/StorefrontSceneRecognitionRequest.ts +36 -0
  310. package/src/models/StorefrontSceneRecognitionResponse.ts +40 -0
  311. package/src/models/StorefrontSceneRecognitionResponseBody.ts +297 -0
  312. package/src/models/TextTranslateAsyncRequest.ts +114 -0
  313. package/src/models/TextTranslateAsyncResponse.ts +40 -0
  314. package/src/models/TextTranslateAsyncResponseBody.ts +104 -0
  315. package/src/models/TextTranslateAsyncShrinkRequest.ts +111 -0
  316. package/src/models/TextTranslateRequest.ts +10 -10
  317. package/src/models/TextTranslateResponseBody.ts +1 -1
  318. package/src/models/TextTranslateShrinkRequest.ts +10 -10
  319. package/src/models/UpdateDisplayKnowledgeRequest.ts +108 -0
  320. package/src/models/UpdateDisplayKnowledgeResponse.ts +40 -0
  321. package/src/models/UpdateDisplayKnowledgeResponseBody.ts +284 -0
  322. package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +45 -0
  323. package/src/models/VideoGenerationRequest.ts +21 -12
  324. package/src/models/VideoGenerationResponseBody.ts +5 -5
  325. package/src/models/VideoTranslationRequest.ts +44 -6
  326. package/src/models/VideoTranslationResponseBody.ts +4 -4
  327. package/src/models/VideoTranslationShrinkRequest.ts +44 -6
  328. package/src/models/model.ts +115 -0
package/dist/client.js CHANGED
@@ -62,31 +62,78 @@ class Client extends openapi_core_1.default {
62
62
  return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
63
63
  }
64
64
  /**
65
- * Virtual Try-On is an AI algorithm-based image generation API service that replaces the clothing on a model with the garment provided by the user based on the input garment image and model image, while preserving the model\\"s other details and scene details without altering the model\\"s pose, facial features, or other attributes, and achieving realistic and well-fitted clothing placement. Users only need to provide the URL of the original product image to obtain a processed clean image.
65
+ * Synchronously adds content to a display knowledge base in batches.
66
+ *
67
+ * @param tmpReq - AddDisplayKnowledgeRequest
68
+ * @param runtime - runtime options for this request RuntimeOptions
69
+ * @returns AddDisplayKnowledgeResponse
70
+ */
71
+ async addDisplayKnowledgeWithOptions(tmpReq, runtime) {
72
+ tmpReq.validate();
73
+ let request = new $_model.AddDisplayKnowledgeShrinkRequest({});
74
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
75
+ if (!$dara.isNull(tmpReq.records)) {
76
+ request.recordsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json");
77
+ }
78
+ let query = {};
79
+ if (!$dara.isNull(request.ragId)) {
80
+ query["RagId"] = request.ragId;
81
+ }
82
+ if (!$dara.isNull(request.recordsShrink)) {
83
+ query["Records"] = request.recordsShrink;
84
+ }
85
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
86
+ query: openapi_core_2.OpenApiUtil.query(query),
87
+ });
88
+ let params = new openapi_core_2.$OpenApiUtil.Params({
89
+ action: "AddDisplayKnowledge",
90
+ version: "2026-04-28",
91
+ protocol: "HTTPS",
92
+ pathname: "/",
93
+ method: "POST",
94
+ authType: "AK",
95
+ style: "RPC",
96
+ reqBodyType: "formData",
97
+ bodyType: "json",
98
+ });
99
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddDisplayKnowledgeResponse({}));
100
+ }
101
+ /**
102
+ * Synchronously adds content to a display knowledge base in batches.
103
+ *
104
+ * @param request - AddDisplayKnowledgeRequest
105
+ * @returns AddDisplayKnowledgeResponse
106
+ */
107
+ async addDisplayKnowledge(request) {
108
+ let runtime = new $dara.RuntimeOptions({});
109
+ return await this.addDisplayKnowledgeWithOptions(request, runtime);
110
+ }
111
+ /**
112
+ * Generates virtual try-on images by applying a specified garment to a model image based on AI algorithms. The service preserves the model\\"s pose, facial features, and background details while ensuring a realistic and well-fitted appearance. You only need to provide the URLs of the original model and garment images to obtain the processed image.
66
113
  *
67
114
  * @remarks
68
115
  * ## Scenarios
69
- * - **Virtual try-on for clothing products:**
70
- * Supports multiple clothing categories including tops, bottoms, jumpsuits, and dresses. After uploading a person image and a product image, the service generates natural and realistic try-on results that intuitively showcase how the clothing looks when worn.
116
+ * - **Virtual try-on for clothing:**
117
+ * Supports various clothing categories such as tops, bottoms, jumpsuits, and dresses. After you upload a model image and a garment image, the service generates natural and realistic try-on effects to visually demonstrate how the garment looks on the model.
71
118
  * - **Virtual try-on for shoes and hats:**
72
- * Supports virtual try-on for shoes, hats, and similar products. The service intelligently matches the product position and proportion based on the person\\"s pose and body parts, producing coordinated and lifelike wearing effects.
119
+ * Supports virtual try-on for accessories such as shoes and hats. The service intelligently matches the position and proportion of the product based on the model\\"s pose and body parts to present a coordinated and realistic wearing effect.
73
120
  * - **E-commerce product display and marketing:**
74
- * Helps merchants quickly generate model try-on images for different products, reducing the costs of traditional photography, outfit changes, and post-production, and improving the production efficiency of product images.
121
+ * Helps merchants quickly generate model try-on images for different products. This reduces the costs of traditional photography, outfit changes, and post-production, and improves the production efficiency of product images.
75
122
  * - **Online shopping experience optimization:**
76
- * Consumers can preview how products look when worn through virtual try-on, gaining a more intuitive understanding of the product\\"s style, coordination, and overall appearance, which assists purchase decisions and enhances the shopping experience.
123
+ * Allows consumers to preview the wearing effect of products through virtual try-on. This provides a more intuitive understanding of the style, matching, and overall effect of the product, which assists in purchase decisions and enhances the shopping experience.
77
124
  * ## Features
78
- * - **First, the user needs to provide a model image and a product image. The system uses the model image as the try-on subject and applies the clothing from the product image onto the model:**
79
- * - a. Model image: The person image on which the virtual try-on is performed.
80
- * - b. Product image: The clothing, shoes, or hat image to be applied onto the model.
81
- * - **Second, the user can select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
82
- * - a. Specify product type: The user can directly specify the product type, and the system processes accordingly.
83
- * - b. Automatic type recognition: If the user does not specify a product type, the system automatically identifies the product category from the product image and performs the virtual try-on based on the recognition result.
84
- * - **Finally, the system combines the model image, product image, and product type to generate a virtual try-on image that showcases how the product looks on the model:**
85
- * - a. Preserve model details: The generation process does not alter the person\\"s appearance, hairstyle, pose, body shape, or other details in the original model image.
86
- * - b. Maintain scene consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
87
- * - c. Generate try-on results: The product is naturally applied onto the model, conforming to the person\\"s pose and body structure, producing a coordinated and realistic virtual try-on image.
88
- * ## Sample results
89
- * | **Type** | **Model image** | **Clothing image** | **Try-on result** |
125
+ * - **Provide a model image and a product image. The system uses the model image as the try-on subject and applies the garment from the product image to the model:**
126
+ * - a. Model image: The image of the person who will wear the garment in the virtual try-on.
127
+ * - b. Product image: The image of the clothing, shoes, or hat to be worn by the model.
128
+ * - **Select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
129
+ * - a. Specify product type: You can directly specify the type of the current product, and the system will process it accordingly.
130
+ * - b. Automatic type recognition: If you do not specify the product type, the system automatically recognizes the product category in the product image and performs the virtual try-on based on the recognition result.
131
+ * - **The system generates a virtual try-on image by combining the model image, product image, and product type to show the wearing effect of the product on the model:**
132
+ * - a. Preserve model details: The generation process does not alter the appearance, hairstyle, pose, body shape, or other details of the person in the original model image.
133
+ * - b. Maintain image consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
134
+ * - c. Generate try-on effect: The product is naturally applied to the model, fitting the person\\"s pose and body structure to generate a coordinated and realistic virtual try-on image.
135
+ * ## Examples
136
+ * | **Type** | **Model image** | **Garment image** | **Try-on result** |
90
137
  * | --- | --- | --- | --- |
91
138
  * | Tops | ![lQLPJv-OKUNDSxvNBojNA62wAMWEBuiTUuMKXnNidWFWAA_941_1672.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/e4273b03-0d3b-4e98-b8f3-8713fccee303.png) | ![男模特衬衫正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/d9ab77f7-8791-4fa5-8d76-4fda3e2e1310.png) | ![7c1c0c04-9828-940f-b86d-c08f7ec8fb97_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/42982786-73ee-4d23-a8d0-551f7a18be22.png) |
92
139
  * | Bottoms | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![微喇牛仔裤-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/f79a31cb-08bd-4b59-be9d-9b9aa3f60230.png) | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/297f29eb-7bc9-49a5-b4f7-114375a0f312.png) |
@@ -131,31 +178,31 @@ class Client extends openapi_core_1.default {
131
178
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.AiTryOnResponse({}));
132
179
  }
133
180
  /**
134
- * Virtual Try-On is an AI algorithm-based image generation API service that replaces the clothing on a model with the garment provided by the user based on the input garment image and model image, while preserving the model\\"s other details and scene details without altering the model\\"s pose, facial features, or other attributes, and achieving realistic and well-fitted clothing placement. Users only need to provide the URL of the original product image to obtain a processed clean image.
181
+ * Generates virtual try-on images by applying a specified garment to a model image based on AI algorithms. The service preserves the model\\"s pose, facial features, and background details while ensuring a realistic and well-fitted appearance. You only need to provide the URLs of the original model and garment images to obtain the processed image.
135
182
  *
136
183
  * @remarks
137
184
  * ## Scenarios
138
- * - **Virtual try-on for clothing products:**
139
- * Supports multiple clothing categories including tops, bottoms, jumpsuits, and dresses. After uploading a person image and a product image, the service generates natural and realistic try-on results that intuitively showcase how the clothing looks when worn.
185
+ * - **Virtual try-on for clothing:**
186
+ * Supports various clothing categories such as tops, bottoms, jumpsuits, and dresses. After you upload a model image and a garment image, the service generates natural and realistic try-on effects to visually demonstrate how the garment looks on the model.
140
187
  * - **Virtual try-on for shoes and hats:**
141
- * Supports virtual try-on for shoes, hats, and similar products. The service intelligently matches the product position and proportion based on the person\\"s pose and body parts, producing coordinated and lifelike wearing effects.
188
+ * Supports virtual try-on for accessories such as shoes and hats. The service intelligently matches the position and proportion of the product based on the model\\"s pose and body parts to present a coordinated and realistic wearing effect.
142
189
  * - **E-commerce product display and marketing:**
143
- * Helps merchants quickly generate model try-on images for different products, reducing the costs of traditional photography, outfit changes, and post-production, and improving the production efficiency of product images.
190
+ * Helps merchants quickly generate model try-on images for different products. This reduces the costs of traditional photography, outfit changes, and post-production, and improves the production efficiency of product images.
144
191
  * - **Online shopping experience optimization:**
145
- * Consumers can preview how products look when worn through virtual try-on, gaining a more intuitive understanding of the product\\"s style, coordination, and overall appearance, which assists purchase decisions and enhances the shopping experience.
192
+ * Allows consumers to preview the wearing effect of products through virtual try-on. This provides a more intuitive understanding of the style, matching, and overall effect of the product, which assists in purchase decisions and enhances the shopping experience.
146
193
  * ## Features
147
- * - **First, the user needs to provide a model image and a product image. The system uses the model image as the try-on subject and applies the clothing from the product image onto the model:**
148
- * - a. Model image: The person image on which the virtual try-on is performed.
149
- * - b. Product image: The clothing, shoes, or hat image to be applied onto the model.
150
- * - **Second, the user can select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
151
- * - a. Specify product type: The user can directly specify the product type, and the system processes accordingly.
152
- * - b. Automatic type recognition: If the user does not specify a product type, the system automatically identifies the product category from the product image and performs the virtual try-on based on the recognition result.
153
- * - **Finally, the system combines the model image, product image, and product type to generate a virtual try-on image that showcases how the product looks on the model:**
154
- * - a. Preserve model details: The generation process does not alter the person\\"s appearance, hairstyle, pose, body shape, or other details in the original model image.
155
- * - b. Maintain scene consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
156
- * - c. Generate try-on results: The product is naturally applied onto the model, conforming to the person\\"s pose and body structure, producing a coordinated and realistic virtual try-on image.
157
- * ## Sample results
158
- * | **Type** | **Model image** | **Clothing image** | **Try-on result** |
194
+ * - **Provide a model image and a product image. The system uses the model image as the try-on subject and applies the garment from the product image to the model:**
195
+ * - a. Model image: The image of the person who will wear the garment in the virtual try-on.
196
+ * - b. Product image: The image of the clothing, shoes, or hat to be worn by the model.
197
+ * - **Select the corresponding product type based on the actual product. Supported types include tops, bottoms, jumpsuits, dresses, shoes, and hats:**
198
+ * - a. Specify product type: You can directly specify the type of the current product, and the system will process it accordingly.
199
+ * - b. Automatic type recognition: If you do not specify the product type, the system automatically recognizes the product category in the product image and performs the virtual try-on based on the recognition result.
200
+ * - **The system generates a virtual try-on image by combining the model image, product image, and product type to show the wearing effect of the product on the model:**
201
+ * - a. Preserve model details: The generation process does not alter the appearance, hairstyle, pose, body shape, or other details of the person in the original model image.
202
+ * - b. Maintain image consistency: The background, composition, lighting, and overall visual effect of the original model image remain unchanged. Only the wearing area corresponding to the product is processed.
203
+ * - c. Generate try-on effect: The product is naturally applied to the model, fitting the person\\"s pose and body structure to generate a coordinated and realistic virtual try-on image.
204
+ * ## Examples
205
+ * | **Type** | **Model image** | **Garment image** | **Try-on result** |
159
206
  * | --- | --- | --- | --- |
160
207
  * | Tops | ![lQLPJv-OKUNDSxvNBojNA62wAMWEBuiTUuMKXnNidWFWAA_941_1672.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/e4273b03-0d3b-4e98-b8f3-8713fccee303.png) | ![男模特衬衫正面-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/d9ab77f7-8791-4fa5-8d76-4fda3e2e1310.png) | ![7c1c0c04-9828-940f-b86d-c08f7ec8fb97_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/42982786-73ee-4d23-a8d0-551f7a18be22.png) |
161
208
  * | Bottoms | ![lQDPJwcNMfxtoRvNBQDNAtCwhseujKzDt_QKXnNSTPaeAA_720_1280.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/64147be2-0c95-431a-8c04-f756fac96db2.jpeg) | ![微喇牛仔裤-aidge.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/f79a31cb-08bd-4b59-be9d-9b9aa3f60230.png) | ![adbb8e02-9738-991a-9699-f46bc5c089a9_qwen_image3_serving_output_0.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4j6OJ5PZM1WeKq3p/img/297f29eb-7bc9-49a5-b4f7-114375a0f312.png) |
@@ -607,6 +654,53 @@ class Client extends openapi_core_1.default {
607
654
  let runtime = new $dara.RuntimeOptions({});
608
655
  return await this.categoryMatchWithOptions(request, runtime);
609
656
  }
657
+ /**
658
+ * Deletes display knowledge base content in batches synchronously.
659
+ *
660
+ * @param tmpReq - DeleteDisplayKnowledgeRequest
661
+ * @param runtime - runtime options for this request RuntimeOptions
662
+ * @returns DeleteDisplayKnowledgeResponse
663
+ */
664
+ async deleteDisplayKnowledgeWithOptions(tmpReq, runtime) {
665
+ tmpReq.validate();
666
+ let request = new $_model.DeleteDisplayKnowledgeShrinkRequest({});
667
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
668
+ if (!$dara.isNull(tmpReq.recordIds)) {
669
+ request.recordIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.recordIds, "RecordIds", "json");
670
+ }
671
+ let query = {};
672
+ if (!$dara.isNull(request.ragId)) {
673
+ query["RagId"] = request.ragId;
674
+ }
675
+ if (!$dara.isNull(request.recordIdsShrink)) {
676
+ query["RecordIds"] = request.recordIdsShrink;
677
+ }
678
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
679
+ query: openapi_core_2.OpenApiUtil.query(query),
680
+ });
681
+ let params = new openapi_core_2.$OpenApiUtil.Params({
682
+ action: "DeleteDisplayKnowledge",
683
+ version: "2026-04-28",
684
+ protocol: "HTTPS",
685
+ pathname: "/",
686
+ method: "POST",
687
+ authType: "AK",
688
+ style: "RPC",
689
+ reqBodyType: "formData",
690
+ bodyType: "json",
691
+ });
692
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteDisplayKnowledgeResponse({}));
693
+ }
694
+ /**
695
+ * Deletes display knowledge base content in batches synchronously.
696
+ *
697
+ * @param request - DeleteDisplayKnowledgeRequest
698
+ * @returns DeleteDisplayKnowledgeResponse
699
+ */
700
+ async deleteDisplayKnowledge(request) {
701
+ let runtime = new $dara.RuntimeOptions({});
702
+ return await this.deleteDisplayKnowledgeWithOptions(request, runtime);
703
+ }
610
704
  /**
611
705
  * Calculates the edge lengths and floor area of a floor display based on the floor display image and product detection boxes.
612
706
  *
@@ -745,8 +839,7 @@ class Client extends openapi_core_1.default {
745
839
  return await this.diduiAreaDeductionProWithOptions(request, runtime);
746
840
  }
747
841
  /**
748
- * Designed specifically for document translation. Supports translation between more than 400 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
749
- * Excels in the following areas:
842
+ * Designed specifically for document translation. Supports translation between more than 400 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas:
750
843
  * - Content accuracy: translation accuracy, parameter and unit accuracy.
751
844
  * - Structural integrity: overall layout continuity, page margin and layout restoration.
752
845
  *
@@ -757,13 +850,13 @@ class Client extends openapi_core_1.default {
757
850
  * - Content accuracy: translation accuracy, parameter and unit accuracy
758
851
  * - Structural integrity: overall layout continuity, page margin and layout restoration
759
852
  * ## Common scenarios
760
- * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and many other scenarios.
853
+ * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
761
854
  * ## Functions and features
762
- * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see section 4.5.
763
- * - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
855
+ * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
856
+ * - Supports translation of text within images in documents, as well as complex translation scenarios involving charts, special symbols, and more.
764
857
  * - Supports high-fidelity layout restoration after translation.
765
858
  * - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
766
- * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection and similar 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.
859
+ * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection and similar scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 glossary entries. If you need more, contact the platform for assistance.
767
860
  *
768
861
  * @param request - DocumentTranslateRequest
769
862
  * @param runtime - runtime options for this request RuntimeOptions
@@ -801,8 +894,7 @@ class Client extends openapi_core_1.default {
801
894
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DocumentTranslateResponse({}));
802
895
  }
803
896
  /**
804
- * Designed specifically for document translation. Supports translation between more than 400 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
805
- * Excels in the following areas:
897
+ * Designed specifically for document translation. Supports translation between more than 400 language pairs (including bridged pairs) to handle multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported. Excels in the following areas:
806
898
  * - Content accuracy: translation accuracy, parameter and unit accuracy.
807
899
  * - Structural integrity: overall layout continuity, page margin and layout restoration.
808
900
  *
@@ -813,13 +905,13 @@ class Client extends openapi_core_1.default {
813
905
  * - Content accuracy: translation accuracy, parameter and unit accuracy
814
906
  * - Structural integrity: overall layout continuity, page margin and layout restoration
815
907
  * ## Common scenarios
816
- * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks and courseware, and many other scenarios.
908
+ * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
817
909
  * ## Functions and features
818
- * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see section 4.5.
819
- * - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
910
+ * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed language list, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
911
+ * - Supports translation of text within images in documents, as well as complex translation scenarios involving charts, special symbols, and more.
820
912
  * - Supports high-fidelity layout restoration after translation.
821
913
  * - A single PDF supports up to 100 pages. A single Word document supports up to 100 pages.
822
- * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection and similar 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.
914
+ * - Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection and similar scenarios. Simply pass the corresponding glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 glossary entries. If you need more, contact the platform for assistance.
823
915
  *
824
916
  * @param request - DocumentTranslateRequest
825
917
  * @returns DocumentTranslateResponse
@@ -829,30 +921,45 @@ class Client extends openapi_core_1.default {
829
921
  return await this.documentTranslateWithOptions(request, runtime);
830
922
  }
831
923
  /**
832
- * E-commerce Video Multiplication is an AI video service designed for product content production, covering video understanding, element replacement, quality verification, and result delivery. The product focuses on product and person consistency, detail restoration, conversion-oriented expression, and large-scale production. It supports targeted replacement of products or persons based on hit video templates while preserving the original actions, shot rhythm, and marketing structure to quickly generate multi-version content and reduce shooting, editing, and adaptation costs.
924
+ * Creates an asynchronous task for e-commerce video variation generation, an AI video service for product content production that covers video understanding, element replacement, quality verification, and result delivery. The service focuses on product and person consistency, detail restoration, conversion expression, and large-scale production. It supports targeted replacement of products or persons based on popular video templates, quickly generating multiple content versions while retaining original actions, camera rhythms, and marketing structures to reduce shooting, editing, and adaptation costs.
833
925
  *
834
926
  * @remarks
835
- * ## **Product Introduction**
836
- * E-commerce Video Multiplication is an AI video service designed for product content production, covering video understanding, element replacement, quality verification, and result delivery. The product focuses on product and person consistency, detail restoration, conversion-oriented expression, and large-scale production. It supports targeted replacement of products or persons based on hit video templates while preserving the original actions, shot rhythm, and marketing structure to quickly generate multi-version content and reduce shooting, editing, and adaptation costs.
927
+ * ## **Product introduction**
928
+ * E-commerce video variation generation is an AI video service for product content production that covers video understanding, element replacement, quality verification, and result delivery. The service focuses on product and person consistency, detail restoration, conversion expression, and large-scale production. It supports targeted replacement of products or persons based on popular video templates, quickly generating multiple content versions while retaining original actions, camera rhythms, and marketing structures to reduce shooting, editing, and adaptation costs.
837
929
  * ## **Scenarios**
838
- * - **Video asset multiplication:** Use an existing e-commerce video as a template and replace only the specified product or person while preserving the original shots, rhythm, and marketing expression. This is applicable to multi-SKU, multi-model, multi-region, and multi-version asset production.
839
- * - **New product launch with rapid asset generation:** For products launched in batches, reduce the need for live shooting, studio time, post-production editing, and repetitive production. Quickly generate new product video assets to help merchants shorten the cycle from discovering a hit video to scripting and publishing new content.
840
- * - **Product presentation and selling point expression:** Applicable to apparel, beauty and personal care, food and beverages, home and daily essentials, 3C electronics, small appliances, and other products. Based on the selling point planning, presentation actions, and shot rhythm of the original video, generate presentation videos optimized for new product conversion.
841
- * - **Multi-selling-point and multi-version testing:** Quickly generate multiple versions based on different product selling points, target audiences, scripts, shots, and visual styles to support merchants in content testing and ad creative iteration.
842
- * ## **Product Capabilities**
843
- * ### **Core capabilities**
844
- * Two replacement modes are supported:
845
- * - **Product replacement (product_replacement):** Retains the original video host identity, actions, scene, and selling structure while replacing the original product with the target product.
846
- * - **Person replacement (person_replacement):** Retains the original video product, actions, scene, and selling structure while replacing the on-screen person with the target person from a reference image or description.
847
- * - **Fully automated end-to-end generation with zero prompt threshold:** Simply provide a reference video and target product image or person image. The system automatically completes the entire pipeline including video understanding, script planning, storyboard design, first-frame generation, and video synthesis.
848
- * - **Product understanding and information structuring:** Identifies product category, appearance, material, color, structure, and key components, and combines merchant-provided titles, attributes, and selling points to generate usable video expression information.
849
- * - **Template video element replacement:** Supports replacing products or persons within the authorized scope, with configurable replacement and protection ranges to minimize changes in non-target areas.
850
- * - **Product subject consistency:** Maintains stable product shape, color, texture, pattern, packaging, and logo across different shots, angles, actions, and scenes.
851
- * - **Product fidelity:** Multi-round VL quality inspection locks product state (color, texture, structure, and print) throughout the process to prevent product feature drift.
852
- * - **Strength category — Apparel:** Faithfully restores apparel details, focusing on silhouette, wrinkles, drape, fabric texture, buttons, zippers, prints, and accessories to reduce clipping, deformation, texture loss, and detail anomalies.
853
- * - **Selling point script and storyboard replication:** Replicates the selling point planning, video structure, shot sequence, presentation actions, voiceover content, and closing style of the original video.
854
- * - **Commercial model adaptation:** Supports matching model appearance and presentation style based on product style, silhouette, target audience, and market demand.
855
- * - **Quality verification and result feedback:** Performs multi-dimensional checks on product subject, person, apparel, text, frame completeness, audio, and overall usability, and outputs result information for manual review.
930
+ * - **Video asset variation generation:** Uses an existing e-commerce video as a template and replaces only specified products or persons in the video, preserving the original camera angles, rhythms, and marketing expressions as much as possible. This is suitable for producing assets with multiple SKUs, models, regions, and versions.
931
+ * - **Quick asset generation for new products:** For newly launched products, this reduces the need for live-action shooting, studio setup, post-production editing, and repetitive production. It quickly deploys video assets for new products, helping merchants shorten the launch cycle from spotting a popular video to breaking down the script and shooting new content.
932
+ * - **Product explanation and selling point expression:** Suitable for products such as apparel, beauty and personal care, food and beverage, home and daily necessities, 3C digital products, and small home appliances. It can replicate the explanation structure, display actions, and camera rhythms based on the selling points of the original video to generate explanation videos tailored for the conversion of new products.
933
+ * - **Multi-selling point and multi-version testing:** Quickly generates multiple versions based on different product selling points, target audiences, scripts, camera angles, and visual styles. This supports merchants in conducting content testing and iterating on delivered assets.
934
+ * ## **Feature overview**
935
+ * ### **Core features**
936
+ * * **Supports two replacement modes:**
937
+ *
938
+ * * **Product replacement (**`product_replacement`**)**: Retains the original video host\\"s identity, actions, scene, and sales structure, and replaces the original product with the target product.
939
+ *
940
+ * * **Person replacement (**`person_replacement`**)**: Retains the original product, actions, scene, and sales structure, and replaces the person on camera with the target person from a reference image or description.
941
+ *
942
+ * * **Supports two generation modes:**
943
+ *
944
+ * * **Reference generation (**`reference`**)**: 1:1 replication. Uses the original video as a complete reference to automatically generate a new video with the same duration as the original video. It retains the original script, storyboard, actions, scene, and rhythm, and only performs targeted replacement of specified content such as persons or products.
945
+ *
946
+ * * **Rebuild generation (**`rebuild`**)**: Breaks down the script, storyboard, and key elements of the original video, retains only core content such as specified persons or products, and then redesigns and generates a new video. It is not limited by the duration of the original video and supports inputting a target duration.
947
+ *
948
+ * * **Fully automated end-to-end generation with zero prompt engineering required**: Only requires the reference video and target product or person images. The system automatically completes the entire process of video understanding, script planning, storyboard design, first-frame generation, and video synthesis.
949
+ *
950
+ * * **Product understanding and information structuring**: Identifies product categories, appearance, materials, colors, structures, and key components, and combines them with the titles, attributes, and selling points provided by the merchant to generate usable video expression information.
951
+ *
952
+ * * **Template video element replacement**: Supports replacing products or persons within the authorized scope, and defines the replacement scope and protection scope to minimize changes in non-target areas.
953
+ *
954
+ * * **Product subject consistency**: Maintains the stability of the product\\"s shape, color, texture, pattern, packaging, and logo as much as possible across different camera angles, perspectives, actions, and scenes.
955
+ *
956
+ * * **Product fidelity**: Multi-round VL quality inspection locks the product state (color, texture, structure, print) throughout the process to prevent product feature drift.
957
+ *
958
+ * * **Selling point script and storyboard replication**: Replicates the selling point planning, video structure, camera sequence, display actions, voiceover content, and ending style based on the original video.
959
+ *
960
+ * * **Commercial model adaptation**: Supports matching the corresponding model image and display method based on the product style, fit, target audience, and market demand.
961
+ *
962
+ * * **Quality verification and result feedback**: Performs multi-dimensional checks on the product subject, person, clothing, text, image integrity, audio, and overall usability, and outputs result information for manual review.
856
963
  *
857
964
  * @param tmpReq - EcomVideoRecreationRequest
858
965
  * @param runtime - runtime options for this request RuntimeOptions
@@ -892,30 +999,45 @@ class Client extends openapi_core_1.default {
892
999
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.EcomVideoRecreationResponse({}));
893
1000
  }
894
1001
  /**
895
- * E-commerce Video Multiplication is an AI video service designed for product content production, covering video understanding, element replacement, quality verification, and result delivery. The product focuses on product and person consistency, detail restoration, conversion-oriented expression, and large-scale production. It supports targeted replacement of products or persons based on hit video templates while preserving the original actions, shot rhythm, and marketing structure to quickly generate multi-version content and reduce shooting, editing, and adaptation costs.
1002
+ * Creates an asynchronous task for e-commerce video variation generation, an AI video service for product content production that covers video understanding, element replacement, quality verification, and result delivery. The service focuses on product and person consistency, detail restoration, conversion expression, and large-scale production. It supports targeted replacement of products or persons based on popular video templates, quickly generating multiple content versions while retaining original actions, camera rhythms, and marketing structures to reduce shooting, editing, and adaptation costs.
896
1003
  *
897
1004
  * @remarks
898
- * ## **Product Introduction**
899
- * E-commerce Video Multiplication is an AI video service designed for product content production, covering video understanding, element replacement, quality verification, and result delivery. The product focuses on product and person consistency, detail restoration, conversion-oriented expression, and large-scale production. It supports targeted replacement of products or persons based on hit video templates while preserving the original actions, shot rhythm, and marketing structure to quickly generate multi-version content and reduce shooting, editing, and adaptation costs.
1005
+ * ## **Product introduction**
1006
+ * E-commerce video variation generation is an AI video service for product content production that covers video understanding, element replacement, quality verification, and result delivery. The service focuses on product and person consistency, detail restoration, conversion expression, and large-scale production. It supports targeted replacement of products or persons based on popular video templates, quickly generating multiple content versions while retaining original actions, camera rhythms, and marketing structures to reduce shooting, editing, and adaptation costs.
900
1007
  * ## **Scenarios**
901
- * - **Video asset multiplication:** Use an existing e-commerce video as a template and replace only the specified product or person while preserving the original shots, rhythm, and marketing expression. This is applicable to multi-SKU, multi-model, multi-region, and multi-version asset production.
902
- * - **New product launch with rapid asset generation:** For products launched in batches, reduce the need for live shooting, studio time, post-production editing, and repetitive production. Quickly generate new product video assets to help merchants shorten the cycle from discovering a hit video to scripting and publishing new content.
903
- * - **Product presentation and selling point expression:** Applicable to apparel, beauty and personal care, food and beverages, home and daily essentials, 3C electronics, small appliances, and other products. Based on the selling point planning, presentation actions, and shot rhythm of the original video, generate presentation videos optimized for new product conversion.
904
- * - **Multi-selling-point and multi-version testing:** Quickly generate multiple versions based on different product selling points, target audiences, scripts, shots, and visual styles to support merchants in content testing and ad creative iteration.
905
- * ## **Product Capabilities**
906
- * ### **Core capabilities**
907
- * Two replacement modes are supported:
908
- * - **Product replacement (product_replacement):** Retains the original video host identity, actions, scene, and selling structure while replacing the original product with the target product.
909
- * - **Person replacement (person_replacement):** Retains the original video product, actions, scene, and selling structure while replacing the on-screen person with the target person from a reference image or description.
910
- * - **Fully automated end-to-end generation with zero prompt threshold:** Simply provide a reference video and target product image or person image. The system automatically completes the entire pipeline including video understanding, script planning, storyboard design, first-frame generation, and video synthesis.
911
- * - **Product understanding and information structuring:** Identifies product category, appearance, material, color, structure, and key components, and combines merchant-provided titles, attributes, and selling points to generate usable video expression information.
912
- * - **Template video element replacement:** Supports replacing products or persons within the authorized scope, with configurable replacement and protection ranges to minimize changes in non-target areas.
913
- * - **Product subject consistency:** Maintains stable product shape, color, texture, pattern, packaging, and logo across different shots, angles, actions, and scenes.
914
- * - **Product fidelity:** Multi-round VL quality inspection locks product state (color, texture, structure, and print) throughout the process to prevent product feature drift.
915
- * - **Strength category — Apparel:** Faithfully restores apparel details, focusing on silhouette, wrinkles, drape, fabric texture, buttons, zippers, prints, and accessories to reduce clipping, deformation, texture loss, and detail anomalies.
916
- * - **Selling point script and storyboard replication:** Replicates the selling point planning, video structure, shot sequence, presentation actions, voiceover content, and closing style of the original video.
917
- * - **Commercial model adaptation:** Supports matching model appearance and presentation style based on product style, silhouette, target audience, and market demand.
918
- * - **Quality verification and result feedback:** Performs multi-dimensional checks on product subject, person, apparel, text, frame completeness, audio, and overall usability, and outputs result information for manual review.
1008
+ * - **Video asset variation generation:** Uses an existing e-commerce video as a template and replaces only specified products or persons in the video, preserving the original camera angles, rhythms, and marketing expressions as much as possible. This is suitable for producing assets with multiple SKUs, models, regions, and versions.
1009
+ * - **Quick asset generation for new products:** For newly launched products, this reduces the need for live-action shooting, studio setup, post-production editing, and repetitive production. It quickly deploys video assets for new products, helping merchants shorten the launch cycle from spotting a popular video to breaking down the script and shooting new content.
1010
+ * - **Product explanation and selling point expression:** Suitable for products such as apparel, beauty and personal care, food and beverage, home and daily necessities, 3C digital products, and small home appliances. It can replicate the explanation structure, display actions, and camera rhythms based on the selling points of the original video to generate explanation videos tailored for the conversion of new products.
1011
+ * - **Multi-selling point and multi-version testing:** Quickly generates multiple versions based on different product selling points, target audiences, scripts, camera angles, and visual styles. This supports merchants in conducting content testing and iterating on delivered assets.
1012
+ * ## **Feature overview**
1013
+ * ### **Core features**
1014
+ * * **Supports two replacement modes:**
1015
+ *
1016
+ * * **Product replacement (**`product_replacement`**)**: Retains the original video host\\"s identity, actions, scene, and sales structure, and replaces the original product with the target product.
1017
+ *
1018
+ * * **Person replacement (**`person_replacement`**)**: Retains the original product, actions, scene, and sales structure, and replaces the person on camera with the target person from a reference image or description.
1019
+ *
1020
+ * * **Supports two generation modes:**
1021
+ *
1022
+ * * **Reference generation (**`reference`**)**: 1:1 replication. Uses the original video as a complete reference to automatically generate a new video with the same duration as the original video. It retains the original script, storyboard, actions, scene, and rhythm, and only performs targeted replacement of specified content such as persons or products.
1023
+ *
1024
+ * * **Rebuild generation (**`rebuild`**)**: Breaks down the script, storyboard, and key elements of the original video, retains only core content such as specified persons or products, and then redesigns and generates a new video. It is not limited by the duration of the original video and supports inputting a target duration.
1025
+ *
1026
+ * * **Fully automated end-to-end generation with zero prompt engineering required**: Only requires the reference video and target product or person images. The system automatically completes the entire process of video understanding, script planning, storyboard design, first-frame generation, and video synthesis.
1027
+ *
1028
+ * * **Product understanding and information structuring**: Identifies product categories, appearance, materials, colors, structures, and key components, and combines them with the titles, attributes, and selling points provided by the merchant to generate usable video expression information.
1029
+ *
1030
+ * * **Template video element replacement**: Supports replacing products or persons within the authorized scope, and defines the replacement scope and protection scope to minimize changes in non-target areas.
1031
+ *
1032
+ * * **Product subject consistency**: Maintains the stability of the product\\"s shape, color, texture, pattern, packaging, and logo as much as possible across different camera angles, perspectives, actions, and scenes.
1033
+ *
1034
+ * * **Product fidelity**: Multi-round VL quality inspection locks the product state (color, texture, structure, print) throughout the process to prevent product feature drift.
1035
+ *
1036
+ * * **Selling point script and storyboard replication**: Replicates the selling point planning, video structure, camera sequence, display actions, voiceover content, and ending style based on the original video.
1037
+ *
1038
+ * * **Commercial model adaptation**: Supports matching the corresponding model image and display method based on the product style, fit, target audience, and market demand.
1039
+ *
1040
+ * * **Quality verification and result feedback**: Performs multi-dimensional checks on the product subject, person, clothing, text, image integrity, audio, and overall usability, and outputs result information for manual review.
919
1041
  *
920
1042
  * @param request - EcomVideoRecreationRequest
921
1043
  * @returns EcomVideoRecreationResponse
@@ -1167,6 +1289,103 @@ class Client extends openapi_core_1.default {
1167
1289
  let runtime = new $dara.RuntimeOptions({});
1168
1290
  return await this.imageMattingWithOptions(request, runtime);
1169
1291
  }
1292
+ /**
1293
+ * Extracts the salient subject from an image, separates it from the background, and returns the subject image without the background. It also provides multiple background options and custom size options to optimize product display.
1294
+ *
1295
+ * @remarks
1296
+ * # Scenarios
1297
+ * * Supports secondary editing of materials: After the image subject is separated from the background, you can further edit the image.
1298
+ *
1299
+ * * Improves material processing efficiency: Quickly extracts the subjects from various material images for background replacement, which improves the production efficiency of advertising images and marketing posters.
1300
+ * # Features.
1301
+ * #### 1. One-click precise subject recognition
1302
+ * * **AI-based automatic recognition**: Based on deep learning models, it intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from the background without manual outlining.
1303
+ *
1304
+ * * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair, transparent objects, and fur edges) with an accuracy rate of over 95%.
1305
+ * #### 2. Intelligent edge optimization
1306
+ * * **Detail-level processing**: Performs automatic optimization on edge jaggies and semi-transparent areas (such as smoke and glass) to retain natural transition effects.
1307
+ * #### 3. Multi-format output and background operations
1308
+ * * **Transparent background export**: Directly generates PNG images with transparent or white backgrounds, which adapts to e-commerce and design scenarios.
1309
+ *
1310
+ * * **Supports custom background colors**
1311
+ * # Effect comparison
1312
+ * | **Original image (input)** | **Result image (output)** |
1313
+ * | --- | --- |
1314
+ * | ![Main image 3.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/62b39e16-5b30-469f-88cd-7f31ba790008.jpeg) | ![ae4cd8ce912c4d9fa171dc5217be576d_202605251928_0.5899999737739563.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/bfad041f-a8e0-4d6f-a2bf-999292ea9ebc.jpeg) |
1315
+ * | ![Main image 2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/b201b356-24b8-4f98-babc-c7fe918bdc37.jpeg) | ![52033655bd054737960a87518655d935_202605251926_5.959999978542328.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/8b266603-e80a-42dd-9d3d-6fa9f0948e52.jpeg) |
1316
+ * | ![Main image 6.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/d3c0d876-42a0-4294-8ce5-2a20df2deab9.jpeg) | ![abdecd31cc45450f83b33f9baf4499c6_202605251930_7.9700000286102295.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/5677f55e-4fe3-4978-a676-1ce71ad604b0.jpeg) |
1317
+ *
1318
+ * @param request - ImageMattingAsyncRequest
1319
+ * @param runtime - runtime options for this request RuntimeOptions
1320
+ * @returns ImageMattingAsyncResponse
1321
+ */
1322
+ async imageMattingAsyncWithOptions(request, runtime) {
1323
+ request.validate();
1324
+ let query = {};
1325
+ if (!$dara.isNull(request.backGroundType)) {
1326
+ query["BackGroundType"] = request.backGroundType;
1327
+ }
1328
+ if (!$dara.isNull(request.bgColor)) {
1329
+ query["BgColor"] = request.bgColor;
1330
+ }
1331
+ if (!$dara.isNull(request.imageUrl)) {
1332
+ query["ImageUrl"] = request.imageUrl;
1333
+ }
1334
+ if (!$dara.isNull(request.targetHeight)) {
1335
+ query["TargetHeight"] = request.targetHeight;
1336
+ }
1337
+ if (!$dara.isNull(request.targetWidth)) {
1338
+ query["TargetWidth"] = request.targetWidth;
1339
+ }
1340
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1341
+ query: openapi_core_2.OpenApiUtil.query(query),
1342
+ });
1343
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1344
+ action: "ImageMattingAsync",
1345
+ version: "2026-04-28",
1346
+ protocol: "HTTPS",
1347
+ pathname: "/",
1348
+ method: "POST",
1349
+ authType: "AK",
1350
+ style: "RPC",
1351
+ reqBodyType: "formData",
1352
+ bodyType: "json",
1353
+ });
1354
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageMattingAsyncResponse({}));
1355
+ }
1356
+ /**
1357
+ * Extracts the salient subject from an image, separates it from the background, and returns the subject image without the background. It also provides multiple background options and custom size options to optimize product display.
1358
+ *
1359
+ * @remarks
1360
+ * # Scenarios
1361
+ * * Supports secondary editing of materials: After the image subject is separated from the background, you can further edit the image.
1362
+ *
1363
+ * * Improves material processing efficiency: Quickly extracts the subjects from various material images for background replacement, which improves the production efficiency of advertising images and marketing posters.
1364
+ * # Features.
1365
+ * #### 1. One-click precise subject recognition
1366
+ * * **AI-based automatic recognition**: Based on deep learning models, it intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from the background without manual outlining.
1367
+ *
1368
+ * * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair, transparent objects, and fur edges) with an accuracy rate of over 95%.
1369
+ * #### 2. Intelligent edge optimization
1370
+ * * **Detail-level processing**: Performs automatic optimization on edge jaggies and semi-transparent areas (such as smoke and glass) to retain natural transition effects.
1371
+ * #### 3. Multi-format output and background operations
1372
+ * * **Transparent background export**: Directly generates PNG images with transparent or white backgrounds, which adapts to e-commerce and design scenarios.
1373
+ *
1374
+ * * **Supports custom background colors**
1375
+ * # Effect comparison
1376
+ * | **Original image (input)** | **Result image (output)** |
1377
+ * | --- | --- |
1378
+ * | ![Main image 3.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/62b39e16-5b30-469f-88cd-7f31ba790008.jpeg) | ![ae4cd8ce912c4d9fa171dc5217be576d_202605251928_0.5899999737739563.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/bfad041f-a8e0-4d6f-a2bf-999292ea9ebc.jpeg) |
1379
+ * | ![Main image 2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/b201b356-24b8-4f98-babc-c7fe918bdc37.jpeg) | ![52033655bd054737960a87518655d935_202605251926_5.959999978542328.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/8b266603-e80a-42dd-9d3d-6fa9f0948e52.jpeg) |
1380
+ * | ![Main image 6.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/d3c0d876-42a0-4294-8ce5-2a20df2deab9.jpeg) | ![abdecd31cc45450f83b33f9baf4499c6_202605251930_7.9700000286102295.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/a2QnV4jwexAy7O4X/img/5677f55e-4fe3-4978-a676-1ce71ad604b0.jpeg) |
1381
+ *
1382
+ * @param request - ImageMattingAsyncRequest
1383
+ * @returns ImageMattingAsyncResponse
1384
+ */
1385
+ async imageMattingAsync(request) {
1386
+ let runtime = new $dara.RuntimeOptions({});
1387
+ return await this.imageMattingAsyncWithOptions(request, runtime);
1388
+ }
1170
1389
  /**
1171
1390
  * Intelligent element recognition.
1172
1391
  *
@@ -1372,229 +1591,119 @@ class Client extends openapi_core_1.default {
1372
1591
  return await this.imageRecognitionWithOptions(request, runtime);
1373
1592
  }
1374
1593
  /**
1375
- * Intelligently erases unwanted elements from e-commerce images, automatically identifying and removing text, specific names, transparent text blocks, and watermarks. Supports specifying objects to erase as needed, enabling efficient and precise batch processing of images to simplify image editing workflows (synchronous/asynchronous).
1594
+ * Identifies specific elements in e-commerce images. It analyzes image details to help users quickly identify elements such as text, logos, watermarks, and text-containing color blocks in the main subject and background, significantly improving the efficiency and accuracy of image filtering.
1376
1595
  *
1377
1596
  * @remarks
1378
- * ## Product Introduction
1379
- * The Intelligent Image Eraser product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images. You can specify objects to erase as needed, enabling efficient and precise batch processing of images to simplify image editing workflows. (Synchronous/Asynchronous)
1380
- * ## Common scenarios
1381
- * * **Efficient e-commerce image processing:**
1597
+ * # Scenarios
1598
+ * 1. Intelligent image filtering and optimization:
1599
+ * Merchants and platforms can use the intelligent element recognition API to filter images and automatically identify images containing specific elements such as watermarks and logos. After filtering, they can further call the intelligent elimination API to optimize these images, improve image quality, and shorten the product release cycle.
1600
+ * 2. Automated image processing and efficiency improvement:
1601
+ * Through the intelligent element recognition API, merchants and platforms can automate the image processing workflow and automatically identify and mark image elements that need to be optimized. This workflow reduces manual intervention and improves the efficiency of image processing.
1602
+ * # Features
1603
+ * **1. Definitions of image subject, image background, text, logo, watermark, and text-containing color block: For details, see the relevant examples in the elimination documentation (reserved text link).**
1604
+ * * Image subject: The core product area in the image.
1382
1605
  *
1383
- * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
1384
- * * **Multi-platform product information synchronization:**
1606
+ * * Image background: The rest of the image other than the product subject.
1385
1607
  *
1386
- * When listing products across different e-commerce platforms, quickly remove specific text and watermarks to comply with image specifications of different platforms.
1387
- * ## Functions and features
1388
- * 1. First, understand the definitions of image subject and image background. When specifying objects to erase, you can choose whether the erasure scope is the image subject or the image background area. Both API and editor access methods are supported to meet different types of requirements.
1608
+ * * Text: Horizontal, vertical, or diagonal English or Chinese text.
1389
1609
  *
1390
- * 1. Image subject: the core product area in the image.
1610
+ * * Logo: A logo or trademark.
1391
1611
  *
1392
- * 2. Image background: the remaining part of the image other than the product subject.
1612
+ * * Watermark: Monochrome transparent text, logos, images, URLs, or store names.
1393
1613
  *
1394
- * 2. The following four types of objects can be erased: text, specific names, transparent text blocks, and watermarks. Refer to the following examples to clarify your requirements and perform targeted operations:
1395
- * ## Effect comparison
1396
- * | **Original image** | **Image after erasure** |
1397
- * | --- | --- |
1398
- * | ![主图1-豹纹大容量千禧单肩斜跨帆布包.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/AJdl65AyryVZyOke/img/4bd2c812-ed3c-45da-8a86-ebd29102f4b1.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/eff0eb1b-36df-431d-a010-3bb3b7348ff9.png) |
1399
- * | ![主图1-带柄超短半贴圆头法式假指甲.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/c44ac17b-3fa4-4a6f-b411-90f1062b183b.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/af779684-4aa5-49b0-8668-34ab8bd4bcc1.png) |
1614
+ * * Text-containing color block: A color block containing text outside the subject.
1400
1615
  *
1401
- * @param request - ImageRemovalProRequest
1402
- * @param runtime - runtime options for this request RuntimeOptions
1403
- * @returns ImageRemovalProResponse
1404
- */
1405
- async imageRemovalProWithOptions(request, runtime) {
1406
- request.validate();
1407
- let query = {};
1408
- if (!$dara.isNull(request.async)) {
1409
- query["Async"] = request.async;
1410
- }
1411
- if (!$dara.isNull(request.imageUrl)) {
1412
- query["ImageUrl"] = request.imageUrl;
1413
- }
1414
- let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1415
- query: openapi_core_2.OpenApiUtil.query(query),
1416
- });
1417
- let params = new openapi_core_2.$OpenApiUtil.Params({
1418
- action: "ImageRemovalPro",
1419
- version: "2026-04-28",
1420
- protocol: "HTTPS",
1421
- pathname: "/",
1422
- method: "POST",
1423
- authType: "AK",
1424
- style: "RPC",
1425
- reqBodyType: "formData",
1426
- bodyType: "json",
1427
- });
1428
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemovalProResponse({}));
1429
- }
1430
- /**
1431
- * Intelligently erases unwanted elements from e-commerce images, automatically identifying and removing text, specific names, transparent text blocks, and watermarks. Supports specifying objects to erase as needed, enabling efficient and precise batch processing of images to simplify image editing workflows (synchronous/asynchronous).
1616
+ * **2. The main features of the intelligent element recognition API include:**
1617
+ * * Element recognition: Identifies whether elements such as text, logos, watermarks, and text-containing color blocks exist in the image subject and background.
1432
1618
  *
1433
- * @remarks
1434
- * ## Product Introduction
1435
- * The Intelligent Image Eraser product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images. You can specify objects to erase as needed, enabling efficient and precise batch processing of images to simplify image editing workflows. (Synchronous/Asynchronous)
1436
- * ## Common scenarios
1437
- * * **Efficient e-commerce image processing:**
1619
+ * * Workflow collaboration: Used in combination with the intelligent elimination API. The intelligent element recognition API first identifies the elements to be removed, and then the intelligent elimination API effectively removes them to ensure the accuracy and efficiency of image processing.
1438
1620
  *
1439
- * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
1440
- * * **Multi-platform product information synchronization:**
1621
+ * **3. Technical advantages:**
1622
+ * * Synchronous batch processing: As a synchronous API, the intelligent element recognition API can process a large number of images while maintaining fast response, adapting to business needs of different scales.
1441
1623
  *
1442
- * When listing products across different e-commerce platforms, quickly remove specific text and watermarks to comply with image specifications of different platforms.
1443
- * ## Functions and features
1444
- * 1. First, understand the definitions of image subject and image background. When specifying objects to erase, you can choose whether the erasure scope is the image subject or the image background area. Both API and editor access methods are supported to meet different types of requirements.
1624
+ * * Flexibility: Users can select the types of elements to be recognized as needed, including elements in the subject and non-subject areas, such as watermarks, logos, and text, to meet personalized recognition needs.
1625
+ * # Effect comparison
1626
+ * | **Original image** | **Recognition result** |
1627
+ * | --- | --- |
1628
+ * | ![done-image-30091469-e1be-4d31-85de-18983a358a61.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/vBPlN5j4yM2KVOdG/img/bbd3dbca-9f91-4b57-a382-2701e90c0d46.png) | [Subject]
1629
+ * * Watermark: false
1445
1630
  *
1446
- * 1. Image subject: the core product area in the image.
1631
+ * * Logo: false
1447
1632
  *
1448
- * 2. Image background: the remaining part of the image other than the product subject.
1633
+ * * Text: false
1449
1634
  *
1450
- * 2. The following four types of objects can be erased: text, specific names, transparent text blocks, and watermarks. Refer to the following examples to clarify your requirements and perform targeted operations:
1451
- * ## Effect comparison
1452
- * | **Original image** | **Image after erasure** |
1453
- * | --- | --- |
1454
- * | ![主图1-豹纹大容量千禧单肩斜跨帆布包.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/AJdl65AyryVZyOke/img/4bd2c812-ed3c-45da-8a86-ebd29102f4b1.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/eff0eb1b-36df-431d-a010-3bb3b7348ff9.png) |
1455
- * | ![主图1-带柄超短半贴圆头法式假指甲.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/c44ac17b-3fa4-4a6f-b411-90f1062b183b.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/af779684-4aa5-49b0-8668-34ab8bd4bcc1.png) |
1635
+ * * Text-containing color block: false
1456
1636
  *
1457
- * @param request - ImageRemovalProRequest
1458
- * @returns ImageRemovalProResponse
1459
- */
1460
- async imageRemovalPro(request) {
1461
- let runtime = new $dara.RuntimeOptions({});
1462
- return await this.imageRemovalProWithOptions(request, runtime);
1463
- }
1464
- /**
1465
- * Intelligently removes unwanted elements from e-commerce images. This product automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of large volumes of images and simplifying image editing workflows. (Synchronous)
1637
+ * [Non-subject]
1638
+ * * Watermark: false
1466
1639
  *
1467
- * @remarks
1468
- * # Product Introduction
1469
- * The intelligent image removal product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of large volumes of images and simplifying image editing workflows. (Synchronous)
1470
- * # Common scenarios
1471
- * * **Efficient e-commerce image processing:**
1472
- *
1473
- * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
1474
- * * **Multi-platform product information synchronization:**
1475
- *
1476
- * When listing products across different e-commerce platforms, quickly remove specific text and image blemishes to comply with the image standards of each platform.
1477
- * * **Marketing material preparation:**
1478
- *
1479
- * Easily remove existing promotional information and quickly update images with the latest campaign details.
1480
- * > Note: Merchants or platforms can batch-remove impurities from images to optimize image quality. Use this product together with the Intelligent Recognition API (coming soon). First, filter out images that contain text, specific names, transparent text blocks, and image blemishes, and then use the Intelligent Removal API for batch removal. The Intelligent Recognition API focuses on "recognition", while the Intelligent Removal API focuses on "removal". By calling them in sequence, you can maximize removal effectiveness and reduce false removals and false identifications.
1481
- * # Features
1482
- * 1. First, understand the definitions of image subject and image background. When specifying objects to remove, you can choose whether the removal scope is the image subject or the image background area. Both API and editor access methods are supported to meet different requirements.
1483
- *
1484
- * 1. Image subject: The core product area in the image.
1485
- *
1486
- * 2. Image background: The remaining part of the image other than the product subject.
1487
- *
1488
- * 2. The following three types of removal targets are supported:
1489
- *
1490
- * 1. Select by type only. You can select text, specific names, transparent text blocks, and image blemishes. Refer to the following examples to clarify your requirements and perform targeted operations.
1491
- *
1492
- * 2. (Upgrade) Specify images to remove. You can specify multiple images at a time.
1493
- *
1494
- * 3. (Upgrade) Specify text to remove. You can specify multiple text strings at a time.
1495
- *
1496
- * Processing flow: User submits the original image URL → OCR + VLM model detects text or image positions → Determines the coordinates of areas to repair → AI repairs and generates a clean image → Returns the result image URL.
1497
- * # 4. Effect comparison
1498
- * | **Removable objects in images** | **Original image** | **Image after removal** |
1499
- * | --- | --- | --- |
1500
- * | Text | * Involves the image subject area
1501
- *
1502
- * ![done-image-4a2a96c2-9ac6-4b35-b76b-a6eac303740f (1).png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d72a7982-e761-4b45-af1e-f8f90b3f1fc3.png)
1503
- *
1504
- * * Does not involve the image subject area
1505
- *
1506
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involves the image subject area
1507
- *
1508
- * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
1509
- * * Does not involve the image subject area
1510
- *
1511
- * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
1512
- * | Specific names | * Involves the image subject area
1513
- *
1514
- * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
1515
- *
1516
- * * Does not involve the image subject area
1517
- *
1518
- * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involves the image subject area
1519
- *
1520
- * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
1521
- * * Does not involve the image subject area
1522
- *
1523
- * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
1524
- * | Transparent text blocks | * Involves the image subject area
1525
- *
1526
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
1640
+ * * Logo: true
1527
1641
  *
1528
- * * Does not involve the image subject area
1642
+ * * Text: true
1529
1643
  *
1530
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involves the image subject area
1644
+ * * Text-containing color block: false |
1645
+ * | ![image-1781169602620.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/vBPlN5j4yM2KVOdG/img/6bcbd976-0de1-4b5e-855b-56e20a9c675c.png) | [Subject]
1646
+ * * Watermark: false
1531
1647
  *
1532
- * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
1533
- * * Does not involve the image subject area
1648
+ * * Logo: false
1534
1649
  *
1535
- * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
1536
- * | Image blemishes | * Involves the image subject area
1650
+ * * Text: false
1537
1651
  *
1538
- * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
1652
+ * * Text-containing color block: false
1539
1653
  *
1540
- * * Does not involve the image subject area
1654
+ * [Non-subject]
1655
+ * * Watermark: true
1541
1656
  *
1542
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involves the image subject area
1657
+ * * Logo: false
1543
1658
  *
1544
- * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
1545
- * * Does not involve the image subject area
1659
+ * * Text: true
1546
1660
  *
1547
- * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
1548
- * | Specified image element removal (supports multiple image links) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/9297951f-53c1-4476-8c69-5c31df3fce21.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ef3f35aa-609f-454c-bba0-dd1710c83945.png) |
1549
- * | Specified text removal (supports multiple text strings) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c784d8be-4b4d-4972-8b99-828c742b8f03.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/805423ca-bd0d-4d44-a18e-a7d7bfe88587.png) |
1661
+ * * Text-containing color block: true |
1550
1662
  *
1551
- * @param tmpReq - ImageRemoveRequest
1663
+ * @param tmpReq - ImageRecognitionAsyncRequest
1552
1664
  * @param runtime - runtime options for this request RuntimeOptions
1553
- * @returns ImageRemoveResponse
1665
+ * @returns ImageRecognitionAsyncResponse
1554
1666
  */
1555
- async imageRemoveWithOptions(tmpReq, runtime) {
1667
+ async imageRecognitionAsyncWithOptions(tmpReq, runtime) {
1556
1668
  tmpReq.validate();
1557
- let request = new $_model.ImageRemoveShrinkRequest({});
1669
+ let request = new $_model.ImageRecognitionAsyncShrinkRequest({});
1558
1670
  openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1559
- if (!$dara.isNull(tmpReq.nonObjectRemoveElements)) {
1560
- request.nonObjectRemoveElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonObjectRemoveElements, "NonObjectRemoveElements", "json");
1561
- }
1562
- if (!$dara.isNull(tmpReq.objectRemoveElements)) {
1563
- request.objectRemoveElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectRemoveElements, "ObjectRemoveElements", "json");
1564
- }
1565
- if (!$dara.isNull(tmpReq.userImage)) {
1566
- request.userImageShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userImage, "UserImage", "json");
1671
+ if (!$dara.isNull(tmpReq.nonObjectDetectElements)) {
1672
+ request.nonObjectDetectElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonObjectDetectElements, "NonObjectDetectElements", "json");
1567
1673
  }
1568
- if (!$dara.isNull(tmpReq.userText)) {
1569
- request.userTextShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userText, "UserText", "json");
1674
+ if (!$dara.isNull(tmpReq.objectDetectElements)) {
1675
+ request.objectDetectElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectDetectElements, "ObjectDetectElements", "json");
1570
1676
  }
1571
1677
  let query = {};
1572
1678
  if (!$dara.isNull(request.imageUrl)) {
1573
1679
  query["ImageUrl"] = request.imageUrl;
1574
1680
  }
1575
- if (!$dara.isNull(request.mask)) {
1576
- query["Mask"] = request.mask;
1681
+ if (!$dara.isNull(request.nonObjectDetectElementsShrink)) {
1682
+ query["NonObjectDetectElements"] = request.nonObjectDetectElementsShrink;
1577
1683
  }
1578
- if (!$dara.isNull(request.nonObjectRemoveElementsShrink)) {
1579
- query["NonObjectRemoveElements"] = request.nonObjectRemoveElementsShrink;
1684
+ if (!$dara.isNull(request.objectDetectElementsShrink)) {
1685
+ query["ObjectDetectElements"] = request.objectDetectElementsShrink;
1580
1686
  }
1581
- if (!$dara.isNull(request.objectRemoveElementsShrink)) {
1582
- query["ObjectRemoveElements"] = request.objectRemoveElementsShrink;
1687
+ if (!$dara.isNull(request.returnBorderPixel)) {
1688
+ query["ReturnBorderPixel"] = request.returnBorderPixel;
1583
1689
  }
1584
- if (!$dara.isNull(request.position)) {
1585
- query["Position"] = request.position;
1690
+ if (!$dara.isNull(request.returnCharacter)) {
1691
+ query["ReturnCharacter"] = request.returnCharacter;
1586
1692
  }
1587
- if (!$dara.isNull(request.userImageShrink)) {
1588
- query["UserImage"] = request.userImageShrink;
1693
+ if (!$dara.isNull(request.returnCharacterProp)) {
1694
+ query["ReturnCharacterProp"] = request.returnCharacterProp;
1589
1695
  }
1590
- if (!$dara.isNull(request.userTextShrink)) {
1591
- query["UserText"] = request.userTextShrink;
1696
+ if (!$dara.isNull(request.returnProductNum)) {
1697
+ query["ReturnProductNum"] = request.returnProductNum;
1698
+ }
1699
+ if (!$dara.isNull(request.returnProductProp)) {
1700
+ query["ReturnProductProp"] = request.returnProductProp;
1592
1701
  }
1593
1702
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1594
1703
  query: openapi_core_2.OpenApiUtil.query(query),
1595
1704
  });
1596
1705
  let params = new openapi_core_2.$OpenApiUtil.Params({
1597
- action: "ImageRemove",
1706
+ action: "ImageRecognitionAsync",
1598
1707
  version: "2026-04-28",
1599
1708
  protocol: "HTTPS",
1600
1709
  pathname: "/",
@@ -1604,266 +1713,130 @@ class Client extends openapi_core_1.default {
1604
1713
  reqBodyType: "formData",
1605
1714
  bodyType: "json",
1606
1715
  });
1607
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemoveResponse({}));
1716
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRecognitionAsyncResponse({}));
1608
1717
  }
1609
1718
  /**
1610
- * Intelligently removes unwanted elements from e-commerce images. This product automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of large volumes of images and simplifying image editing workflows. (Synchronous)
1719
+ * Identifies specific elements in e-commerce images. It analyzes image details to help users quickly identify elements such as text, logos, watermarks, and text-containing color blocks in the main subject and background, significantly improving the efficiency and accuracy of image filtering.
1611
1720
  *
1612
1721
  * @remarks
1613
- * # Product Introduction
1614
- * The intelligent image removal product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of large volumes of images and simplifying image editing workflows. (Synchronous)
1615
- * # Common scenarios
1616
- * * **Efficient e-commerce image processing:**
1617
- *
1618
- * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
1619
- * * **Multi-platform product information synchronization:**
1620
- *
1621
- * When listing products across different e-commerce platforms, quickly remove specific text and image blemishes to comply with the image standards of each platform.
1622
- * * **Marketing material preparation:**
1623
- *
1624
- * Easily remove existing promotional information and quickly update images with the latest campaign details.
1625
- * > Note: Merchants or platforms can batch-remove impurities from images to optimize image quality. Use this product together with the Intelligent Recognition API (coming soon). First, filter out images that contain text, specific names, transparent text blocks, and image blemishes, and then use the Intelligent Removal API for batch removal. The Intelligent Recognition API focuses on "recognition", while the Intelligent Removal API focuses on "removal". By calling them in sequence, you can maximize removal effectiveness and reduce false removals and false identifications.
1722
+ * # Scenarios
1723
+ * 1. Intelligent image filtering and optimization:
1724
+ * Merchants and platforms can use the intelligent element recognition API to filter images and automatically identify images containing specific elements such as watermarks and logos. After filtering, they can further call the intelligent elimination API to optimize these images, improve image quality, and shorten the product release cycle.
1725
+ * 2. Automated image processing and efficiency improvement:
1726
+ * Through the intelligent element recognition API, merchants and platforms can automate the image processing workflow and automatically identify and mark image elements that need to be optimized. This workflow reduces manual intervention and improves the efficiency of image processing.
1626
1727
  * # Features
1627
- * 1. First, understand the definitions of image subject and image background. When specifying objects to remove, you can choose whether the removal scope is the image subject or the image background area. Both API and editor access methods are supported to meet different requirements.
1628
- *
1629
- * 1. Image subject: The core product area in the image.
1630
- *
1631
- * 2. Image background: The remaining part of the image other than the product subject.
1632
- *
1633
- * 2. The following three types of removal targets are supported:
1634
- *
1635
- * 1. Select by type only. You can select text, specific names, transparent text blocks, and image blemishes. Refer to the following examples to clarify your requirements and perform targeted operations.
1728
+ * **1. Definitions of image subject, image background, text, logo, watermark, and text-containing color block: For details, see the relevant examples in the elimination documentation (reserved text link).**
1729
+ * * Image subject: The core product area in the image.
1636
1730
  *
1637
- * 2. (Upgrade) Specify images to remove. You can specify multiple images at a time.
1731
+ * * Image background: The rest of the image other than the product subject.
1638
1732
  *
1639
- * 3. (Upgrade) Specify text to remove. You can specify multiple text strings at a time.
1733
+ * * Text: Horizontal, vertical, or diagonal English or Chinese text.
1640
1734
  *
1641
- * Processing flow: User submits the original image URL → OCR + VLM model detects text or image positions → Determines the coordinates of areas to repair → AI repairs and generates a clean image → Returns the result image URL.
1642
- * # 4. Effect comparison
1643
- * | **Removable objects in images** | **Original image** | **Image after removal** |
1644
- * | --- | --- | --- |
1645
- * | Text | * Involves the image subject area
1735
+ * * Logo: A logo or trademark.
1646
1736
  *
1647
- * ![done-image-4a2a96c2-9ac6-4b35-b76b-a6eac303740f (1).png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d72a7982-e761-4b45-af1e-f8f90b3f1fc3.png)
1737
+ * * Watermark: Monochrome transparent text, logos, images, URLs, or store names.
1648
1738
  *
1649
- * * Does not involve the image subject area
1739
+ * * Text-containing color block: A color block containing text outside the subject.
1650
1740
  *
1651
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involves the image subject area
1741
+ * **2. The main features of the intelligent element recognition API include:**
1742
+ * * Element recognition: Identifies whether elements such as text, logos, watermarks, and text-containing color blocks exist in the image subject and background.
1652
1743
  *
1653
- * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
1654
- * * Does not involve the image subject area
1744
+ * * Workflow collaboration: Used in combination with the intelligent elimination API. The intelligent element recognition API first identifies the elements to be removed, and then the intelligent elimination API effectively removes them to ensure the accuracy and efficiency of image processing.
1655
1745
  *
1656
- * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
1657
- * | Specific names | * Involves the image subject area
1746
+ * **3. Technical advantages:**
1747
+ * * Synchronous batch processing: As a synchronous API, the intelligent element recognition API can process a large number of images while maintaining fast response, adapting to business needs of different scales.
1658
1748
  *
1659
- * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
1749
+ * * Flexibility: Users can select the types of elements to be recognized as needed, including elements in the subject and non-subject areas, such as watermarks, logos, and text, to meet personalized recognition needs.
1750
+ * # Effect comparison
1751
+ * | **Original image** | **Recognition result** |
1752
+ * | --- | --- |
1753
+ * | ![done-image-30091469-e1be-4d31-85de-18983a358a61.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/vBPlN5j4yM2KVOdG/img/bbd3dbca-9f91-4b57-a382-2701e90c0d46.png) | [Subject]
1754
+ * * Watermark: false
1660
1755
  *
1661
- * * Does not involve the image subject area
1756
+ * * Logo: false
1662
1757
  *
1663
- * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involves the image subject area
1758
+ * * Text: false
1664
1759
  *
1665
- * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
1666
- * * Does not involve the image subject area
1760
+ * * Text-containing color block: false
1667
1761
  *
1668
- * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
1669
- * | Transparent text blocks | * Involves the image subject area
1762
+ * [Non-subject]
1763
+ * * Watermark: false
1670
1764
  *
1671
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
1765
+ * * Logo: true
1672
1766
  *
1673
- * * Does not involve the image subject area
1767
+ * * Text: true
1674
1768
  *
1675
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involves the image subject area
1769
+ * * Text-containing color block: false |
1770
+ * | ![image-1781169602620.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/vBPlN5j4yM2KVOdG/img/6bcbd976-0de1-4b5e-855b-56e20a9c675c.png) | [Subject]
1771
+ * * Watermark: false
1676
1772
  *
1677
- * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
1678
- * * Does not involve the image subject area
1773
+ * * Logo: false
1679
1774
  *
1680
- * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
1681
- * | Image blemishes | * Involves the image subject area
1775
+ * * Text: false
1682
1776
  *
1683
- * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
1777
+ * * Text-containing color block: false
1684
1778
  *
1685
- * * Does not involve the image subject area
1779
+ * [Non-subject]
1780
+ * * Watermark: true
1686
1781
  *
1687
- * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involves the image subject area
1782
+ * * Logo: false
1688
1783
  *
1689
- * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
1690
- * * Does not involve the image subject area
1784
+ * * Text: true
1691
1785
  *
1692
- * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
1693
- * | Specified image element removal (supports multiple image links) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/9297951f-53c1-4476-8c69-5c31df3fce21.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ef3f35aa-609f-454c-bba0-dd1710c83945.png) |
1694
- * | Specified text removal (supports multiple text strings) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c784d8be-4b4d-4972-8b99-828c742b8f03.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/805423ca-bd0d-4d44-a18e-a7d7bfe88587.png) |
1786
+ * * Text-containing color block: true |
1695
1787
  *
1696
- * @param request - ImageRemoveRequest
1697
- * @returns ImageRemoveResponse
1788
+ * @param request - ImageRecognitionAsyncRequest
1789
+ * @returns ImageRecognitionAsyncResponse
1698
1790
  */
1699
- async imageRemove(request) {
1791
+ async imageRecognitionAsync(request) {
1700
1792
  let runtime = new $dara.RuntimeOptions({});
1701
- return await this.imageRemoveWithOptions(request, runtime);
1793
+ return await this.imageRecognitionAsyncWithOptions(request, runtime);
1702
1794
  }
1703
1795
  /**
1704
- * 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. We recommend using it for the following 12 language pairs, with more language pairs to be supported in the future.
1796
+ * Intelligently erases unwanted elements from e-commerce images, automatically identifying and removing text, specific names, transparent text blocks, and watermarks. Supports specifying objects to erase as needed, enabling efficient and precise batch processing of images to simplify image editing workflows (synchronous/asynchronous).
1705
1797
  *
1706
1798
  * @remarks
1707
1799
  * ## Product Introduction
1708
- * 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. We recommend using it for the following 8 language pairs, with more language pairs to be supported in the future.
1709
- * Supported language pairs:
1710
- * | **No.** | **Source language** | | **Target language** | |
1711
- * | --- | --- | --- | --- | --- |
1712
- * | | Language code | Language name | Language code | Language name |
1713
- * | 1 | en | English | ar | Arabic |
1714
- * | 2 | en | English | id | Indonesian |
1715
- * | 3 | en | English | th | Thai |
1716
- * | 4 | en | English | ko | Korean |
1717
- * | 5 | en | English | ja | Japanese |
1718
- * | 6 | en | English | vi | Vietnamese |
1719
- * | 7 | en | English | ru | Russian |
1720
- * | 8 | en | English | tl | Filipino |
1721
- * | 9 | en | English | es | Spanish |
1722
- * | 10 | en | English | fr | French |
1723
- * | 11 | en | English | de | German |
1724
- * | 12 | en | English | pl | Polish |
1725
- * ## Scenarios
1726
- * Main product images and detail images for cross-border e-commerce.
1727
- * ## Features
1728
- * * **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.
1800
+ * The Intelligent Image Eraser product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images. You can specify objects to erase as needed, enabling efficient and precise batch processing of images to simplify image editing workflows. (Synchronous/Asynchronous)
1801
+ * ## Common scenarios
1802
+ * * **Efficient e-commerce image processing:**
1729
1803
  *
1730
- * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
1804
+ * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
1805
+ * * **Multi-platform product information synchronization:**
1731
1806
  *
1732
- * * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC-ABC), specifying a translation (ABC-DEF), or removing text (ABC-empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API operation. This meets your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1807
+ * When listing products across different e-commerce platforms, quickly remove specific text and watermarks to comply with image specifications of different platforms.
1808
+ * ## Functions and features
1809
+ * 1. First, understand the definitions of image subject and image background. When specifying objects to erase, you can choose whether the erasure scope is the image subject or the image background area. Both API and editor access methods are supported to meet different types of requirements.
1733
1810
  *
1734
- * @param request - ImageTranslationPlusRequest
1735
- * @param runtime - runtime options for this request RuntimeOptions
1736
- * @returns ImageTranslationPlusResponse
1737
- */
1738
- async imageTranslationPlusWithOptions(request, runtime) {
1739
- request.validate();
1740
- let body = {};
1741
- if (!$dara.isNull(request.glossary)) {
1742
- body["Glossary"] = request.glossary;
1743
- }
1744
- if (!$dara.isNull(request.imageUrl)) {
1745
- body["ImageUrl"] = request.imageUrl;
1746
- }
1747
- if (!$dara.isNull(request.includingProductArea)) {
1748
- body["IncludingProductArea"] = request.includingProductArea;
1749
- }
1750
- if (!$dara.isNull(request.sourceLanguage)) {
1751
- body["SourceLanguage"] = request.sourceLanguage;
1752
- }
1753
- if (!$dara.isNull(request.targetLanguage)) {
1754
- body["TargetLanguage"] = request.targetLanguage;
1755
- }
1756
- if (!$dara.isNull(request.translatingBrandInTheProduct)) {
1757
- body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
1758
- }
1759
- if (!$dara.isNull(request.useImageEditor)) {
1760
- body["UseImageEditor"] = request.useImageEditor;
1761
- }
1762
- let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1763
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
1764
- });
1765
- let params = new openapi_core_2.$OpenApiUtil.Params({
1766
- action: "ImageTranslationPlus",
1767
- version: "2026-04-28",
1768
- protocol: "HTTPS",
1769
- pathname: "/",
1770
- method: "POST",
1771
- authType: "AK",
1772
- style: "RPC",
1773
- reqBodyType: "formData",
1774
- bodyType: "json",
1775
- });
1776
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusResponse({}));
1777
- }
1778
- /**
1779
- * 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. We recommend using it for the following 12 language pairs, with more language pairs to be supported in the future.
1780
- *
1781
- * @remarks
1782
- * ## Product Introduction
1783
- * 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. We recommend using it for the following 8 language pairs, with more language pairs to be supported in the future.
1784
- * Supported language pairs:
1785
- * | **No.** | **Source language** | | **Target language** | |
1786
- * | --- | --- | --- | --- | --- |
1787
- * | | Language code | Language name | Language code | Language name |
1788
- * | 1 | en | English | ar | Arabic |
1789
- * | 2 | en | English | id | Indonesian |
1790
- * | 3 | en | English | th | Thai |
1791
- * | 4 | en | English | ko | Korean |
1792
- * | 5 | en | English | ja | Japanese |
1793
- * | 6 | en | English | vi | Vietnamese |
1794
- * | 7 | en | English | ru | Russian |
1795
- * | 8 | en | English | tl | Filipino |
1796
- * | 9 | en | English | es | Spanish |
1797
- * | 10 | en | English | fr | French |
1798
- * | 11 | en | English | de | German |
1799
- * | 12 | en | English | pl | Polish |
1800
- * ## Scenarios
1801
- * Main product images and detail images for cross-border e-commerce.
1802
- * ## Features
1803
- * * **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.
1804
- *
1805
- * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
1806
- *
1807
- * * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC-ABC), specifying a translation (ABC-DEF), or removing text (ABC-empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API operation. This meets your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1811
+ * 1. Image subject: the core product area in the image.
1808
1812
  *
1809
- * @param request - ImageTranslationPlusRequest
1810
- * @returns ImageTranslationPlusResponse
1811
- */
1812
- async imageTranslationPlus(request) {
1813
- let runtime = new $dara.RuntimeOptions({});
1814
- return await this.imageTranslationPlusWithOptions(request, runtime);
1815
- }
1816
- /**
1817
- * Image Translation Pro is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
1813
+ * 2. Image background: the remaining part of the image other than the product subject.
1818
1814
  *
1819
- * @remarks
1820
- * ## Product Introduction
1821
- * Image Translation Pro is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
1822
- * ## Scenarios
1823
- * E-commerce product images, marketing images, and images for various other scenarios.
1824
- * ## Features
1825
- * - **Product subject protection**: Specify whether to translate text on the product subject. This helps you protect subject information from being translated, such as embedded information like product names.
1826
- * - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
1827
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps you protect brand name information from being translated.
1828
- * - **Translation intervention**: Customize translation results, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and remove text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1829
- * - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1815
+ * 2. The following four types of objects can be erased: text, specific names, transparent text blocks, and watermarks. Refer to the following examples to clarify your requirements and perform targeted operations:
1816
+ * ## Effect comparison
1817
+ * | **Original image** | **Image after erasure** |
1818
+ * | --- | --- |
1819
+ * | ![主图1-豹纹大容量千禧单肩斜跨帆布包.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/AJdl65AyryVZyOke/img/4bd2c812-ed3c-45da-8a86-ebd29102f4b1.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/eff0eb1b-36df-431d-a010-3bb3b7348ff9.png) |
1820
+ * | ![主图1-带柄超短半贴圆头法式假指甲.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/c44ac17b-3fa4-4a6f-b411-90f1062b183b.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/af779684-4aa5-49b0-8668-34ab8bd4bcc1.png) |
1830
1821
  *
1831
- * @param request - ImageTranslationProRequest
1822
+ * @param request - ImageRemovalProRequest
1832
1823
  * @param runtime - runtime options for this request RuntimeOptions
1833
- * @returns ImageTranslationProResponse
1824
+ * @returns ImageRemovalProResponse
1834
1825
  */
1835
- async imageTranslationProWithOptions(request, runtime) {
1826
+ async imageRemovalProWithOptions(request, runtime) {
1836
1827
  request.validate();
1837
- let body = {};
1828
+ let query = {};
1838
1829
  if (!$dara.isNull(request.async)) {
1839
- body["Async"] = request.async;
1840
- }
1841
- if (!$dara.isNull(request.glossary)) {
1842
- body["Glossary"] = request.glossary;
1830
+ query["Async"] = request.async;
1843
1831
  }
1844
1832
  if (!$dara.isNull(request.imageUrl)) {
1845
- body["ImageUrl"] = request.imageUrl;
1846
- }
1847
- if (!$dara.isNull(request.includingProductArea)) {
1848
- body["IncludingProductArea"] = request.includingProductArea;
1849
- }
1850
- if (!$dara.isNull(request.sourceLanguage)) {
1851
- body["SourceLanguage"] = request.sourceLanguage;
1852
- }
1853
- if (!$dara.isNull(request.targetLanguage)) {
1854
- body["TargetLanguage"] = request.targetLanguage;
1855
- }
1856
- if (!$dara.isNull(request.translatingBrandInTheProduct)) {
1857
- body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
1858
- }
1859
- if (!$dara.isNull(request.useImageEditor)) {
1860
- body["UseImageEditor"] = request.useImageEditor;
1833
+ query["ImageUrl"] = request.imageUrl;
1861
1834
  }
1862
1835
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1863
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
1836
+ query: openapi_core_2.OpenApiUtil.query(query),
1864
1837
  });
1865
1838
  let params = new openapi_core_2.$OpenApiUtil.Params({
1866
- action: "ImageTranslationPro",
1839
+ action: "ImageRemovalPro",
1867
1840
  version: "2026-04-28",
1868
1841
  protocol: "HTTPS",
1869
1842
  pathname: "/",
@@ -1873,81 +1846,80 @@ class Client extends openapi_core_1.default {
1873
1846
  reqBodyType: "formData",
1874
1847
  bodyType: "json",
1875
1848
  });
1876
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
1849
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemovalProResponse({}));
1877
1850
  }
1878
1851
  /**
1879
- * Image Translation Pro is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
1852
+ * Intelligently erases unwanted elements from e-commerce images, automatically identifying and removing text, specific names, transparent text blocks, and watermarks. Supports specifying objects to erase as needed, enabling efficient and precise batch processing of images to simplify image editing workflows (synchronous/asynchronous).
1880
1853
  *
1881
1854
  * @remarks
1882
1855
  * ## Product Introduction
1883
- * Image Translation Pro is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. It supports more than 400 language directions (including bridged directions).
1884
- * ## Scenarios
1885
- * E-commerce product images, marketing images, and images for various other scenarios.
1886
- * ## Features
1887
- * - **Product subject protection**: Specify whether to translate text on the product subject. This helps you protect subject information from being translated, such as embedded information like product names.
1888
- * - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
1889
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps you protect brand name information from being translated.
1890
- * - **Translation intervention**: Customize translation results, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and remove text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1891
- * - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1856
+ * The Intelligent Image Eraser product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and watermarks from e-commerce images. You can specify objects to erase as needed, enabling efficient and precise batch processing of images to simplify image editing workflows. (Synchronous/Asynchronous)
1857
+ * ## Common scenarios
1858
+ * * **Efficient e-commerce image processing:**
1892
1859
  *
1893
- * @param request - ImageTranslationProRequest
1894
- * @returns ImageTranslationProResponse
1860
+ * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
1861
+ * * **Multi-platform product information synchronization:**
1862
+ *
1863
+ * When listing products across different e-commerce platforms, quickly remove specific text and watermarks to comply with image specifications of different platforms.
1864
+ * ## Functions and features
1865
+ * 1. First, understand the definitions of image subject and image background. When specifying objects to erase, you can choose whether the erasure scope is the image subject or the image background area. Both API and editor access methods are supported to meet different types of requirements.
1866
+ *
1867
+ * 1. Image subject: the core product area in the image.
1868
+ *
1869
+ * 2. Image background: the remaining part of the image other than the product subject.
1870
+ *
1871
+ * 2. The following four types of objects can be erased: text, specific names, transparent text blocks, and watermarks. Refer to the following examples to clarify your requirements and perform targeted operations:
1872
+ * ## Effect comparison
1873
+ * | **Original image** | **Image after erasure** |
1874
+ * | --- | --- |
1875
+ * | ![主图1-豹纹大容量千禧单肩斜跨帆布包.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/AJdl65AyryVZyOke/img/4bd2c812-ed3c-45da-8a86-ebd29102f4b1.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/eff0eb1b-36df-431d-a010-3bb3b7348ff9.png) |
1876
+ * | ![主图1-带柄超短半贴圆头法式假指甲.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/c44ac17b-3fa4-4a6f-b411-90f1062b183b.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/af779684-4aa5-49b0-8668-34ab8bd4bcc1.png) |
1877
+ *
1878
+ * @param request - ImageRemovalProRequest
1879
+ * @returns ImageRemovalProResponse
1895
1880
  */
1896
- async imageTranslationPro(request) {
1881
+ async imageRemovalPro(request) {
1897
1882
  let runtime = new $dara.RuntimeOptions({});
1898
- return await this.imageTranslationProWithOptions(request, runtime);
1883
+ return await this.imageRemovalProWithOptions(request, runtime);
1899
1884
  }
1900
1885
  /**
1901
- * Image Translation is designed specifically for e-commerce images. It supports more than 400 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, which facilitates secondary editing of translation results through an image editor.
1886
+ * Erases text, specific names, transparent text blocks, and watermarks from e-commerce images. This feature automatically identifies these elements and allows you to specify objects to be removed, enabling efficient and accurate processing of large batches of images to simplify image editing.
1902
1887
  *
1903
1888
  * @remarks
1904
- * # 1. Product Introduction
1905
- * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, which facilitates secondary editing of translation results through an image editor.
1906
- * # 2. Common scenarios
1907
- * E-commerce product images, marketing images, and images for various other scenarios.
1908
- * # 3. Features
1909
- * * **Product area protection**: You can choose whether to translate text on the product area of an image. This helps protect product area information from being translated, such as embedded product names.
1889
+ * ## Scenarios
1890
+ * * **Efficient e-commerce image processing:**
1891
+ * Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
1892
+ * * **Multi-platform product information synchronization:**
1893
+ * When merchants list products on different e-commerce platforms, they can quickly remove specific text and watermarks to comply with the image specifications of different platforms.
1894
+ * ## Features
1895
+ * 1. First, clarify the definitions of the image subject and the image background. In actual use, when specifying the objects to be removed, you can choose to remove them from the image subject or the image background. Both API and editor integration methods are supported to meet different types of requirements.
1910
1896
  *
1911
- * * **Brand name protection**: You can choose whether to translate brand names on images. This helps protect brand name information from being translated.
1897
+ * 1. Image subject: the core product area in the image.
1912
1898
  *
1913
- * * **Secondary editing after translation (layer information)**: You can choose whether to return layer information such as text position, font, and color. This information can be used to connect to an image editor for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
1899
+ * 2. Image background: the rest of the image other than the product subject.
1914
1900
  *
1915
- * * **Translation intervention**: You can customize translation results, including keeping text untranslated (ABC-ABC), specifying translations (ABC-DEF), or removing text (ABC-empty value). This is commonly used for scenarios such as brand name protection. Simply pass the corresponding intervention glossary ID when calling the API operation. This meets your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1916
- * * **Image editor integration**: For more information, see [Image Translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1901
+ * 2. Second, the objects to be removed support the following four types: text, specific names, transparent text blocks, and watermarks. You can refer to the following examples to clarify your usage requirements and perform targeted operations:
1902
+ * ## Before and after
1903
+ * | **Original image** | **Erased image** |
1904
+ * | --- | --- |
1905
+ * | ![Main image 1 - Leopard print large capacity crossbody canvas bag.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/AJdl65AyryVZyOke/img/4bd2c812-ed3c-45da-8a86-ebd29102f4b1.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/eff0eb1b-36df-431d-a010-3bb3b7348ff9.png) |
1906
+ * | ![Main image 1 - Short half-cover round-tip French false nails with handle.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/c44ac17b-3fa4-4a6f-b411-90f1062b183b.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/af779684-4aa5-49b0-8668-34ab8bd4bcc1.png) |
1917
1907
  *
1918
- * @param request - ImageTranslationStandardRequest
1908
+ * @param request - ImageRemovalProAsyncRequest
1919
1909
  * @param runtime - runtime options for this request RuntimeOptions
1920
- * @returns ImageTranslationStandardResponse
1910
+ * @returns ImageRemovalProAsyncResponse
1921
1911
  */
1922
- async imageTranslationStandardWithOptions(request, runtime) {
1912
+ async imageRemovalProAsyncWithOptions(request, runtime) {
1923
1913
  request.validate();
1924
1914
  let query = {};
1925
- if (!$dara.isNull(request.glossary)) {
1926
- query["Glossary"] = request.glossary;
1927
- }
1928
1915
  if (!$dara.isNull(request.imageUrl)) {
1929
1916
  query["ImageUrl"] = request.imageUrl;
1930
1917
  }
1931
- if (!$dara.isNull(request.includingProductArea)) {
1932
- query["IncludingProductArea"] = request.includingProductArea;
1933
- }
1934
- if (!$dara.isNull(request.sourceLanguage)) {
1935
- query["SourceLanguage"] = request.sourceLanguage;
1936
- }
1937
- if (!$dara.isNull(request.targetLanguage)) {
1938
- query["TargetLanguage"] = request.targetLanguage;
1939
- }
1940
- if (!$dara.isNull(request.translatingBrandInTheProduct)) {
1941
- query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
1942
- }
1943
- if (!$dara.isNull(request.useImageEditor)) {
1944
- query["UseImageEditor"] = request.useImageEditor;
1945
- }
1946
1918
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1947
1919
  query: openapi_core_2.OpenApiUtil.query(query),
1948
1920
  });
1949
1921
  let params = new openapi_core_2.$OpenApiUtil.Params({
1950
- action: "ImageTranslationStandard",
1922
+ action: "ImageRemovalProAsync",
1951
1923
  version: "2026-04-28",
1952
1924
  protocol: "HTTPS",
1953
1925
  pathname: "/",
@@ -1957,83 +1929,1133 @@ class Client extends openapi_core_1.default {
1957
1929
  reqBodyType: "formData",
1958
1930
  bodyType: "json",
1959
1931
  });
1960
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardResponse({}));
1932
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemovalProAsyncResponse({}));
1961
1933
  }
1962
1934
  /**
1963
- * Image Translation is designed specifically for e-commerce images. It supports more than 400 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, which facilitates secondary editing of translation results through an image editor.
1935
+ * Erases text, specific names, transparent text blocks, and watermarks from e-commerce images. This feature automatically identifies these elements and allows you to specify objects to be removed, enabling efficient and accurate processing of large batches of images to simplify image editing.
1964
1936
  *
1965
1937
  * @remarks
1966
- * # 1. Product Introduction
1967
- * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions (including bridging), accurately processes complex text layouts within images, and ensures that translated content matches the image content. This helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color within images, which facilitates secondary editing of translation results through an image editor.
1968
- * # 2. Common scenarios
1969
- * E-commerce product images, marketing images, and images for various other scenarios.
1970
- * # 3. Features
1971
- * * **Product area protection**: You can choose whether to translate text on the product area of an image. This helps protect product area information from being translated, such as embedded product names.
1938
+ * ## Scenarios
1939
+ * * **Efficient e-commerce image processing:**
1940
+ * Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
1941
+ * * **Multi-platform product information synchronization:**
1942
+ * When merchants list products on different e-commerce platforms, they can quickly remove specific text and watermarks to comply with the image specifications of different platforms.
1943
+ * ## Features
1944
+ * 1. First, clarify the definitions of the image subject and the image background. In actual use, when specifying the objects to be removed, you can choose to remove them from the image subject or the image background. Both API and editor integration methods are supported to meet different types of requirements.
1972
1945
  *
1973
- * * **Brand name protection**: You can choose whether to translate brand names on images. This helps protect brand name information from being translated.
1946
+ * 1. Image subject: the core product area in the image.
1974
1947
  *
1975
- * * **Secondary editing after translation (layer information)**: You can choose whether to return layer information such as text position, font, and color. This information can be used to connect to an image editor for secondary editing of translation results. For the release progress of the editor SDK package, follow platform notifications.
1948
+ * 2. Image background: the rest of the image other than the product subject.
1976
1949
  *
1977
- * * **Translation intervention**: You can customize translation results, including keeping text untranslated (ABC-ABC), specifying translations (ABC-DEF), or removing text (ABC-empty value). This is commonly used for scenarios such as brand name protection. Simply pass the corresponding intervention glossary ID when calling the API operation. This meets your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1978
- * * **Image editor integration**: For more information, see [Image Translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
1950
+ * 2. Second, the objects to be removed support the following four types: text, specific names, transparent text blocks, and watermarks. You can refer to the following examples to clarify your usage requirements and perform targeted operations:
1951
+ * ## Before and after
1952
+ * | **Original image** | **Erased image** |
1953
+ * | --- | --- |
1954
+ * | ![Main image 1 - Leopard print large capacity crossbody canvas bag.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/AJdl65AyryVZyOke/img/4bd2c812-ed3c-45da-8a86-ebd29102f4b1.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/eff0eb1b-36df-431d-a010-3bb3b7348ff9.png) |
1955
+ * | ![Main image 1 - Short half-cover round-tip French false nails with handle.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/c44ac17b-3fa4-4a6f-b411-90f1062b183b.jpeg) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/5VLqXLbGJZd3VqX1/img/af779684-4aa5-49b0-8668-34ab8bd4bcc1.png) |
1979
1956
  *
1980
- * @param request - ImageTranslationStandardRequest
1981
- * @returns ImageTranslationStandardResponse
1957
+ * @param request - ImageRemovalProAsyncRequest
1958
+ * @returns ImageRemovalProAsyncResponse
1982
1959
  */
1983
- async imageTranslationStandard(request) {
1960
+ async imageRemovalProAsync(request) {
1984
1961
  let runtime = new $dara.RuntimeOptions({});
1985
- return await this.imageTranslationStandardWithOptions(request, runtime);
1962
+ return await this.imageRemovalProAsyncWithOptions(request, runtime);
1986
1963
  }
1987
1964
  /**
1988
- * Supports automatic language identification for 31 languages in query scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations.
1965
+ * Intelligently removes unwanted elements from e-commerce images. This product automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of large volumes of images and simplifying image editing workflows. (Synchronous)
1989
1966
  *
1990
1967
  * @remarks
1991
- * ## Product Introduction
1992
- * Supports automatic language identification for 31 languages in query phrase scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations. For supported language directions, refer to the [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
1968
+ * # Product Introduction
1969
+ * The intelligent image removal product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of large volumes of images and simplifying image editing workflows. (Synchronous)
1970
+ * # Common scenarios
1971
+ * * **Efficient e-commerce image processing:**
1993
1972
  *
1994
- * @param request - LanguageDetectRequest
1995
- * @param runtime - runtime options for this request RuntimeOptions
1996
- * @returns LanguageDetectResponse
1997
- */
1998
- async languageDetectWithOptions(request, runtime) {
1999
- request.validate();
2000
- let query = {};
2001
- if (!$dara.isNull(request.scene)) {
2002
- query["Scene"] = request.scene;
2003
- }
2004
- if (!$dara.isNull(request.sourceText)) {
2005
- query["SourceText"] = request.sourceText;
2006
- }
2007
- let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2008
- query: openapi_core_2.OpenApiUtil.query(query),
2009
- });
2010
- let params = new openapi_core_2.$OpenApiUtil.Params({
2011
- action: "LanguageDetect",
2012
- version: "2026-04-28",
2013
- protocol: "HTTPS",
2014
- pathname: "/",
2015
- method: "POST",
2016
- authType: "AK",
2017
- style: "RPC",
2018
- reqBodyType: "formData",
2019
- bodyType: "json",
2020
- });
2021
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.LanguageDetectResponse({}));
2022
- }
2023
- /**
2024
- * Supports automatic language identification for 31 languages in query scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations.
1973
+ * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
1974
+ * * **Multi-platform product information synchronization:**
2025
1975
  *
2026
- * @remarks
2027
- * ## Product Introduction
2028
- * Supports automatic language identification for 31 languages in query phrase scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations. For supported language directions, refer to the [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
1976
+ * When listing products across different e-commerce platforms, quickly remove specific text and image blemishes to comply with the image standards of each platform.
1977
+ * * **Marketing material preparation:**
2029
1978
  *
2030
- * @param request - LanguageDetectRequest
2031
- * @returns LanguageDetectResponse
2032
- */
2033
- async languageDetect(request) {
2034
- let runtime = new $dara.RuntimeOptions({});
2035
- return await this.languageDetectWithOptions(request, runtime);
2036
- }
1979
+ * Easily remove existing promotional information and quickly update images with the latest campaign details.
1980
+ * > Note: Merchants or platforms can batch-remove impurities from images to optimize image quality. Use this product together with the Intelligent Recognition API (coming soon). First, filter out images that contain text, specific names, transparent text blocks, and image blemishes, and then use the Intelligent Removal API for batch removal. The Intelligent Recognition API focuses on "recognition", while the Intelligent Removal API focuses on "removal". By calling them in sequence, you can maximize removal effectiveness and reduce false removals and false identifications.
1981
+ * # Features
1982
+ * 1. First, understand the definitions of image subject and image background. When specifying objects to remove, you can choose whether the removal scope is the image subject or the image background area. Both API and editor access methods are supported to meet different requirements.
1983
+ *
1984
+ * 1. Image subject: The core product area in the image.
1985
+ *
1986
+ * 2. Image background: The remaining part of the image other than the product subject.
1987
+ *
1988
+ * 2. The following three types of removal targets are supported:
1989
+ *
1990
+ * 1. Select by type only. You can select text, specific names, transparent text blocks, and image blemishes. Refer to the following examples to clarify your requirements and perform targeted operations.
1991
+ *
1992
+ * 2. (Upgrade) Specify images to remove. You can specify multiple images at a time.
1993
+ *
1994
+ * 3. (Upgrade) Specify text to remove. You can specify multiple text strings at a time.
1995
+ *
1996
+ * Processing flow: User submits the original image URL → OCR + VLM model detects text or image positions → Determines the coordinates of areas to repair → AI repairs and generates a clean image → Returns the result image URL.
1997
+ * # 4. Effect comparison
1998
+ * | **Removable objects in images** | **Original image** | **Image after removal** |
1999
+ * | --- | --- | --- |
2000
+ * | Text | * Involves the image subject area
2001
+ *
2002
+ * ![done-image-4a2a96c2-9ac6-4b35-b76b-a6eac303740f (1).png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d72a7982-e761-4b45-af1e-f8f90b3f1fc3.png)
2003
+ *
2004
+ * * Does not involve the image subject area
2005
+ *
2006
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involves the image subject area
2007
+ *
2008
+ * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
2009
+ * * Does not involve the image subject area
2010
+ *
2011
+ * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
2012
+ * | Specific names | * Involves the image subject area
2013
+ *
2014
+ * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
2015
+ *
2016
+ * * Does not involve the image subject area
2017
+ *
2018
+ * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involves the image subject area
2019
+ *
2020
+ * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
2021
+ * * Does not involve the image subject area
2022
+ *
2023
+ * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
2024
+ * | Transparent text blocks | * Involves the image subject area
2025
+ *
2026
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
2027
+ *
2028
+ * * Does not involve the image subject area
2029
+ *
2030
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involves the image subject area
2031
+ *
2032
+ * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
2033
+ * * Does not involve the image subject area
2034
+ *
2035
+ * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
2036
+ * | Image blemishes | * Involves the image subject area
2037
+ *
2038
+ * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
2039
+ *
2040
+ * * Does not involve the image subject area
2041
+ *
2042
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involves the image subject area
2043
+ *
2044
+ * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
2045
+ * * Does not involve the image subject area
2046
+ *
2047
+ * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
2048
+ * | Specified image element removal (supports multiple image links) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/9297951f-53c1-4476-8c69-5c31df3fce21.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ef3f35aa-609f-454c-bba0-dd1710c83945.png) |
2049
+ * | Specified text removal (supports multiple text strings) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c784d8be-4b4d-4972-8b99-828c742b8f03.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/805423ca-bd0d-4d44-a18e-a7d7bfe88587.png) |
2050
+ *
2051
+ * @param tmpReq - ImageRemoveRequest
2052
+ * @param runtime - runtime options for this request RuntimeOptions
2053
+ * @returns ImageRemoveResponse
2054
+ */
2055
+ async imageRemoveWithOptions(tmpReq, runtime) {
2056
+ tmpReq.validate();
2057
+ let request = new $_model.ImageRemoveShrinkRequest({});
2058
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2059
+ if (!$dara.isNull(tmpReq.nonObjectRemoveElements)) {
2060
+ request.nonObjectRemoveElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonObjectRemoveElements, "NonObjectRemoveElements", "json");
2061
+ }
2062
+ if (!$dara.isNull(tmpReq.objectRemoveElements)) {
2063
+ request.objectRemoveElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectRemoveElements, "ObjectRemoveElements", "json");
2064
+ }
2065
+ if (!$dara.isNull(tmpReq.userImage)) {
2066
+ request.userImageShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userImage, "UserImage", "json");
2067
+ }
2068
+ if (!$dara.isNull(tmpReq.userText)) {
2069
+ request.userTextShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userText, "UserText", "json");
2070
+ }
2071
+ let query = {};
2072
+ if (!$dara.isNull(request.imageUrl)) {
2073
+ query["ImageUrl"] = request.imageUrl;
2074
+ }
2075
+ if (!$dara.isNull(request.mask)) {
2076
+ query["Mask"] = request.mask;
2077
+ }
2078
+ if (!$dara.isNull(request.nonObjectRemoveElementsShrink)) {
2079
+ query["NonObjectRemoveElements"] = request.nonObjectRemoveElementsShrink;
2080
+ }
2081
+ if (!$dara.isNull(request.objectRemoveElementsShrink)) {
2082
+ query["ObjectRemoveElements"] = request.objectRemoveElementsShrink;
2083
+ }
2084
+ if (!$dara.isNull(request.position)) {
2085
+ query["Position"] = request.position;
2086
+ }
2087
+ if (!$dara.isNull(request.userImageShrink)) {
2088
+ query["UserImage"] = request.userImageShrink;
2089
+ }
2090
+ if (!$dara.isNull(request.userTextShrink)) {
2091
+ query["UserText"] = request.userTextShrink;
2092
+ }
2093
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2094
+ query: openapi_core_2.OpenApiUtil.query(query),
2095
+ });
2096
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2097
+ action: "ImageRemove",
2098
+ version: "2026-04-28",
2099
+ protocol: "HTTPS",
2100
+ pathname: "/",
2101
+ method: "POST",
2102
+ authType: "AK",
2103
+ style: "RPC",
2104
+ reqBodyType: "formData",
2105
+ bodyType: "json",
2106
+ });
2107
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemoveResponse({}));
2108
+ }
2109
+ /**
2110
+ * Intelligently removes unwanted elements from e-commerce images. This product automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of large volumes of images and simplifying image editing workflows. (Synchronous)
2111
+ *
2112
+ * @remarks
2113
+ * # Product Introduction
2114
+ * The intelligent image removal product is designed specifically for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and image blemishes from e-commerce images. You can specify objects to remove as needed, enabling efficient and precise batch processing of large volumes of images and simplifying image editing workflows. (Synchronous)
2115
+ * # Common scenarios
2116
+ * * **Efficient e-commerce image processing:**
2117
+ *
2118
+ * Remove irrelevant visual elements to provide clearer, more focused product displays and enhance the shopping experience.
2119
+ * * **Multi-platform product information synchronization:**
2120
+ *
2121
+ * When listing products across different e-commerce platforms, quickly remove specific text and image blemishes to comply with the image standards of each platform.
2122
+ * * **Marketing material preparation:**
2123
+ *
2124
+ * Easily remove existing promotional information and quickly update images with the latest campaign details.
2125
+ * > Note: Merchants or platforms can batch-remove impurities from images to optimize image quality. Use this product together with the Intelligent Recognition API (coming soon). First, filter out images that contain text, specific names, transparent text blocks, and image blemishes, and then use the Intelligent Removal API for batch removal. The Intelligent Recognition API focuses on "recognition", while the Intelligent Removal API focuses on "removal". By calling them in sequence, you can maximize removal effectiveness and reduce false removals and false identifications.
2126
+ * # Features
2127
+ * 1. First, understand the definitions of image subject and image background. When specifying objects to remove, you can choose whether the removal scope is the image subject or the image background area. Both API and editor access methods are supported to meet different requirements.
2128
+ *
2129
+ * 1. Image subject: The core product area in the image.
2130
+ *
2131
+ * 2. Image background: The remaining part of the image other than the product subject.
2132
+ *
2133
+ * 2. The following three types of removal targets are supported:
2134
+ *
2135
+ * 1. Select by type only. You can select text, specific names, transparent text blocks, and image blemishes. Refer to the following examples to clarify your requirements and perform targeted operations.
2136
+ *
2137
+ * 2. (Upgrade) Specify images to remove. You can specify multiple images at a time.
2138
+ *
2139
+ * 3. (Upgrade) Specify text to remove. You can specify multiple text strings at a time.
2140
+ *
2141
+ * Processing flow: User submits the original image URL → OCR + VLM model detects text or image positions → Determines the coordinates of areas to repair → AI repairs and generates a clean image → Returns the result image URL.
2142
+ * # 4. Effect comparison
2143
+ * | **Removable objects in images** | **Original image** | **Image after removal** |
2144
+ * | --- | --- | --- |
2145
+ * | Text | * Involves the image subject area
2146
+ *
2147
+ * ![done-image-4a2a96c2-9ac6-4b35-b76b-a6eac303740f (1).png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d72a7982-e761-4b45-af1e-f8f90b3f1fc3.png)
2148
+ *
2149
+ * * Does not involve the image subject area
2150
+ *
2151
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involves the image subject area
2152
+ *
2153
+ * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
2154
+ * * Does not involve the image subject area
2155
+ *
2156
+ * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
2157
+ * | Specific names | * Involves the image subject area
2158
+ *
2159
+ * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
2160
+ *
2161
+ * * Does not involve the image subject area
2162
+ *
2163
+ * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involves the image subject area
2164
+ *
2165
+ * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
2166
+ * * Does not involve the image subject area
2167
+ *
2168
+ * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
2169
+ * | Transparent text blocks | * Involves the image subject area
2170
+ *
2171
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
2172
+ *
2173
+ * * Does not involve the image subject area
2174
+ *
2175
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involves the image subject area
2176
+ *
2177
+ * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
2178
+ * * Does not involve the image subject area
2179
+ *
2180
+ * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
2181
+ * | Image blemishes | * Involves the image subject area
2182
+ *
2183
+ * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
2184
+ *
2185
+ * * Does not involve the image subject area
2186
+ *
2187
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involves the image subject area
2188
+ *
2189
+ * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
2190
+ * * Does not involve the image subject area
2191
+ *
2192
+ * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
2193
+ * | Specified image element removal (supports multiple image links) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/9297951f-53c1-4476-8c69-5c31df3fce21.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ef3f35aa-609f-454c-bba0-dd1710c83945.png) |
2194
+ * | Specified text removal (supports multiple text strings) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c784d8be-4b4d-4972-8b99-828c742b8f03.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/805423ca-bd0d-4d44-a18e-a7d7bfe88587.png) |
2195
+ *
2196
+ * @param request - ImageRemoveRequest
2197
+ * @returns ImageRemoveResponse
2198
+ */
2199
+ async imageRemove(request) {
2200
+ let runtime = new $dara.RuntimeOptions({});
2201
+ return await this.imageRemoveWithOptions(request, runtime);
2202
+ }
2203
+ /**
2204
+ * Provides intelligent image erasure tailored for e-commerce images by automatically identifying and removing text, specific names, transparent text blocks, and unwanted overlays, and allows you to specify objects to remove for efficient and accurate batch processing to simplify image editing.
2205
+ *
2206
+ * @remarks
2207
+ * ## Scenarios
2208
+ * * **Efficient processing of e-commerce images:**
2209
+ * Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
2210
+ * * **Multi-platform product information synchronization:**
2211
+ * When merchants synchronize product listings across different e-commerce platforms, they can quickly remove specific text and watermarks to comply with the image specifications of different platforms.
2212
+ * * **Marketing material preparation:**
2213
+ * Merchants can easily remove original promotional information and quickly update it with the latest campaign information.
2214
+ * > Note: Merchants or platforms can batch remove unwanted elements in images to optimize image quality. We recommend using this feature in combination with the "Intelligent Recognition API" (coming soon) to first filter out images containing text, specific names, transparent text blocks, and watermarks, and then use the "Intelligent Erasure API" for batch removal. The Intelligent Recognition API focuses on "recognition", while the Intelligent Erasure API focuses on "erasure". By calling them in sequence, you can maximize the erasure effect and reduce "false removals" and "false recognitions".
2215
+ * ## Features
2216
+ * 1. First, clarify the definitions of the image subject and the image background. In actual use, when specifying the objects to remove, you can choose whether the removal scope is the image subject or the image background area. Both API and editor integration methods are supported to meet different types of needs.
2217
+ *
2218
+ * 1. Image subject: the core product area in the image.
2219
+ *
2220
+ * 2. Image background: the rest of the image other than the product subject.
2221
+ *
2222
+ * 2. Second, the objects to remove support the following three cases:
2223
+ *
2224
+ * 1. The user selects only the type. You can select text, specific names, transparent text blocks, and watermarks. You can clarify your usage requirements through the following examples for targeted operations.
2225
+ *
2226
+ * 2. (Upgraded) Provides specified image erasure. Users can specify multiple images at a time.
2227
+ *
2228
+ * 3. (Upgraded) Provides specified text erasure. Users can specify multiple texts at a time.
2229
+ *
2230
+ * Processing flow: The user provides the original image URL → OCR and VLM models detect the text or image position → The coordinates of the area to be repaired are determined → AI repairs and generates a clean image → The result image URL is returned.
2231
+ * ## Effect comparison
2232
+ * | **Objects that can be removed from the image** | **Original image** | **Image after erasure** |
2233
+ * | --- | --- | --- |
2234
+ * | Text | * Involves the image subject area
2235
+ *
2236
+ * ![done-image-4a2a96c2-9ac6-4b35-b76b-a6eac303740f (1).png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d72a7982-e761-4b45-af1e-f8f90b3f1fc3.png)
2237
+ *
2238
+ * * Does not involve the image subject area
2239
+ *
2240
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involves the image subject area
2241
+ *
2242
+ * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
2243
+ * * Does not involve the image subject area
2244
+ *
2245
+ * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
2246
+ * | Specific names | * Involves the image subject area
2247
+ *
2248
+ * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
2249
+ *
2250
+ * * Does not involve the image subject area
2251
+ *
2252
+ * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involves the image subject area
2253
+ *
2254
+ * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
2255
+ * * Does not involve the image subject area
2256
+ *
2257
+ * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
2258
+ * | Transparent text blocks | * Involves the image subject area
2259
+ *
2260
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
2261
+ *
2262
+ * * Does not involve the image subject area
2263
+ *
2264
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involves the image subject area
2265
+ *
2266
+ * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
2267
+ * * Does not involve the image subject area
2268
+ *
2269
+ * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
2270
+ * | Watermarks | * Involves the image subject area
2271
+ *
2272
+ * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
2273
+ *
2274
+ * * Does not involve the image subject area
2275
+ *
2276
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involves the image subject area
2277
+ *
2278
+ * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
2279
+ * * Does not involve the image subject area
2280
+ *
2281
+ * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
2282
+ * | Specified image element erasure (supports multiple image links) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/9297951f-53c1-4476-8c69-5c31df3fce21.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ef3f35aa-609f-454c-bba0-dd1710c83945.png) |
2283
+ * | Specified text erasure (supports multiple texts) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c784d8be-4b4d-4972-8b99-828c742b8f03.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/805423ca-bd0d-4d44-a18e-a7d7bfe88587.png) |
2284
+ *
2285
+ * @param tmpReq - ImageRemoveAsyncRequest
2286
+ * @param runtime - runtime options for this request RuntimeOptions
2287
+ * @returns ImageRemoveAsyncResponse
2288
+ */
2289
+ async imageRemoveAsyncWithOptions(tmpReq, runtime) {
2290
+ tmpReq.validate();
2291
+ let request = new $_model.ImageRemoveAsyncShrinkRequest({});
2292
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2293
+ if (!$dara.isNull(tmpReq.nonObjectRemoveElements)) {
2294
+ request.nonObjectRemoveElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonObjectRemoveElements, "NonObjectRemoveElements", "json");
2295
+ }
2296
+ if (!$dara.isNull(tmpReq.objectRemoveElements)) {
2297
+ request.objectRemoveElementsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectRemoveElements, "ObjectRemoveElements", "json");
2298
+ }
2299
+ if (!$dara.isNull(tmpReq.userImage)) {
2300
+ request.userImageShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userImage, "UserImage", "json");
2301
+ }
2302
+ if (!$dara.isNull(tmpReq.userText)) {
2303
+ request.userTextShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userText, "UserText", "json");
2304
+ }
2305
+ let query = {};
2306
+ if (!$dara.isNull(request.imageUrl)) {
2307
+ query["ImageUrl"] = request.imageUrl;
2308
+ }
2309
+ if (!$dara.isNull(request.mask)) {
2310
+ query["Mask"] = request.mask;
2311
+ }
2312
+ if (!$dara.isNull(request.nonObjectRemoveElementsShrink)) {
2313
+ query["NonObjectRemoveElements"] = request.nonObjectRemoveElementsShrink;
2314
+ }
2315
+ if (!$dara.isNull(request.objectRemoveElementsShrink)) {
2316
+ query["ObjectRemoveElements"] = request.objectRemoveElementsShrink;
2317
+ }
2318
+ if (!$dara.isNull(request.position)) {
2319
+ query["Position"] = request.position;
2320
+ }
2321
+ if (!$dara.isNull(request.userImageShrink)) {
2322
+ query["UserImage"] = request.userImageShrink;
2323
+ }
2324
+ if (!$dara.isNull(request.userTextShrink)) {
2325
+ query["UserText"] = request.userTextShrink;
2326
+ }
2327
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2328
+ query: openapi_core_2.OpenApiUtil.query(query),
2329
+ });
2330
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2331
+ action: "ImageRemoveAsync",
2332
+ version: "2026-04-28",
2333
+ protocol: "HTTPS",
2334
+ pathname: "/",
2335
+ method: "POST",
2336
+ authType: "AK",
2337
+ style: "RPC",
2338
+ reqBodyType: "formData",
2339
+ bodyType: "json",
2340
+ });
2341
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageRemoveAsyncResponse({}));
2342
+ }
2343
+ /**
2344
+ * Provides intelligent image erasure tailored for e-commerce images by automatically identifying and removing text, specific names, transparent text blocks, and unwanted overlays, and allows you to specify objects to remove for efficient and accurate batch processing to simplify image editing.
2345
+ *
2346
+ * @remarks
2347
+ * ## Scenarios
2348
+ * * **Efficient processing of e-commerce images:**
2349
+ * Removes irrelevant visual elements to provide clearer and more focused product displays, enhancing the customer shopping experience.
2350
+ * * **Multi-platform product information synchronization:**
2351
+ * When merchants synchronize product listings across different e-commerce platforms, they can quickly remove specific text and watermarks to comply with the image specifications of different platforms.
2352
+ * * **Marketing material preparation:**
2353
+ * Merchants can easily remove original promotional information and quickly update it with the latest campaign information.
2354
+ * > Note: Merchants or platforms can batch remove unwanted elements in images to optimize image quality. We recommend using this feature in combination with the "Intelligent Recognition API" (coming soon) to first filter out images containing text, specific names, transparent text blocks, and watermarks, and then use the "Intelligent Erasure API" for batch removal. The Intelligent Recognition API focuses on "recognition", while the Intelligent Erasure API focuses on "erasure". By calling them in sequence, you can maximize the erasure effect and reduce "false removals" and "false recognitions".
2355
+ * ## Features
2356
+ * 1. First, clarify the definitions of the image subject and the image background. In actual use, when specifying the objects to remove, you can choose whether the removal scope is the image subject or the image background area. Both API and editor integration methods are supported to meet different types of needs.
2357
+ *
2358
+ * 1. Image subject: the core product area in the image.
2359
+ *
2360
+ * 2. Image background: the rest of the image other than the product subject.
2361
+ *
2362
+ * 2. Second, the objects to remove support the following three cases:
2363
+ *
2364
+ * 1. The user selects only the type. You can select text, specific names, transparent text blocks, and watermarks. You can clarify your usage requirements through the following examples for targeted operations.
2365
+ *
2366
+ * 2. (Upgraded) Provides specified image erasure. Users can specify multiple images at a time.
2367
+ *
2368
+ * 3. (Upgraded) Provides specified text erasure. Users can specify multiple texts at a time.
2369
+ *
2370
+ * Processing flow: The user provides the original image URL → OCR and VLM models detect the text or image position → The coordinates of the area to be repaired are determined → AI repairs and generates a clean image → The result image URL is returned.
2371
+ * ## Effect comparison
2372
+ * | **Objects that can be removed from the image** | **Original image** | **Image after erasure** |
2373
+ * | --- | --- | --- |
2374
+ * | Text | * Involves the image subject area
2375
+ *
2376
+ * ![done-image-4a2a96c2-9ac6-4b35-b76b-a6eac303740f (1).png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d72a7982-e761-4b45-af1e-f8f90b3f1fc3.png)
2377
+ *
2378
+ * * Does not involve the image subject area
2379
+ *
2380
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involves the image subject area
2381
+ *
2382
+ * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
2383
+ * * Does not involve the image subject area
2384
+ *
2385
+ * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
2386
+ * | Specific names | * Involves the image subject area
2387
+ *
2388
+ * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
2389
+ *
2390
+ * * Does not involve the image subject area
2391
+ *
2392
+ * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involves the image subject area
2393
+ *
2394
+ * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
2395
+ * * Does not involve the image subject area
2396
+ *
2397
+ * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
2398
+ * | Transparent text blocks | * Involves the image subject area
2399
+ *
2400
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
2401
+ *
2402
+ * * Does not involve the image subject area
2403
+ *
2404
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involves the image subject area
2405
+ *
2406
+ * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
2407
+ * * Does not involve the image subject area
2408
+ *
2409
+ * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
2410
+ * | Watermarks | * Involves the image subject area
2411
+ *
2412
+ * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
2413
+ *
2414
+ * * Does not involve the image subject area
2415
+ *
2416
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involves the image subject area
2417
+ *
2418
+ * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
2419
+ * * Does not involve the image subject area
2420
+ *
2421
+ * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
2422
+ * | Specified image element erasure (supports multiple image links) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/9297951f-53c1-4476-8c69-5c31df3fce21.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ef3f35aa-609f-454c-bba0-dd1710c83945.png) |
2423
+ * | Specified text erasure (supports multiple texts) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c784d8be-4b4d-4972-8b99-828c742b8f03.png) | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/805423ca-bd0d-4d44-a18e-a7d7bfe88587.png) |
2424
+ *
2425
+ * @param request - ImageRemoveAsyncRequest
2426
+ * @returns ImageRemoveAsyncResponse
2427
+ */
2428
+ async imageRemoveAsync(request) {
2429
+ let runtime = new $dara.RuntimeOptions({});
2430
+ return await this.imageRemoveAsyncWithOptions(request, runtime);
2431
+ }
2432
+ /**
2433
+ * Image Translation PLUS is designed specifically for e-commerce images and uses a Mixture of Experts (MOE) architecture. Compared to the Image Translation Lite and Pro editions, it delivers superior translation accuracy for multiple minority languages. We recommend using it for the following 12 language pairs, with more language pairs to be supported in the future.
2434
+ *
2435
+ * @remarks
2436
+ * ## Product Introduction
2437
+ * Image Translation PLUS is designed specifically for e-commerce images and uses a Mixture of Experts (MOE) architecture. Compared to the Image Translation Lite and Pro editions, it delivers superior translation accuracy for multiple minority languages. Use it for the following 12 language pairs. More language pairs will be supported in the future.
2438
+ * Supported language pairs:
2439
+ * | **No.** | **Source language** | | **Target language** | |
2440
+ * | --- | --- | --- | --- | --- |
2441
+ * | | Language code | Language name | Language code | Language name |
2442
+ * | 1 | en | English | ar | Arabic |
2443
+ * | 2 | en | English | id | Indonesian |
2444
+ * | 3 | en | English | th | Thai |
2445
+ * | 4 | en | English | ko | Korean |
2446
+ * | 5 | en | English | ja | Japanese |
2447
+ * | 6 | en | English | vi | Vietnamese |
2448
+ * | 7 | en | English | ru | Russian |
2449
+ * | 8 | en | English | tl | Filipino |
2450
+ * | 9 | en | English | es | Spanish |
2451
+ * | 10 | en | English | fr | French |
2452
+ * | 11 | en | English | de | German |
2453
+ * | 12 | en | English | pl | Polish |
2454
+ * ## Scenarios
2455
+ * Main product images and detail images for cross-border e-commerce.
2456
+ * ## Features
2457
+ * * **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.
2458
+ *
2459
+ * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
2460
+ *
2461
+ * * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC→ABC), specifying a translation (ABC→DEF), or removing text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
2462
+ *
2463
+ * @param request - ImageTranslationPlusRequest
2464
+ * @param runtime - runtime options for this request RuntimeOptions
2465
+ * @returns ImageTranslationPlusResponse
2466
+ */
2467
+ async imageTranslationPlusWithOptions(request, runtime) {
2468
+ request.validate();
2469
+ let body = {};
2470
+ if (!$dara.isNull(request.glossary)) {
2471
+ body["Glossary"] = request.glossary;
2472
+ }
2473
+ if (!$dara.isNull(request.imageUrl)) {
2474
+ body["ImageUrl"] = request.imageUrl;
2475
+ }
2476
+ if (!$dara.isNull(request.includingProductArea)) {
2477
+ body["IncludingProductArea"] = request.includingProductArea;
2478
+ }
2479
+ if (!$dara.isNull(request.sourceLanguage)) {
2480
+ body["SourceLanguage"] = request.sourceLanguage;
2481
+ }
2482
+ if (!$dara.isNull(request.targetLanguage)) {
2483
+ body["TargetLanguage"] = request.targetLanguage;
2484
+ }
2485
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
2486
+ body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
2487
+ }
2488
+ if (!$dara.isNull(request.useImageEditor)) {
2489
+ body["UseImageEditor"] = request.useImageEditor;
2490
+ }
2491
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2492
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2493
+ });
2494
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2495
+ action: "ImageTranslationPlus",
2496
+ version: "2026-04-28",
2497
+ protocol: "HTTPS",
2498
+ pathname: "/",
2499
+ method: "POST",
2500
+ authType: "AK",
2501
+ style: "RPC",
2502
+ reqBodyType: "formData",
2503
+ bodyType: "json",
2504
+ });
2505
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusResponse({}));
2506
+ }
2507
+ /**
2508
+ * Image Translation PLUS is designed specifically for e-commerce images and uses a Mixture of Experts (MOE) architecture. Compared to the Image Translation Lite and Pro editions, it delivers superior translation accuracy for multiple minority languages. We recommend using it for the following 12 language pairs, with more language pairs to be supported in the future.
2509
+ *
2510
+ * @remarks
2511
+ * ## Product Introduction
2512
+ * Image Translation PLUS is designed specifically for e-commerce images and uses a Mixture of Experts (MOE) architecture. Compared to the Image Translation Lite and Pro editions, it delivers superior translation accuracy for multiple minority languages. Use it for the following 12 language pairs. More language pairs will be supported in the future.
2513
+ * Supported language pairs:
2514
+ * | **No.** | **Source language** | | **Target language** | |
2515
+ * | --- | --- | --- | --- | --- |
2516
+ * | | Language code | Language name | Language code | Language name |
2517
+ * | 1 | en | English | ar | Arabic |
2518
+ * | 2 | en | English | id | Indonesian |
2519
+ * | 3 | en | English | th | Thai |
2520
+ * | 4 | en | English | ko | Korean |
2521
+ * | 5 | en | English | ja | Japanese |
2522
+ * | 6 | en | English | vi | Vietnamese |
2523
+ * | 7 | en | English | ru | Russian |
2524
+ * | 8 | en | English | tl | Filipino |
2525
+ * | 9 | en | English | es | Spanish |
2526
+ * | 10 | en | English | fr | French |
2527
+ * | 11 | en | English | de | German |
2528
+ * | 12 | en | English | pl | Polish |
2529
+ * ## Scenarios
2530
+ * Main product images and detail images for cross-border e-commerce.
2531
+ * ## Features
2532
+ * * **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.
2533
+ *
2534
+ * * **Brand name protection**: Allows you to choose whether to translate brand names on images. This helps protect brand name information from being translated.
2535
+ *
2536
+ * * **Translation intervention**: Allows you to customize translation results, including keeping text untranslated (ABC→ABC), specifying a translation (ABC→DEF), or removing text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
2537
+ *
2538
+ * @param request - ImageTranslationPlusRequest
2539
+ * @returns ImageTranslationPlusResponse
2540
+ */
2541
+ async imageTranslationPlus(request) {
2542
+ let runtime = new $dara.RuntimeOptions({});
2543
+ return await this.imageTranslationPlusWithOptions(request, runtime);
2544
+ }
2545
+ /**
2546
+ * Translates e-commerce images by using the Mixture of Experts (MOE) architecture, delivering higher translation accuracy for multiple minor languages than the Lite and Pro editions.
2547
+ *
2548
+ * @remarks
2549
+ * ## Scenarios
2550
+ * Main images and detail images for cross-border e-commerce.
2551
+ * ## Features
2552
+ * * **Product subject information protection**: Allows you to specify whether to translate the text on the product subject. This helps you protect subject information, such as embedded product names, from being translated.
2553
+ *
2554
+ * * **Brand name protection**: Allows you to specify whether to translate brand names in the image. This helps you protect brand name information from being translated.
2555
+ *
2556
+ * * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), or omitting the translation (ABC-null). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API, which meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention words. If you need more, contact the platform for processing.
2557
+ * ## Supported language pairs
2558
+ * | **No.** | **Source language** | | **Target language** | |
2559
+ * | --- | --- | --- | --- | --- |
2560
+ * | | Language code | Language name | Language code | Language name |
2561
+ * | 1 | en | English | ar | Arabic |
2562
+ * | 2 | en | English | id | Indonesian |
2563
+ * | 3 | en | English | th | Thai |
2564
+ * | 4 | en | English | ko | Korean |
2565
+ * | 5 | en | English | ja | Japanese |
2566
+ * | 6 | en | English | vi | Vietnamese |
2567
+ * | 7 | en | English | ru | Russian |
2568
+ * | 8 | en | English | tl | Filipino |
2569
+ * | 9 | en | English | es | Spanish |
2570
+ * | 10 | en | English | fr | French |
2571
+ * | 11 | en | English | de | German |
2572
+ * | 12 | en | English | pl | Polish |
2573
+ * ## Preparations and call process
2574
+ * The asynchronous API for Image Translation Plus and other capabilities share the same result retrieval process, RocketMQ subscription rules, message encryption protocol, dependency configurations, and Java consumption and decryption code.
2575
+ * For the asynchronous call process, subscription rules, message format and encryption protocol, and detailed integration solutions, refer to [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
2576
+ *
2577
+ * @param request - ImageTranslationPlusAsyncRequest
2578
+ * @param runtime - runtime options for this request RuntimeOptions
2579
+ * @returns ImageTranslationPlusAsyncResponse
2580
+ */
2581
+ async imageTranslationPlusAsyncWithOptions(request, runtime) {
2582
+ request.validate();
2583
+ let query = {};
2584
+ if (!$dara.isNull(request.glossary)) {
2585
+ query["Glossary"] = request.glossary;
2586
+ }
2587
+ if (!$dara.isNull(request.imageUrl)) {
2588
+ query["ImageUrl"] = request.imageUrl;
2589
+ }
2590
+ if (!$dara.isNull(request.includingProductArea)) {
2591
+ query["IncludingProductArea"] = request.includingProductArea;
2592
+ }
2593
+ if (!$dara.isNull(request.sourceLanguage)) {
2594
+ query["SourceLanguage"] = request.sourceLanguage;
2595
+ }
2596
+ if (!$dara.isNull(request.targetLanguage)) {
2597
+ query["TargetLanguage"] = request.targetLanguage;
2598
+ }
2599
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
2600
+ query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
2601
+ }
2602
+ if (!$dara.isNull(request.useImageEditor)) {
2603
+ query["UseImageEditor"] = request.useImageEditor;
2604
+ }
2605
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2606
+ query: openapi_core_2.OpenApiUtil.query(query),
2607
+ });
2608
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2609
+ action: "ImageTranslationPlusAsync",
2610
+ version: "2026-04-28",
2611
+ protocol: "HTTPS",
2612
+ pathname: "/",
2613
+ method: "POST",
2614
+ authType: "AK",
2615
+ style: "RPC",
2616
+ reqBodyType: "formData",
2617
+ bodyType: "json",
2618
+ });
2619
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusAsyncResponse({}));
2620
+ }
2621
+ /**
2622
+ * Translates e-commerce images by using the Mixture of Experts (MOE) architecture, delivering higher translation accuracy for multiple minor languages than the Lite and Pro editions.
2623
+ *
2624
+ * @remarks
2625
+ * ## Scenarios
2626
+ * Main images and detail images for cross-border e-commerce.
2627
+ * ## Features
2628
+ * * **Product subject information protection**: Allows you to specify whether to translate the text on the product subject. This helps you protect subject information, such as embedded product names, from being translated.
2629
+ *
2630
+ * * **Brand name protection**: Allows you to specify whether to translate brand names in the image. This helps you protect brand name information from being translated.
2631
+ *
2632
+ * * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), or omitting the translation (ABC-null). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API, which meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention words. If you need more, contact the platform for processing.
2633
+ * ## Supported language pairs
2634
+ * | **No.** | **Source language** | | **Target language** | |
2635
+ * | --- | --- | --- | --- | --- |
2636
+ * | | Language code | Language name | Language code | Language name |
2637
+ * | 1 | en | English | ar | Arabic |
2638
+ * | 2 | en | English | id | Indonesian |
2639
+ * | 3 | en | English | th | Thai |
2640
+ * | 4 | en | English | ko | Korean |
2641
+ * | 5 | en | English | ja | Japanese |
2642
+ * | 6 | en | English | vi | Vietnamese |
2643
+ * | 7 | en | English | ru | Russian |
2644
+ * | 8 | en | English | tl | Filipino |
2645
+ * | 9 | en | English | es | Spanish |
2646
+ * | 10 | en | English | fr | French |
2647
+ * | 11 | en | English | de | German |
2648
+ * | 12 | en | English | pl | Polish |
2649
+ * ## Preparations and call process
2650
+ * The asynchronous API for Image Translation Plus and other capabilities share the same result retrieval process, RocketMQ subscription rules, message encryption protocol, dependency configurations, and Java consumption and decryption code.
2651
+ * For the asynchronous call process, subscription rules, message format and encryption protocol, and detailed integration solutions, refer to [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
2652
+ *
2653
+ * @param request - ImageTranslationPlusAsyncRequest
2654
+ * @returns ImageTranslationPlusAsyncResponse
2655
+ */
2656
+ async imageTranslationPlusAsync(request) {
2657
+ let runtime = new $dara.RuntimeOptions({});
2658
+ return await this.imageTranslationPlusAsyncWithOptions(request, runtime);
2659
+ }
2660
+ /**
2661
+ * Translates images using the Pro edition, which is designed for e-commerce images. This edition integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 400 language directions are supported, including bridged directions.
2662
+ *
2663
+ * @remarks
2664
+ * ## Product Introduction
2665
+ * The Image Translation Pro edition is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 400 language directions are supported, including bridged directions.
2666
+ * ## Scenarios
2667
+ * E-commerce product images, marketing images, and images for various other scenarios.
2668
+ * ## Functions and features
2669
+ * - **Product subject information protection**: You can choose whether to translate text on the product subject, which helps protect subject information such as embedded product names from being translated.
2670
+ * - **Post-translation editing**: You can choose whether to return layout information such as text position, font, and color. This information can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
2671
+ * - **Brand name protection**: You can choose whether to translate brand names on images, which helps protect brand name information from being translated.
2672
+ * - **Translation intervention**: You can customize translation results, including keeping text untranslated (ABC→ABC), specifying translations (ABC→DEF), or removing text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
2673
+ * - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
2674
+ *
2675
+ * @param request - ImageTranslationProRequest
2676
+ * @param runtime - runtime options for this request RuntimeOptions
2677
+ * @returns ImageTranslationProResponse
2678
+ */
2679
+ async imageTranslationProWithOptions(request, runtime) {
2680
+ request.validate();
2681
+ let body = {};
2682
+ if (!$dara.isNull(request.async)) {
2683
+ body["Async"] = request.async;
2684
+ }
2685
+ if (!$dara.isNull(request.glossary)) {
2686
+ body["Glossary"] = request.glossary;
2687
+ }
2688
+ if (!$dara.isNull(request.imageUrl)) {
2689
+ body["ImageUrl"] = request.imageUrl;
2690
+ }
2691
+ if (!$dara.isNull(request.includingProductArea)) {
2692
+ body["IncludingProductArea"] = request.includingProductArea;
2693
+ }
2694
+ if (!$dara.isNull(request.sourceLanguage)) {
2695
+ body["SourceLanguage"] = request.sourceLanguage;
2696
+ }
2697
+ if (!$dara.isNull(request.targetLanguage)) {
2698
+ body["TargetLanguage"] = request.targetLanguage;
2699
+ }
2700
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
2701
+ body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
2702
+ }
2703
+ if (!$dara.isNull(request.useImageEditor)) {
2704
+ body["UseImageEditor"] = request.useImageEditor;
2705
+ }
2706
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2707
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2708
+ });
2709
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2710
+ action: "ImageTranslationPro",
2711
+ version: "2026-04-28",
2712
+ protocol: "HTTPS",
2713
+ pathname: "/",
2714
+ method: "POST",
2715
+ authType: "AK",
2716
+ style: "RPC",
2717
+ reqBodyType: "formData",
2718
+ bodyType: "json",
2719
+ });
2720
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
2721
+ }
2722
+ /**
2723
+ * Translates images using the Pro edition, which is designed for e-commerce images. This edition integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 400 language directions are supported, including bridged directions.
2724
+ *
2725
+ * @remarks
2726
+ * ## Product Introduction
2727
+ * The Image Translation Pro edition is designed for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 400 language directions are supported, including bridged directions.
2728
+ * ## Scenarios
2729
+ * E-commerce product images, marketing images, and images for various other scenarios.
2730
+ * ## Functions and features
2731
+ * - **Product subject information protection**: You can choose whether to translate text on the product subject, which helps protect subject information such as embedded product names from being translated.
2732
+ * - **Post-translation editing**: You can choose whether to return layout information such as text position, font, and color. This information can be used for secondary editing when integrated with an image editor. The editor SDK package is not yet available. Follow platform notifications for updates.
2733
+ * - **Brand name protection**: You can choose whether to translate brand names on images, which helps protect brand name information from being translated.
2734
+ * - **Translation intervention**: You can customize translation results, including keeping text untranslated (ABC→ABC), specifying translations (ABC→DEF), or removing text (ABC→empty value). This is commonly used for brand name protection and similar scenarios. Pass the corresponding intervention glossary ID when calling the API. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
2735
+ * - <props="china"> **Image editor integration**: For more information, see [Image Translation Editor Protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
2736
+ *
2737
+ * @param request - ImageTranslationProRequest
2738
+ * @returns ImageTranslationProResponse
2739
+ */
2740
+ async imageTranslationPro(request) {
2741
+ let runtime = new $dara.RuntimeOptions({});
2742
+ return await this.imageTranslationProWithOptions(request, runtime);
2743
+ }
2744
+ /**
2745
+ * Translates images by using Image Translation Pro. This service is designed specifically for e-commerce images, integrates multimodal large language model technology for more accurate image understanding, significantly improves translation quality, and continuously expands and optimizes multilingual translation capabilities. It supports more than 400 language pairs, including pivot languages.
2746
+ *
2747
+ * @remarks
2748
+ * ## Scenarios
2749
+ * E-commerce product images, marketing images, and images in various other scenarios.
2750
+ * ## Features
2751
+ * * Product subject information protection: Allows you to specify whether to translate the text on the product subject. This helps protect the subject information, such as embedded product names, from being translated.
2752
+ *
2753
+ * * Post-translation editing: Allows you to specify whether to return layout information such as the position, font, and color of the text. This information can be used for secondary editing when integrated with an image editor. The SDK package for the editor is not yet available. Follow platform notifications for updates.
2754
+ *
2755
+ * * Brand name protection: Allows you to specify whether to translate brand names in the image. This helps protect brand name information from being translated.
2756
+ *
2757
+ * * Translation intervention: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), or omitting the translation (ABC-null). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API, which meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
2758
+ * ## Preparations and call process
2759
+ * Image Translation Pro supports both synchronous and asynchronous call methods. This topic describes the asynchronous call API. For synchronous calls, refer to [Image Translation Pro](https://www.alibabacloud.com/help/en/aidge/image-translation-pro).
2760
+ * The asynchronous APIs for text translation and other capabilities share the result retrieval process, ApsaraMQ for RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
2761
+ * For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls, refer to [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
2762
+ *
2763
+ * @param request - ImageTranslationProAsyncRequest
2764
+ * @param runtime - runtime options for this request RuntimeOptions
2765
+ * @returns ImageTranslationProAsyncResponse
2766
+ */
2767
+ async imageTranslationProAsyncWithOptions(request, runtime) {
2768
+ request.validate();
2769
+ let query = {};
2770
+ if (!$dara.isNull(request.glossary)) {
2771
+ query["Glossary"] = request.glossary;
2772
+ }
2773
+ if (!$dara.isNull(request.imageUrl)) {
2774
+ query["ImageUrl"] = request.imageUrl;
2775
+ }
2776
+ if (!$dara.isNull(request.includingProductArea)) {
2777
+ query["IncludingProductArea"] = request.includingProductArea;
2778
+ }
2779
+ if (!$dara.isNull(request.sourceLanguage)) {
2780
+ query["SourceLanguage"] = request.sourceLanguage;
2781
+ }
2782
+ if (!$dara.isNull(request.targetLanguage)) {
2783
+ query["TargetLanguage"] = request.targetLanguage;
2784
+ }
2785
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
2786
+ query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
2787
+ }
2788
+ if (!$dara.isNull(request.useImageEditor)) {
2789
+ query["UseImageEditor"] = request.useImageEditor;
2790
+ }
2791
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2792
+ query: openapi_core_2.OpenApiUtil.query(query),
2793
+ });
2794
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2795
+ action: "ImageTranslationProAsync",
2796
+ version: "2026-04-28",
2797
+ protocol: "HTTPS",
2798
+ pathname: "/",
2799
+ method: "POST",
2800
+ authType: "AK",
2801
+ style: "RPC",
2802
+ reqBodyType: "formData",
2803
+ bodyType: "json",
2804
+ });
2805
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProAsyncResponse({}));
2806
+ }
2807
+ /**
2808
+ * Translates images by using Image Translation Pro. This service is designed specifically for e-commerce images, integrates multimodal large language model technology for more accurate image understanding, significantly improves translation quality, and continuously expands and optimizes multilingual translation capabilities. It supports more than 400 language pairs, including pivot languages.
2809
+ *
2810
+ * @remarks
2811
+ * ## Scenarios
2812
+ * E-commerce product images, marketing images, and images in various other scenarios.
2813
+ * ## Features
2814
+ * * Product subject information protection: Allows you to specify whether to translate the text on the product subject. This helps protect the subject information, such as embedded product names, from being translated.
2815
+ *
2816
+ * * Post-translation editing: Allows you to specify whether to return layout information such as the position, font, and color of the text. This information can be used for secondary editing when integrated with an image editor. The SDK package for the editor is not yet available. Follow platform notifications for updates.
2817
+ *
2818
+ * * Brand name protection: Allows you to specify whether to translate brand names in the image. This helps protect brand name information from being translated.
2819
+ *
2820
+ * * Translation intervention: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), or omitting the translation (ABC-null). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API, which meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
2821
+ * ## Preparations and call process
2822
+ * Image Translation Pro supports both synchronous and asynchronous call methods. This topic describes the asynchronous call API. For synchronous calls, refer to [Image Translation Pro](https://www.alibabacloud.com/help/en/aidge/image-translation-pro).
2823
+ * The asynchronous APIs for text translation and other capabilities share the result retrieval process, ApsaraMQ for RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
2824
+ * For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls, refer to [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
2825
+ *
2826
+ * @param request - ImageTranslationProAsyncRequest
2827
+ * @returns ImageTranslationProAsyncResponse
2828
+ */
2829
+ async imageTranslationProAsync(request) {
2830
+ let runtime = new $dara.RuntimeOptions({});
2831
+ return await this.imageTranslationProAsyncWithOptions(request, runtime);
2832
+ }
2833
+ /**
2834
+ * Translates text in images with support for over 400 language directions (including bridging). This product is designed specifically for e-commerce images, accurately handling complex text layouts within images and ensuring that translated content matches the image context. It helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
2835
+ *
2836
+ * @remarks
2837
+ * # 1. Product Introduction
2838
+ * The image translation product is designed specifically for e-commerce images, supporting over 400 language directions (including bridging). It accurately handles complex text layouts within images and ensures that translated content matches the image context, helping e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
2839
+ * # 2. Common scenarios
2840
+ * E-commerce product images, marketing images, and images for various other scenarios.
2841
+ * # 3. Features
2842
+ * * **Product subject information protection**: Allows you to choose whether to translate text on the product subject, helping protect subject information from being translated and avoiding translation of embedded information such as product names.
2843
+ *
2844
+ * * **Brand name protection**: Allows you to choose whether to translate brand names on images, helping protect brand name information from being translated.
2845
+ *
2846
+ * * **Secondary editing after translation (layer information)**: Allows you to choose whether to return layer information such as text position, font, and color, which can be used to connect to an image editor for secondary editing of translation results. Follow platform notifications for updates on the editor SDK package release.
2847
+ *
2848
+ * * **Translation intervention support**: Allows you to customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand term protection and similar scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
2849
+ * <props="china">* **Image editor integration support**: For more information, see [Image translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
2850
+ *
2851
+ * @param request - ImageTranslationStandardRequest
2852
+ * @param runtime - runtime options for this request RuntimeOptions
2853
+ * @returns ImageTranslationStandardResponse
2854
+ */
2855
+ async imageTranslationStandardWithOptions(request, runtime) {
2856
+ request.validate();
2857
+ let query = {};
2858
+ if (!$dara.isNull(request.glossary)) {
2859
+ query["Glossary"] = request.glossary;
2860
+ }
2861
+ if (!$dara.isNull(request.imageUrl)) {
2862
+ query["ImageUrl"] = request.imageUrl;
2863
+ }
2864
+ if (!$dara.isNull(request.includingProductArea)) {
2865
+ query["IncludingProductArea"] = request.includingProductArea;
2866
+ }
2867
+ if (!$dara.isNull(request.sourceLanguage)) {
2868
+ query["SourceLanguage"] = request.sourceLanguage;
2869
+ }
2870
+ if (!$dara.isNull(request.targetLanguage)) {
2871
+ query["TargetLanguage"] = request.targetLanguage;
2872
+ }
2873
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
2874
+ query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
2875
+ }
2876
+ if (!$dara.isNull(request.useImageEditor)) {
2877
+ query["UseImageEditor"] = request.useImageEditor;
2878
+ }
2879
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2880
+ query: openapi_core_2.OpenApiUtil.query(query),
2881
+ });
2882
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2883
+ action: "ImageTranslationStandard",
2884
+ version: "2026-04-28",
2885
+ protocol: "HTTPS",
2886
+ pathname: "/",
2887
+ method: "POST",
2888
+ authType: "AK",
2889
+ style: "RPC",
2890
+ reqBodyType: "formData",
2891
+ bodyType: "json",
2892
+ });
2893
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardResponse({}));
2894
+ }
2895
+ /**
2896
+ * Translates text in images with support for over 400 language directions (including bridging). This product is designed specifically for e-commerce images, accurately handling complex text layouts within images and ensuring that translated content matches the image context. It helps e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
2897
+ *
2898
+ * @remarks
2899
+ * # 1. Product Introduction
2900
+ * The image translation product is designed specifically for e-commerce images, supporting over 400 language directions (including bridging). It accurately handles complex text layouts within images and ensures that translated content matches the image context, helping e-commerce platforms and developers easily achieve multilingual conversion and rendering of image content. The product also returns layer information such as text position, font, and color, enabling secondary editing of translation results through an image editor.
2901
+ * # 2. Common scenarios
2902
+ * E-commerce product images, marketing images, and images for various other scenarios.
2903
+ * # 3. Features
2904
+ * * **Product subject information protection**: Allows you to choose whether to translate text on the product subject, helping protect subject information from being translated and avoiding translation of embedded information such as product names.
2905
+ *
2906
+ * * **Brand name protection**: Allows you to choose whether to translate brand names on images, helping protect brand name information from being translated.
2907
+ *
2908
+ * * **Secondary editing after translation (layer information)**: Allows you to choose whether to return layer information such as text position, font, and color, which can be used to connect to an image editor for secondary editing of translation results. Follow platform notifications for updates on the editor SDK package release.
2909
+ *
2910
+ * * **Translation intervention support**: Allows you to customize translation results, including no translation (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand term protection and similar scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
2911
+ * <props="china">* **Image editor integration support**: For more information, see [Image translation editor protocol](https://www.alibabacloud.com/help/en/document_detail/3042647.html).
2912
+ *
2913
+ * @param request - ImageTranslationStandardRequest
2914
+ * @returns ImageTranslationStandardResponse
2915
+ */
2916
+ async imageTranslationStandard(request) {
2917
+ let runtime = new $dara.RuntimeOptions({});
2918
+ return await this.imageTranslationStandardWithOptions(request, runtime);
2919
+ }
2920
+ /**
2921
+ * Translates e-commerce images by supporting over 400 language pairs, including bridged pairs. Accurately processes complex text layouts within images and ensures that translated content matches the image context, helping e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The service also returns layer information such as text position, font, and color, facilitating secondary editing of translation results in image editors.
2922
+ *
2923
+ * @remarks
2924
+ * ## Scenarios
2925
+ * E-commerce product images, marketing images, and images for various other scenarios.
2926
+ * ## Features
2927
+ * * **Product subject information protection**: Allows you to specify whether to translate text on the product subject, protecting the subject information and preventing the translation of embedded information such as product names.
2928
+ *
2929
+ * * **Brand name protection**: Allows you to specify whether to translate brand names in the image, protecting brand name information from being translated.
2930
+ *
2931
+ * * **Secondary editing after translation (layer information)**: Allows you to specify whether to return layer information such as text position, font, and color. This information can be used to integrate with image editors for secondary editing of translation results. Refer to platform notifications for updates on the availability of the editor SDK.
2932
+ *
2933
+ * * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), and skipping translation (ABC-null value). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. Contact the platform if you need a higher limit.
2934
+ * ## Preparations and call process
2935
+ * * Image Translation Standard Edition supports both synchronous and asynchronous call methods. This topic describes the asynchronous call API. For synchronous calls, refer to [Image Translation Standard Edition](https://www.alibabacloud.com/help/en/aidge/image-translation).
2936
+ * * The asynchronous APIs for Image Translation Standard Edition and other features share the same result retrieval process, RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
2937
+ * * For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls, refer to [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
2938
+ *
2939
+ * @param request - ImageTranslationStandardAsyncRequest
2940
+ * @param runtime - runtime options for this request RuntimeOptions
2941
+ * @returns ImageTranslationStandardAsyncResponse
2942
+ */
2943
+ async imageTranslationStandardAsyncWithOptions(request, runtime) {
2944
+ request.validate();
2945
+ let query = {};
2946
+ if (!$dara.isNull(request.glossary)) {
2947
+ query["Glossary"] = request.glossary;
2948
+ }
2949
+ if (!$dara.isNull(request.imageUrl)) {
2950
+ query["ImageUrl"] = request.imageUrl;
2951
+ }
2952
+ if (!$dara.isNull(request.includingProductArea)) {
2953
+ query["IncludingProductArea"] = request.includingProductArea;
2954
+ }
2955
+ if (!$dara.isNull(request.sourceLanguage)) {
2956
+ query["SourceLanguage"] = request.sourceLanguage;
2957
+ }
2958
+ if (!$dara.isNull(request.targetLanguage)) {
2959
+ query["TargetLanguage"] = request.targetLanguage;
2960
+ }
2961
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
2962
+ query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
2963
+ }
2964
+ if (!$dara.isNull(request.useImageEditor)) {
2965
+ query["UseImageEditor"] = request.useImageEditor;
2966
+ }
2967
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2968
+ query: openapi_core_2.OpenApiUtil.query(query),
2969
+ });
2970
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2971
+ action: "ImageTranslationStandardAsync",
2972
+ version: "2026-04-28",
2973
+ protocol: "HTTPS",
2974
+ pathname: "/",
2975
+ method: "POST",
2976
+ authType: "AK",
2977
+ style: "RPC",
2978
+ reqBodyType: "formData",
2979
+ bodyType: "json",
2980
+ });
2981
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardAsyncResponse({}));
2982
+ }
2983
+ /**
2984
+ * Translates e-commerce images by supporting over 400 language pairs, including bridged pairs. Accurately processes complex text layouts within images and ensures that translated content matches the image context, helping e-commerce platforms and developers easily achieve multilingual conversion and presentation of image content. The service also returns layer information such as text position, font, and color, facilitating secondary editing of translation results in image editors.
2985
+ *
2986
+ * @remarks
2987
+ * ## Scenarios
2988
+ * E-commerce product images, marketing images, and images for various other scenarios.
2989
+ * ## Features
2990
+ * * **Product subject information protection**: Allows you to specify whether to translate text on the product subject, protecting the subject information and preventing the translation of embedded information such as product names.
2991
+ *
2992
+ * * **Brand name protection**: Allows you to specify whether to translate brand names in the image, protecting brand name information from being translated.
2993
+ *
2994
+ * * **Secondary editing after translation (layer information)**: Allows you to specify whether to return layer information such as text position, font, and color. This information can be used to integrate with image editors for secondary editing of translation results. Refer to platform notifications for updates on the availability of the editor SDK.
2995
+ *
2996
+ * * **Translation intervention**: Allows you to customize translation results, including keeping the original text (ABC-ABC), specifying a translation (ABC-DEF), and skipping translation (ABC-null value). This is commonly used in scenarios such as brand word protection. You can implement this by passing the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. Contact the platform if you need a higher limit.
2997
+ * ## Preparations and call process
2998
+ * * Image Translation Standard Edition supports both synchronous and asynchronous call methods. This topic describes the asynchronous call API. For synchronous calls, refer to [Image Translation Standard Edition](https://www.alibabacloud.com/help/en/aidge/image-translation).
2999
+ * * The asynchronous APIs for Image Translation Standard Edition and other features share the same result retrieval process, RocketMQ subscription rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
3000
+ * * For the integration process, subscription rules, message formats and encryption protocols, and detailed integration solutions for asynchronous calls, refer to [Asynchronous API call instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
3001
+ *
3002
+ * @param request - ImageTranslationStandardAsyncRequest
3003
+ * @returns ImageTranslationStandardAsyncResponse
3004
+ */
3005
+ async imageTranslationStandardAsync(request) {
3006
+ let runtime = new $dara.RuntimeOptions({});
3007
+ return await this.imageTranslationStandardAsyncWithOptions(request, runtime);
3008
+ }
3009
+ /**
3010
+ * Supports automatic language identification for 31 languages in query scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations.
3011
+ *
3012
+ * @remarks
3013
+ * ## Product Introduction
3014
+ * Supports automatic language identification for 31 languages in query phrase scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations. For supported language directions, refer to the [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
3015
+ *
3016
+ * @param request - LanguageDetectRequest
3017
+ * @param runtime - runtime options for this request RuntimeOptions
3018
+ * @returns LanguageDetectResponse
3019
+ */
3020
+ async languageDetectWithOptions(request, runtime) {
3021
+ request.validate();
3022
+ let query = {};
3023
+ if (!$dara.isNull(request.scene)) {
3024
+ query["Scene"] = request.scene;
3025
+ }
3026
+ if (!$dara.isNull(request.sourceText)) {
3027
+ query["SourceText"] = request.sourceText;
3028
+ }
3029
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3030
+ query: openapi_core_2.OpenApiUtil.query(query),
3031
+ });
3032
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3033
+ action: "LanguageDetect",
3034
+ version: "2026-04-28",
3035
+ protocol: "HTTPS",
3036
+ pathname: "/",
3037
+ method: "POST",
3038
+ authType: "AK",
3039
+ style: "RPC",
3040
+ reqBodyType: "formData",
3041
+ bodyType: "json",
3042
+ });
3043
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.LanguageDetectResponse({}));
3044
+ }
3045
+ /**
3046
+ * Supports automatic language identification for 31 languages in query scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations.
3047
+ *
3048
+ * @remarks
3049
+ * ## Product Introduction
3050
+ * Supports automatic language identification for 31 languages in query phrase scenarios and 35 languages in general scenarios. Applicable to short text such as search terms, titles, and conversations. For supported language directions, refer to the [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
3051
+ *
3052
+ * @param request - LanguageDetectRequest
3053
+ * @returns LanguageDetectResponse
3054
+ */
3055
+ async languageDetect(request) {
3056
+ let runtime = new $dara.RuntimeOptions({});
3057
+ return await this.languageDetectWithOptions(request, runtime);
3058
+ }
2037
3059
  /**
2038
3060
  * Material display detection is an intelligent compliance detection capability for in-store marketing materials built on a Multimodal Large Language Model (MLLM), designed for marketing material inspection scenarios in offline retail and channel stores. For standard materials such as functional card stands, posters, and door-shaped display stands, as well as long-tail materials such as light cloth banners, KT boards, floor stickers, and light boxes captured in store photos, the service performs natural-language-level compliance checks based on inspection rules and outputs structured conclusions and evidence descriptions that can be directly integrated with business systems. This is a **synchronous** call that returns results in a single request.
2039
3061
  *
@@ -2216,6 +3238,67 @@ class Client extends openapi_core_1.default {
2216
3238
  let runtime = new $dara.RuntimeOptions({});
2217
3239
  return await this.merchandisePlacementDetectionWithOptions(request, runtime);
2218
3240
  }
3241
+ /**
3242
+ * Detects product displays in photos of shelves, endcaps, freezers, display tables, and dump bins by using product SKU recognition and multimodal large model grounding. It aggregates product locations by SKU and supplements the results with visible single-item grounding and short names to facilitate product location display, display inventory, and subsequent distribution verification in business systems.
3243
+ *
3244
+ * @remarks
3245
+ * ## Scenarios
3246
+ * - Display product inventory: Aggregates recognized product bounding boxes by SKU for business system statistics.
3247
+ * - Distribution list verification: Compares the recognized SKU list with the target list on the business side.
3248
+ * - Single-item location review: Assists in checking recognition results by combining product bounding boxes and visible names.
3249
+ * ## Features
3250
+ * - Aggregation by SKU: Aggregates multiple Boxes for the same SkuId in Products, and skuIds returns a deduplicated list of SKU codes.
3251
+ * - Supplementary single-item grounding: The multimodal model individually grounds recognizable sales packages and provides confirmable short names.
3252
+ * - Independent use of two result sets: Products comes from SKU recognition, and grounding comes from supplementary grounding. Grounding does not return SKU codes and does not guarantee item-by-item correspondence with Products.
3253
+ * - Supports single HTTPS image input. Supplementary grounding returns up to 12 targets, each containing a category, a bounding box, and visible text of up to 24 characters. The coverage field indicates whether the grounding is complete.
3254
+ *
3255
+ * @param request - MerchandisePlacementDetectionLiteRequest
3256
+ * @param runtime - runtime options for this request RuntimeOptions
3257
+ * @returns MerchandisePlacementDetectionLiteResponse
3258
+ */
3259
+ async merchandisePlacementDetectionLiteWithOptions(request, runtime) {
3260
+ request.validate();
3261
+ let query = {};
3262
+ if (!$dara.isNull(request.imageUrl)) {
3263
+ query["ImageUrl"] = request.imageUrl;
3264
+ }
3265
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3266
+ query: openapi_core_2.OpenApiUtil.query(query),
3267
+ });
3268
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3269
+ action: "MerchandisePlacementDetectionLite",
3270
+ version: "2026-04-28",
3271
+ protocol: "HTTPS",
3272
+ pathname: "/",
3273
+ method: "POST",
3274
+ authType: "AK",
3275
+ style: "RPC",
3276
+ reqBodyType: "formData",
3277
+ bodyType: "json",
3278
+ });
3279
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.MerchandisePlacementDetectionLiteResponse({}));
3280
+ }
3281
+ /**
3282
+ * Detects product displays in photos of shelves, endcaps, freezers, display tables, and dump bins by using product SKU recognition and multimodal large model grounding. It aggregates product locations by SKU and supplements the results with visible single-item grounding and short names to facilitate product location display, display inventory, and subsequent distribution verification in business systems.
3283
+ *
3284
+ * @remarks
3285
+ * ## Scenarios
3286
+ * - Display product inventory: Aggregates recognized product bounding boxes by SKU for business system statistics.
3287
+ * - Distribution list verification: Compares the recognized SKU list with the target list on the business side.
3288
+ * - Single-item location review: Assists in checking recognition results by combining product bounding boxes and visible names.
3289
+ * ## Features
3290
+ * - Aggregation by SKU: Aggregates multiple Boxes for the same SkuId in Products, and skuIds returns a deduplicated list of SKU codes.
3291
+ * - Supplementary single-item grounding: The multimodal model individually grounds recognizable sales packages and provides confirmable short names.
3292
+ * - Independent use of two result sets: Products comes from SKU recognition, and grounding comes from supplementary grounding. Grounding does not return SKU codes and does not guarantee item-by-item correspondence with Products.
3293
+ * - Supports single HTTPS image input. Supplementary grounding returns up to 12 targets, each containing a category, a bounding box, and visible text of up to 24 characters. The coverage field indicates whether the grounding is complete.
3294
+ *
3295
+ * @param request - MerchandisePlacementDetectionLiteRequest
3296
+ * @returns MerchandisePlacementDetectionLiteResponse
3297
+ */
3298
+ async merchandisePlacementDetectionLite(request) {
3299
+ let runtime = new $dara.RuntimeOptions({});
3300
+ return await this.merchandisePlacementDetectionLiteWithOptions(request, runtime);
3301
+ }
2219
3302
  /**
2220
3303
  * Detects the positions and names of visible products in an image based on a dedicated visual model. The product supports default recognition rules for the Genki Forest business type and custom rules provided by the invoker. It outputs per-product positions and names, applicable to beverage display inspection and product location display.
2221
3304
  *
@@ -2283,6 +3366,250 @@ class Client extends openapi_core_1.default {
2283
3366
  let runtime = new $dara.RuntimeOptions({});
2284
3367
  return await this.merchandisePlacementDetectionProWithOptions(request, runtime);
2285
3368
  }
3369
+ /**
3370
+ * Detects display price tags based on price tag recognition and multimodal large model localization, extracting product information, selling prices, original prices, and locations, while providing visible bounding boxes for paper price tags, electronic price tags, and promotional price signs for store price collection, price tag inspection, and business-side price verification.
3371
+ *
3372
+ * @remarks
3373
+ * ## Scenarios
3374
+ * - Store price collection: Reads the recognized selling prices and available original prices of price tags.
3375
+ * - Price execution verification: Compares the recognized prices with the business-side price list.
3376
+ * - Manual price tag review: Locates paper, electronic, and promotional price tags to facilitate reviewing the original images.
3377
+ * ## Features
3378
+ * - Structured price output: Returns the product name, code, price, and location item by item. Prices are retained as strings.
3379
+ * - Multi-type price tag localization: Covers common paper price tags, electronic price tags, and promotional signs with clear selling prices.
3380
+ * - Original text and location-assisted review: Prioritizes extracting clear selling prices from located text, leaving it empty if unreadable. Supplementary localization does not infer that a price tag necessarily corresponds to a specific SKU based on its location.
3381
+ * - Supports single HTTPS image input. Supplementary localization returns up to 12 targets, each containing a category, a bounding box, and up to 24 characters of visible text, and indicates whether the localization is complete through coverage.
3382
+ *
3383
+ * @param request - MerchandisePriceTagDetectionRequest
3384
+ * @param runtime - runtime options for this request RuntimeOptions
3385
+ * @returns MerchandisePriceTagDetectionResponse
3386
+ */
3387
+ async merchandisePriceTagDetectionWithOptions(request, runtime) {
3388
+ request.validate();
3389
+ let query = {};
3390
+ if (!$dara.isNull(request.imageUrl)) {
3391
+ query["ImageUrl"] = request.imageUrl;
3392
+ }
3393
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3394
+ query: openapi_core_2.OpenApiUtil.query(query),
3395
+ });
3396
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3397
+ action: "MerchandisePriceTagDetection",
3398
+ version: "2026-04-28",
3399
+ protocol: "HTTPS",
3400
+ pathname: "/",
3401
+ method: "POST",
3402
+ authType: "AK",
3403
+ style: "RPC",
3404
+ reqBodyType: "formData",
3405
+ bodyType: "json",
3406
+ });
3407
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.MerchandisePriceTagDetectionResponse({}));
3408
+ }
3409
+ /**
3410
+ * Detects display price tags based on price tag recognition and multimodal large model localization, extracting product information, selling prices, original prices, and locations, while providing visible bounding boxes for paper price tags, electronic price tags, and promotional price signs for store price collection, price tag inspection, and business-side price verification.
3411
+ *
3412
+ * @remarks
3413
+ * ## Scenarios
3414
+ * - Store price collection: Reads the recognized selling prices and available original prices of price tags.
3415
+ * - Price execution verification: Compares the recognized prices with the business-side price list.
3416
+ * - Manual price tag review: Locates paper, electronic, and promotional price tags to facilitate reviewing the original images.
3417
+ * ## Features
3418
+ * - Structured price output: Returns the product name, code, price, and location item by item. Prices are retained as strings.
3419
+ * - Multi-type price tag localization: Covers common paper price tags, electronic price tags, and promotional signs with clear selling prices.
3420
+ * - Original text and location-assisted review: Prioritizes extracting clear selling prices from located text, leaving it empty if unreadable. Supplementary localization does not infer that a price tag necessarily corresponds to a specific SKU based on its location.
3421
+ * - Supports single HTTPS image input. Supplementary localization returns up to 12 targets, each containing a category, a bounding box, and up to 24 characters of visible text, and indicates whether the localization is complete through coverage.
3422
+ *
3423
+ * @param request - MerchandisePriceTagDetectionRequest
3424
+ * @returns MerchandisePriceTagDetectionResponse
3425
+ */
3426
+ async merchandisePriceTagDetection(request) {
3427
+ let runtime = new $dara.RuntimeOptions({});
3428
+ return await this.merchandisePriceTagDetectionWithOptions(request, runtime);
3429
+ }
3430
+ /**
3431
+ * Detects store displays based on display scene recognition and holistic positioning powered by multimodal large models. This product identifies display areas such as shelves, refrigerators, and floor displays, and outputs available scene names, locations, and display metrics. It also provides overall facility bounding boxes, making it suitable for display facility inspection, area visualization, and display metric verification.
3432
+ *
3433
+ * @remarks
3434
+ * ## Scenarios
3435
+ * - Display facility inspection: identifies facilities such as shelves, endcaps, floor displays, upright refrigerators, and chest freezers.
3436
+ * - Display metric verification: reads active metrics such as proportion, purity, and plumpness for further evaluation by business systems.
3437
+ * - Display area visualization: displays area locations and overall facility bounding boxes on the original image.
3438
+ * ## Features
3439
+ * - Scene structured output: returns scene names, center points, area contours, and active metrics.
3440
+ * - Holistic facility positioning: uses one bounding box for an independent facility or floor display, which is suitable for overall area review.
3441
+ * - Retains two types of coordinates: the positions in scenes retain the original normalization coordinates of the recognition service, while grounding uses 0–1000 integer bounding boxes.
3442
+ * - Supports a single HTTPS image as input. The supplementary positioning returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text, and uses coverage to indicate whether the positioning is complete.
3443
+ *
3444
+ * @param request - MerchandiseSceneDetectionRequest
3445
+ * @param runtime - runtime options for this request RuntimeOptions
3446
+ * @returns MerchandiseSceneDetectionResponse
3447
+ */
3448
+ async merchandiseSceneDetectionWithOptions(request, runtime) {
3449
+ request.validate();
3450
+ let query = {};
3451
+ if (!$dara.isNull(request.imageUrl)) {
3452
+ query["ImageUrl"] = request.imageUrl;
3453
+ }
3454
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3455
+ query: openapi_core_2.OpenApiUtil.query(query),
3456
+ });
3457
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3458
+ action: "MerchandiseSceneDetection",
3459
+ version: "2026-04-28",
3460
+ protocol: "HTTPS",
3461
+ pathname: "/",
3462
+ method: "POST",
3463
+ authType: "AK",
3464
+ style: "RPC",
3465
+ reqBodyType: "formData",
3466
+ bodyType: "json",
3467
+ });
3468
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.MerchandiseSceneDetectionResponse({}));
3469
+ }
3470
+ /**
3471
+ * Detects store displays based on display scene recognition and holistic positioning powered by multimodal large models. This product identifies display areas such as shelves, refrigerators, and floor displays, and outputs available scene names, locations, and display metrics. It also provides overall facility bounding boxes, making it suitable for display facility inspection, area visualization, and display metric verification.
3472
+ *
3473
+ * @remarks
3474
+ * ## Scenarios
3475
+ * - Display facility inspection: identifies facilities such as shelves, endcaps, floor displays, upright refrigerators, and chest freezers.
3476
+ * - Display metric verification: reads active metrics such as proportion, purity, and plumpness for further evaluation by business systems.
3477
+ * - Display area visualization: displays area locations and overall facility bounding boxes on the original image.
3478
+ * ## Features
3479
+ * - Scene structured output: returns scene names, center points, area contours, and active metrics.
3480
+ * - Holistic facility positioning: uses one bounding box for an independent facility or floor display, which is suitable for overall area review.
3481
+ * - Retains two types of coordinates: the positions in scenes retain the original normalization coordinates of the recognition service, while grounding uses 0–1000 integer bounding boxes.
3482
+ * - Supports a single HTTPS image as input. The supplementary positioning returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text, and uses coverage to indicate whether the positioning is complete.
3483
+ *
3484
+ * @param request - MerchandiseSceneDetectionRequest
3485
+ * @returns MerchandiseSceneDetectionResponse
3486
+ */
3487
+ async merchandiseSceneDetection(request) {
3488
+ let runtime = new $dara.RuntimeOptions({});
3489
+ return await this.merchandiseSceneDetectionWithOptions(request, runtime);
3490
+ }
3491
+ /**
3492
+ * Reviews images of milk powder can bottom codes by using recapture detection and multimodal large model-based element localization. The service determines whether an uploaded photo is recaptured and localizes visible milk powder products, can bottoms, and bottom code areas. It is suitable for milk powder channel inspections, can bottom code photo reviews, and manual verifications.
3493
+ *
3494
+ * @remarks
3495
+ * ## Features
3496
+ * - Recapture binary classification: isFake=true indicates a recapture, and false indicates a non-recapture. Element localization is performed for both results.
3497
+ * - Milk powder subject and bottom code localization: Prioritizes the localization of the milk powder subject. Adds corresponding bounding boxes when the can bottom, spray code, batch code, or traceability code areas are clear.
3498
+ * - Visible information output: Outputs only confirmed short names or text without guessing blurred code values. Localization results do not change the recapture conclusion.
3499
+ * - Supports a single HTTPS image input. The supplementary localization returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the localization is complete.
3500
+ * ## Scenarios:
3501
+ * - Can bottom code photo review: Determines whether a photo of a milk powder can bottom code has a recapture risk.
3502
+ * - Milk powder product inspection: Localizes canned, boxed, or bagged milk powder, as well as clearly visible can bottoms and bottom codes.
3503
+ * - Review result playback: Displays target bounding boxes on the original image to assist personnel in verifying the photo content.
3504
+ *
3505
+ * @param request - MilkPowderCanBottomCodeRephotographyDetectionRequest
3506
+ * @param runtime - runtime options for this request RuntimeOptions
3507
+ * @returns MilkPowderCanBottomCodeRephotographyDetectionResponse
3508
+ */
3509
+ async milkPowderCanBottomCodeRephotographyDetectionWithOptions(request, runtime) {
3510
+ request.validate();
3511
+ let query = {};
3512
+ if (!$dara.isNull(request.imageUrl)) {
3513
+ query["ImageUrl"] = request.imageUrl;
3514
+ }
3515
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3516
+ query: openapi_core_2.OpenApiUtil.query(query),
3517
+ });
3518
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3519
+ action: "MilkPowderCanBottomCodeRephotographyDetection",
3520
+ version: "2026-04-28",
3521
+ protocol: "HTTPS",
3522
+ pathname: "/",
3523
+ method: "POST",
3524
+ authType: "AK",
3525
+ style: "RPC",
3526
+ reqBodyType: "formData",
3527
+ bodyType: "json",
3528
+ });
3529
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.MilkPowderCanBottomCodeRephotographyDetectionResponse({}));
3530
+ }
3531
+ /**
3532
+ * Reviews images of milk powder can bottom codes by using recapture detection and multimodal large model-based element localization. The service determines whether an uploaded photo is recaptured and localizes visible milk powder products, can bottoms, and bottom code areas. It is suitable for milk powder channel inspections, can bottom code photo reviews, and manual verifications.
3533
+ *
3534
+ * @remarks
3535
+ * ## Features
3536
+ * - Recapture binary classification: isFake=true indicates a recapture, and false indicates a non-recapture. Element localization is performed for both results.
3537
+ * - Milk powder subject and bottom code localization: Prioritizes the localization of the milk powder subject. Adds corresponding bounding boxes when the can bottom, spray code, batch code, or traceability code areas are clear.
3538
+ * - Visible information output: Outputs only confirmed short names or text without guessing blurred code values. Localization results do not change the recapture conclusion.
3539
+ * - Supports a single HTTPS image input. The supplementary localization returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the localization is complete.
3540
+ * ## Scenarios:
3541
+ * - Can bottom code photo review: Determines whether a photo of a milk powder can bottom code has a recapture risk.
3542
+ * - Milk powder product inspection: Localizes canned, boxed, or bagged milk powder, as well as clearly visible can bottoms and bottom codes.
3543
+ * - Review result playback: Displays target bounding boxes on the original image to assist personnel in verifying the photo content.
3544
+ *
3545
+ * @param request - MilkPowderCanBottomCodeRephotographyDetectionRequest
3546
+ * @returns MilkPowderCanBottomCodeRephotographyDetectionResponse
3547
+ */
3548
+ async milkPowderCanBottomCodeRephotographyDetection(request) {
3549
+ let runtime = new $dara.RuntimeOptions({});
3550
+ return await this.milkPowderCanBottomCodeRephotographyDetectionWithOptions(request, runtime);
3551
+ }
3552
+ /**
3553
+ * Reviews infant formula carton code images based on recapture detection and element localization using multimodal foundation models. It targets photos of infant formula products, outer cartons, and carton codes captured during channel inspections. It determines whether images are non-recaptured, recaptured, or suspected recaptures, and localizes visible infant formula products, outer cartons, and code regions to provide a structured basis for image review and manual verification.
3554
+ *
3555
+ * @remarks
3556
+ * ## Features
3557
+ * - Three-state recapture detection: When photoStatus is 0, 1, or 2, it indicates non-recapture, recapture, or suspected recapture, respectively. The isFake, isSuspect, and score fields are also returned.
3558
+ * - Subject and code area grounding: Prioritizes the grounding of individual milk powder products and outer boxes, and supplements clear box codes, barcodes, and QR code areas. The milk powder subject can still be grounded even if no box code is present.
3559
+ * - Result coordination: Element grounding supplements visible targets without changing the recapture detection conclusion. It does not decode QR codes or provide product authenticity verification.
3560
+ * - Supports a single HTTPS image as input. The supplementary grounding returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the grounding is complete.
3561
+ * ## Scenarios
3562
+ * - Box code photo review: Checks whether milk powder outer box photos uploaded by stores or channels carry recapture risks.
3563
+ * - Milk powder display inspection: Locates visible individual milk powder products, full boxes, and clear code areas in photos.
3564
+ * - Suspected sample review: Filters images that require manual verification based on the suspected status, algorithm score, and bounding boxes.
3565
+ *
3566
+ * @param request - MilkPowderCartonCodeRephotographyDetectionRequest
3567
+ * @param runtime - runtime options for this request RuntimeOptions
3568
+ * @returns MilkPowderCartonCodeRephotographyDetectionResponse
3569
+ */
3570
+ async milkPowderCartonCodeRephotographyDetectionWithOptions(request, runtime) {
3571
+ request.validate();
3572
+ let query = {};
3573
+ if (!$dara.isNull(request.imageUrl)) {
3574
+ query["ImageUrl"] = request.imageUrl;
3575
+ }
3576
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3577
+ query: openapi_core_2.OpenApiUtil.query(query),
3578
+ });
3579
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3580
+ action: "MilkPowderCartonCodeRephotographyDetection",
3581
+ version: "2026-04-28",
3582
+ protocol: "HTTPS",
3583
+ pathname: "/",
3584
+ method: "POST",
3585
+ authType: "AK",
3586
+ style: "RPC",
3587
+ reqBodyType: "formData",
3588
+ bodyType: "json",
3589
+ });
3590
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.MilkPowderCartonCodeRephotographyDetectionResponse({}));
3591
+ }
3592
+ /**
3593
+ * Reviews infant formula carton code images based on recapture detection and element localization using multimodal foundation models. It targets photos of infant formula products, outer cartons, and carton codes captured during channel inspections. It determines whether images are non-recaptured, recaptured, or suspected recaptures, and localizes visible infant formula products, outer cartons, and code regions to provide a structured basis for image review and manual verification.
3594
+ *
3595
+ * @remarks
3596
+ * ## Features
3597
+ * - Three-state recapture detection: When photoStatus is 0, 1, or 2, it indicates non-recapture, recapture, or suspected recapture, respectively. The isFake, isSuspect, and score fields are also returned.
3598
+ * - Subject and code area grounding: Prioritizes the grounding of individual milk powder products and outer boxes, and supplements clear box codes, barcodes, and QR code areas. The milk powder subject can still be grounded even if no box code is present.
3599
+ * - Result coordination: Element grounding supplements visible targets without changing the recapture detection conclusion. It does not decode QR codes or provide product authenticity verification.
3600
+ * - Supports a single HTTPS image as input. The supplementary grounding returns up to 12 targets. Each target includes a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the grounding is complete.
3601
+ * ## Scenarios
3602
+ * - Box code photo review: Checks whether milk powder outer box photos uploaded by stores or channels carry recapture risks.
3603
+ * - Milk powder display inspection: Locates visible individual milk powder products, full boxes, and clear code areas in photos.
3604
+ * - Suspected sample review: Filters images that require manual verification based on the suspected status, algorithm score, and bounding boxes.
3605
+ *
3606
+ * @param request - MilkPowderCartonCodeRephotographyDetectionRequest
3607
+ * @returns MilkPowderCartonCodeRephotographyDetectionResponse
3608
+ */
3609
+ async milkPowderCartonCodeRephotographyDetection(request) {
3610
+ let runtime = new $dara.RuntimeOptions({});
3611
+ return await this.milkPowderCartonCodeRephotographyDetectionWithOptions(request, runtime);
3612
+ }
2286
3613
  /**
2287
3614
  * An intelligent logistics parcel review product built on the collaboration of a multimodal large language model (MLLM) and dedicated vision algorithms. It targets automated compliance review for the "piece-weight-dimension" stage in e-commerce logistics. The product performs structured review across multiple dimensions, including bounding box validity, bounding box fit, and foreign object interference for parcels on scanning platforms. It supports different hardware capture scenarios such as white and green background boards, and outputs Boolean review conclusions with Chinese-language reason descriptions that can be directly integrated with business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
2288
3615
  *
@@ -2356,17 +3683,7 @@ class Client extends openapi_core_1.default {
2356
3683
  return await this.packageWeightSizeCheckWithOptions(request, runtime);
2357
3684
  }
2358
3685
  /**
2359
- * Analyzes pet excrement images using a pet multimodal model building product. Supports uploading pet excrement images, determines by default whether excrement is present in the image, locates and performs categorization on each visible excrement area, and returns model-generated text containing the categorization results. The invoker can also optionally provide a user prompt and a system prompt to customize image analysis requirements and response format.
2360
- * Applicable scenarios:
2361
- * 1. Excrement image analysis: Upload pet excrement images for analysis using the default method.
2362
- * 2. Observation record organization: Combine multiple excrement images to assist in organizing visible features and observation records.
2363
- * 3. Custom image-text analysis: Provide a user prompt to specify the image content to focus on and the analysis requirements.
2364
- *
2365
- * @remarks
2366
- * 1. Multi-image input: image_url is a required array of HTTPS image URLs.
2367
- * 2. Default excrement analysis: If user_prompt is not specified or is an empty string, the system determines whether excrement is present and outputs the location, urine clump/feces category, and subcategory for each region.
2368
- * 3. Custom analysis: user_prompt and system_prompt are both optional. You can specify analysis requirements and system prompts separately. When submitting custom prompts, use values that comply with JSON string escaping rules.
2369
- * 4. Text result response: result is always a String. Even if the model text itself is JSON, it is not automatically converted to an object.
3686
+ * 宠物健康分析
2370
3687
  *
2371
3688
  * @param tmpReq - PetHealthAnalysisRequest
2372
3689
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2406,17 +3723,7 @@ class Client extends openapi_core_1.default {
2406
3723
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.PetHealthAnalysisResponse({}));
2407
3724
  }
2408
3725
  /**
2409
- * Analyzes pet excrement images using a pet multimodal model building product. Supports uploading pet excrement images, determines by default whether excrement is present in the image, locates and performs categorization on each visible excrement area, and returns model-generated text containing the categorization results. The invoker can also optionally provide a user prompt and a system prompt to customize image analysis requirements and response format.
2410
- * Applicable scenarios:
2411
- * 1. Excrement image analysis: Upload pet excrement images for analysis using the default method.
2412
- * 2. Observation record organization: Combine multiple excrement images to assist in organizing visible features and observation records.
2413
- * 3. Custom image-text analysis: Provide a user prompt to specify the image content to focus on and the analysis requirements.
2414
- *
2415
- * @remarks
2416
- * 1. Multi-image input: image_url is a required array of HTTPS image URLs.
2417
- * 2. Default excrement analysis: If user_prompt is not specified or is an empty string, the system determines whether excrement is present and outputs the location, urine clump/feces category, and subcategory for each region.
2418
- * 3. Custom analysis: user_prompt and system_prompt are both optional. You can specify analysis requirements and system prompts separately. When submitting custom prompts, use values that comply with JSON string escaping rules.
2419
- * 4. Text result response: result is always a String. Even if the model text itself is JSON, it is not automatically converted to an object.
3726
+ * 宠物健康分析
2420
3727
  *
2421
3728
  * @param request - PetHealthAnalysisRequest
2422
3729
  * @returns PetHealthAnalysisResponse
@@ -2639,12 +3946,71 @@ class Client extends openapi_core_1.default {
2639
3946
  * @remarks
2640
3947
  * API name on the POP gateway: QueryAsyncTaskResult.
2641
3948
  *
2642
- * @param request - QueryAsyncTaskResultRequest
2643
- * @returns QueryAsyncTaskResultResponse
3949
+ * @param request - QueryAsyncTaskResultRequest
3950
+ * @returns QueryAsyncTaskResultResponse
3951
+ */
3952
+ async queryAsyncTaskResult(request) {
3953
+ let runtime = new $dara.RuntimeOptions({});
3954
+ return await this.queryAsyncTaskResultWithOptions(request, runtime);
3955
+ }
3956
+ /**
3957
+ * Performs a paged query on the content of a display knowledge base with paging (synchronization).
3958
+ *
3959
+ * @param tmpReq - QueryDisplayKnowledgeRequest
3960
+ * @param runtime - runtime options for this request RuntimeOptions
3961
+ * @returns QueryDisplayKnowledgeResponse
3962
+ */
3963
+ async queryDisplayKnowledgeWithOptions(tmpReq, runtime) {
3964
+ tmpReq.validate();
3965
+ let request = new $_model.QueryDisplayKnowledgeShrinkRequest({});
3966
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3967
+ if (!$dara.isNull(tmpReq.statuses)) {
3968
+ request.statusesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.statuses, "Statuses", "json");
3969
+ }
3970
+ let query = {};
3971
+ if (!$dara.isNull(request.pageNum)) {
3972
+ query["PageNum"] = request.pageNum;
3973
+ }
3974
+ if (!$dara.isNull(request.pageSize)) {
3975
+ query["PageSize"] = request.pageSize;
3976
+ }
3977
+ if (!$dara.isNull(request.ragId)) {
3978
+ query["RagId"] = request.ragId;
3979
+ }
3980
+ if (!$dara.isNull(request.skuId)) {
3981
+ query["SkuId"] = request.skuId;
3982
+ }
3983
+ if (!$dara.isNull(request.skuName)) {
3984
+ query["SkuName"] = request.skuName;
3985
+ }
3986
+ if (!$dara.isNull(request.statusesShrink)) {
3987
+ query["Statuses"] = request.statusesShrink;
3988
+ }
3989
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3990
+ query: openapi_core_2.OpenApiUtil.query(query),
3991
+ });
3992
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3993
+ action: "QueryDisplayKnowledge",
3994
+ version: "2026-04-28",
3995
+ protocol: "HTTPS",
3996
+ pathname: "/",
3997
+ method: "POST",
3998
+ authType: "AK",
3999
+ style: "RPC",
4000
+ reqBodyType: "formData",
4001
+ bodyType: "json",
4002
+ });
4003
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryDisplayKnowledgeResponse({}));
4004
+ }
4005
+ /**
4006
+ * Performs a paged query on the content of a display knowledge base with paging (synchronization).
4007
+ *
4008
+ * @param request - QueryDisplayKnowledgeRequest
4009
+ * @returns QueryDisplayKnowledgeResponse
2644
4010
  */
2645
- async queryAsyncTaskResult(request) {
4011
+ async queryDisplayKnowledge(request) {
2646
4012
  let runtime = new $dara.RuntimeOptions({});
2647
- return await this.queryAsyncTaskResultWithOptions(request, runtime);
4013
+ return await this.queryDisplayKnowledgeWithOptions(request, runtime);
2648
4014
  }
2649
4015
  /**
2650
4016
  * Detects whether an image contains a size chart. (Synchronous)
@@ -2709,28 +4075,315 @@ class Client extends openapi_core_1.default {
2709
4075
  * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4jKqm0bAebrKLnw1/img/0a914347-2acb-4b94-bf07-86aab2b31279.png) | 0.4 | true |
2710
4076
  * | ![O1CN01ZjViRX1rdaL6QDFNo_!!6000000005654-0-tps-2048-2048.webp](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4jKqm0bAebrKLnw1/img/ab29b032-139a-4b22-9371-b387581559b7.webp) | 0.4 | false |
2711
4077
  *
2712
- * @param request - SizeChartDetectRequest
2713
- * @returns SizeChartDetectResponse
4078
+ * @param request - SizeChartDetectRequest
4079
+ * @returns SizeChartDetectResponse
4080
+ */
4081
+ async sizeChartDetect(request) {
4082
+ let runtime = new $dara.RuntimeOptions({});
4083
+ return await this.sizeChartDetectWithOptions(request, runtime);
4084
+ }
4085
+ /**
4086
+ * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
4087
+ *
4088
+ * @remarks
4089
+ * ## Product Introduction
4090
+ * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
4091
+ * ## Common scenarios
4092
+ * * Size chart: Extracts size charts from apparel category images into text.
4093
+ *
4094
+ * * Package weight/dimensions: Extracts package weight and dimension information from images.
4095
+ * ## Functions and features
4096
+ * The size chart extraction service is based on a multimodal large language model. It automatically recognizes size chart or package weight/dimension information in images and converts it into structured text output. You provide an image URL, and the system processes the request as an asynchronous task and returns the extracted structured data. You can use the ColumnNameList parameter to specify the column names to recognize (such as Size, Bust, and Length) for precise targeted extraction. You can also use the LanguageModel parameter to control the output language. Valid values: cn (Chinese) and en (English). If you leave this parameter empty, the original language is retained. This service is applicable to scenarios such as converting apparel size charts to text and batch structuring of product weight/dimension information.
4097
+ * Core capability: Provide an image URL and optional column name configurations as input, and receive structured data of size charts or package weight/dimensions from the image as output. The API uses an asynchronous task mode (background: true). After submission, a task ID is returned. Poll for the final result. This mode is suitable for processing complex images or high-volume call scenarios.
4098
+ * ## Comparison
4099
+ * | **Input image** | **Output result** |
4100
+ * | --- | --- |
4101
+ * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4jKqm0bAebrKLnw1/img/0a914347-2acb-4b94-bf07-86aab2b31279.png) | {
4102
+ * "SizeChart": [
4103
+ * {
4104
+ * "尺码": {
4105
+ * "value": "S"
4106
+ * },
4107
+ * "腰围": {
4108
+ * "unit": "CM",
4109
+ * "value": 58
4110
+ * },
4111
+ * "裙长": {
4112
+ * "unit": "CM",
4113
+ * "value": 81
4114
+ * },
4115
+ * "体重建议": {
4116
+ * "unit": "kg",
4117
+ * "lower_value": 40,
4118
+ * "upper_value": 47.5
4119
+ * }
4120
+ * },
4121
+ * {
4122
+ * "尺码": {
4123
+ * "value": "M"
4124
+ * },
4125
+ * "腰围": {
4126
+ * "unit": "CM",
4127
+ * "value": 59
4128
+ * },
4129
+ * "裙长": {
4130
+ * "unit": "CM",
4131
+ * "value": 82
4132
+ * },
4133
+ * "体重建议": {
4134
+ * "unit": "kg",
4135
+ * "lower_value": 45,
4136
+ * "upper_value": 52.5
4137
+ * }
4138
+ * },
4139
+ * {
4140
+ * "尺码": {
4141
+ * "value": "L"
4142
+ * },
4143
+ * "腰围": {
4144
+ * "unit": "CM",
4145
+ * "value": 60
4146
+ * },
4147
+ * "裙长": {
4148
+ * "unit": "CM",
4149
+ * "value": 83
4150
+ * },
4151
+ * "体重建议": {
4152
+ * "unit": "kg",
4153
+ * "lower_value": 50,
4154
+ * "upper_value": 57.5
4155
+ * }
4156
+ * },
4157
+ * {
4158
+ * "尺码": {
4159
+ * "value": "XL"
4160
+ * },
4161
+ * "腰围": {
4162
+ * "unit": "CM",
4163
+ * "value": 61
4164
+ * },
4165
+ * "裙长": {
4166
+ * "unit": "CM",
4167
+ * "value": 84
4168
+ * },
4169
+ * "体重建议": {
4170
+ * "unit": "kg",
4171
+ * "lower_value": 55,
4172
+ * "upper_value": 62.5
4173
+ * }
4174
+ * },
4175
+ * {
4176
+ * "尺码": {
4177
+ * "value": "2XL"
4178
+ * },
4179
+ * "腰围": {
4180
+ * "unit": "CM",
4181
+ * "value": 62
4182
+ * },
4183
+ * "裙长": {
4184
+ * "unit": "CM",
4185
+ * "value": 85
4186
+ * },
4187
+ * "体重建议": {
4188
+ * "unit": "kg",
4189
+ * "lower_value": 60,
4190
+ * "upper_value": 67.5
4191
+ * }
4192
+ * }
4193
+ * \\],
4194
+ * "SizeChartAttributes": [
4195
+ * "尺码",
4196
+ * "裙长",
4197
+ * "腰围",
4198
+ * "体重建议"
4199
+ * \\],
4200
+ * "IntersectionAttributes": [
4201
+ * "尺码",
4202
+ * "裙长",
4203
+ * "腰围(拉伸)",
4204
+ * "体重建议"
4205
+ * \\]
4206
+ * } |
4207
+ *
4208
+ * @param tmpReq - SizeChartExtractRequest
4209
+ * @param runtime - runtime options for this request RuntimeOptions
4210
+ * @returns SizeChartExtractResponse
4211
+ */
4212
+ async sizeChartExtractWithOptions(tmpReq, runtime) {
4213
+ tmpReq.validate();
4214
+ let request = new $_model.SizeChartExtractShrinkRequest({});
4215
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4216
+ if (!$dara.isNull(tmpReq.columnNameList)) {
4217
+ request.columnNameListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columnNameList, "ColumnNameList", "json");
4218
+ }
4219
+ let query = {};
4220
+ if (!$dara.isNull(request.columnNameListShrink)) {
4221
+ query["ColumnNameList"] = request.columnNameListShrink;
4222
+ }
4223
+ if (!$dara.isNull(request.imageUrl)) {
4224
+ query["ImageUrl"] = request.imageUrl;
4225
+ }
4226
+ if (!$dara.isNull(request.languageModel)) {
4227
+ query["LanguageModel"] = request.languageModel;
4228
+ }
4229
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4230
+ query: openapi_core_2.OpenApiUtil.query(query),
4231
+ });
4232
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4233
+ action: "SizeChartExtract",
4234
+ version: "2026-04-28",
4235
+ protocol: "HTTPS",
4236
+ pathname: "/",
4237
+ method: "POST",
4238
+ authType: "AK",
4239
+ style: "RPC",
4240
+ reqBodyType: "formData",
4241
+ bodyType: "json",
4242
+ });
4243
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.SizeChartExtractResponse({}));
4244
+ }
4245
+ /**
4246
+ * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
4247
+ *
4248
+ * @remarks
4249
+ * ## Product Introduction
4250
+ * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
4251
+ * ## Common scenarios
4252
+ * * Size chart: Extracts size charts from apparel category images into text.
4253
+ *
4254
+ * * Package weight/dimensions: Extracts package weight and dimension information from images.
4255
+ * ## Functions and features
4256
+ * The size chart extraction service is based on a multimodal large language model. It automatically recognizes size chart or package weight/dimension information in images and converts it into structured text output. You provide an image URL, and the system processes the request as an asynchronous task and returns the extracted structured data. You can use the ColumnNameList parameter to specify the column names to recognize (such as Size, Bust, and Length) for precise targeted extraction. You can also use the LanguageModel parameter to control the output language. Valid values: cn (Chinese) and en (English). If you leave this parameter empty, the original language is retained. This service is applicable to scenarios such as converting apparel size charts to text and batch structuring of product weight/dimension information.
4257
+ * Core capability: Provide an image URL and optional column name configurations as input, and receive structured data of size charts or package weight/dimensions from the image as output. The API uses an asynchronous task mode (background: true). After submission, a task ID is returned. Poll for the final result. This mode is suitable for processing complex images or high-volume call scenarios.
4258
+ * ## Comparison
4259
+ * | **Input image** | **Output result** |
4260
+ * | --- | --- |
4261
+ * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4jKqm0bAebrKLnw1/img/0a914347-2acb-4b94-bf07-86aab2b31279.png) | {
4262
+ * "SizeChart": [
4263
+ * {
4264
+ * "尺码": {
4265
+ * "value": "S"
4266
+ * },
4267
+ * "腰围": {
4268
+ * "unit": "CM",
4269
+ * "value": 58
4270
+ * },
4271
+ * "裙长": {
4272
+ * "unit": "CM",
4273
+ * "value": 81
4274
+ * },
4275
+ * "体重建议": {
4276
+ * "unit": "kg",
4277
+ * "lower_value": 40,
4278
+ * "upper_value": 47.5
4279
+ * }
4280
+ * },
4281
+ * {
4282
+ * "尺码": {
4283
+ * "value": "M"
4284
+ * },
4285
+ * "腰围": {
4286
+ * "unit": "CM",
4287
+ * "value": 59
4288
+ * },
4289
+ * "裙长": {
4290
+ * "unit": "CM",
4291
+ * "value": 82
4292
+ * },
4293
+ * "体重建议": {
4294
+ * "unit": "kg",
4295
+ * "lower_value": 45,
4296
+ * "upper_value": 52.5
4297
+ * }
4298
+ * },
4299
+ * {
4300
+ * "尺码": {
4301
+ * "value": "L"
4302
+ * },
4303
+ * "腰围": {
4304
+ * "unit": "CM",
4305
+ * "value": 60
4306
+ * },
4307
+ * "裙长": {
4308
+ * "unit": "CM",
4309
+ * "value": 83
4310
+ * },
4311
+ * "体重建议": {
4312
+ * "unit": "kg",
4313
+ * "lower_value": 50,
4314
+ * "upper_value": 57.5
4315
+ * }
4316
+ * },
4317
+ * {
4318
+ * "尺码": {
4319
+ * "value": "XL"
4320
+ * },
4321
+ * "腰围": {
4322
+ * "unit": "CM",
4323
+ * "value": 61
4324
+ * },
4325
+ * "裙长": {
4326
+ * "unit": "CM",
4327
+ * "value": 84
4328
+ * },
4329
+ * "体重建议": {
4330
+ * "unit": "kg",
4331
+ * "lower_value": 55,
4332
+ * "upper_value": 62.5
4333
+ * }
4334
+ * },
4335
+ * {
4336
+ * "尺码": {
4337
+ * "value": "2XL"
4338
+ * },
4339
+ * "腰围": {
4340
+ * "unit": "CM",
4341
+ * "value": 62
4342
+ * },
4343
+ * "裙长": {
4344
+ * "unit": "CM",
4345
+ * "value": 85
4346
+ * },
4347
+ * "体重建议": {
4348
+ * "unit": "kg",
4349
+ * "lower_value": 60,
4350
+ * "upper_value": 67.5
4351
+ * }
4352
+ * }
4353
+ * \\],
4354
+ * "SizeChartAttributes": [
4355
+ * "尺码",
4356
+ * "裙长",
4357
+ * "腰围",
4358
+ * "体重建议"
4359
+ * \\],
4360
+ * "IntersectionAttributes": [
4361
+ * "尺码",
4362
+ * "裙长",
4363
+ * "腰围(拉伸)",
4364
+ * "体重建议"
4365
+ * \\]
4366
+ * } |
4367
+ *
4368
+ * @param request - SizeChartExtractRequest
4369
+ * @returns SizeChartExtractResponse
2714
4370
  */
2715
- async sizeChartDetect(request) {
4371
+ async sizeChartExtract(request) {
2716
4372
  let runtime = new $dara.RuntimeOptions({});
2717
- return await this.sizeChartDetectWithOptions(request, runtime);
4373
+ return await this.sizeChartExtractWithOptions(request, runtime);
2718
4374
  }
2719
4375
  /**
2720
- * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
4376
+ * Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large models in asynchronous mode.
2721
4377
  *
2722
4378
  * @remarks
2723
- * ## Product Introduction
2724
- * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
2725
- * ## Common scenarios
2726
- * * Size chart: Extracts size charts from apparel category images into text.
2727
- *
2728
- * * Package weight/dimensions: Extracts package weight and dimension information from images.
2729
- * ## Functions and features
2730
- * The size chart extraction service is based on a multimodal large language model. It automatically recognizes size chart or package weight/dimension information in images and converts it into structured text output. You provide an image URL, and the system processes the request as an asynchronous task and returns the extracted structured data. You can use the ColumnNameList parameter to specify the column names to recognize (such as Size, Bust, and Length) for precise targeted extraction. You can also use the LanguageModel parameter to control the output language. Valid values: cn (Chinese) and en (English). If you leave this parameter empty, the original language is retained. This service is applicable to scenarios such as converting apparel size charts to text and batch structuring of product weight/dimension information.
2731
- * Core capability: Provide an image URL and optional column name configurations as input, and receive structured data of size charts or package weight/dimensions from the image as output. The API uses an asynchronous task mode (background: true). After submission, a task ID is returned. Poll for the final result. This mode is suitable for processing complex images or high-volume call scenarios.
2732
- * ## Comparison
2733
- * | **Input image** | **Output result** |
4379
+ * ## Scenarios
4380
+ * Size charts: Extracts size charts for apparel categories into text.
4381
+ * Package weight and dimensions: Extracts package weight and dimension information from images.
4382
+ * ## Feature description
4383
+ * The size chart extraction service is based on multimodal foundation models. It automatically recognizes size charts or package weight and dimension information in images and converts the information into structured text. Provide an image URL, and the system processes the request as an asynchronous task and returns the extracted structured data. You can specify the column names to be recognized, such as Size, Bust, and Length, by using ColumnNameList for precise targeted extraction. You can also control the output language by using the LanguageModel parameter. Valid values: cn for Chinese and en for English. If you do not specify this parameter, the original language is retained. This service is applicable to scenarios such as text conversion of size charts for apparel categories and batch structuring of package weight and dimension information for commodities.
4384
+ * Core capabilities: Input an image URL and optional column name configurations to output the structured data of the size chart or package weight and dimensions in the image. The API operation uses the asynchronous task mode (background: true). After you submit the task, a task ID is returned. You must poll the task to obtain the final result. This mode is suitable for processing complex images or handling large-scale calls.
4385
+ * ## Example results
4386
+ * | Input image | Output result |
2734
4387
  * | --- | --- |
2735
4388
  * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4jKqm0bAebrKLnw1/img/0a914347-2acb-4b94-bf07-86aab2b31279.png) | {
2736
4389
  * "SizeChart": [
@@ -2826,26 +4479,26 @@ class Client extends openapi_core_1.default {
2826
4479
  * }
2827
4480
  * \\],
2828
4481
  * "SizeChartAttributes": [
2829
- * "尺码",
2830
- * "裙长",
2831
- * "腰围",
2832
- * "体重建议"
4482
+ * "Size",
4483
+ * "Skirt length",
4484
+ * "Waist",
4485
+ * "Weight recommendation"
2833
4486
  * \\],
2834
4487
  * "IntersectionAttributes": [
2835
- * "尺码",
2836
- * "裙长",
2837
- * "腰围(拉伸)",
2838
- * "体重建议"
4488
+ * "Size",
4489
+ * "Skirt length",
4490
+ * "Waist (stretched)",
4491
+ * "Weight recommendation"
2839
4492
  * \\]
2840
4493
  * } |
2841
4494
  *
2842
- * @param tmpReq - SizeChartExtractRequest
4495
+ * @param tmpReq - SizeChartExtractAsyncRequest
2843
4496
  * @param runtime - runtime options for this request RuntimeOptions
2844
- * @returns SizeChartExtractResponse
4497
+ * @returns SizeChartExtractAsyncResponse
2845
4498
  */
2846
- async sizeChartExtractWithOptions(tmpReq, runtime) {
4499
+ async sizeChartExtractAsyncWithOptions(tmpReq, runtime) {
2847
4500
  tmpReq.validate();
2848
- let request = new $_model.SizeChartExtractShrinkRequest({});
4501
+ let request = new $_model.SizeChartExtractAsyncShrinkRequest({});
2849
4502
  openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2850
4503
  if (!$dara.isNull(tmpReq.columnNameList)) {
2851
4504
  request.columnNameListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columnNameList, "ColumnNameList", "json");
@@ -2864,7 +4517,7 @@ class Client extends openapi_core_1.default {
2864
4517
  query: openapi_core_2.OpenApiUtil.query(query),
2865
4518
  });
2866
4519
  let params = new openapi_core_2.$OpenApiUtil.Params({
2867
- action: "SizeChartExtract",
4520
+ action: "SizeChartExtractAsync",
2868
4521
  version: "2026-04-28",
2869
4522
  protocol: "HTTPS",
2870
4523
  pathname: "/",
@@ -2874,23 +4527,20 @@ class Client extends openapi_core_1.default {
2874
4527
  reqBodyType: "formData",
2875
4528
  bodyType: "json",
2876
4529
  });
2877
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.SizeChartExtractResponse({}));
4530
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.SizeChartExtractAsyncResponse({}));
2878
4531
  }
2879
4532
  /**
2880
- * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
4533
+ * Extracts structured information such as size charts and package weight and dimensions from images by using multimodal large models in asynchronous mode.
2881
4534
  *
2882
4535
  * @remarks
2883
- * ## Product Introduction
2884
- * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous)
2885
- * ## Common scenarios
2886
- * * Size chart: Extracts size charts from apparel category images into text.
2887
- *
2888
- * * Package weight/dimensions: Extracts package weight and dimension information from images.
2889
- * ## Functions and features
2890
- * The size chart extraction service is based on a multimodal large language model. It automatically recognizes size chart or package weight/dimension information in images and converts it into structured text output. You provide an image URL, and the system processes the request as an asynchronous task and returns the extracted structured data. You can use the ColumnNameList parameter to specify the column names to recognize (such as Size, Bust, and Length) for precise targeted extraction. You can also use the LanguageModel parameter to control the output language. Valid values: cn (Chinese) and en (English). If you leave this parameter empty, the original language is retained. This service is applicable to scenarios such as converting apparel size charts to text and batch structuring of product weight/dimension information.
2891
- * Core capability: Provide an image URL and optional column name configurations as input, and receive structured data of size charts or package weight/dimensions from the image as output. The API uses an asynchronous task mode (background: true). After submission, a task ID is returned. Poll for the final result. This mode is suitable for processing complex images or high-volume call scenarios.
2892
- * ## Comparison
2893
- * | **Input image** | **Output result** |
4536
+ * ## Scenarios
4537
+ * Size charts: Extracts size charts for apparel categories into text.
4538
+ * Package weight and dimensions: Extracts package weight and dimension information from images.
4539
+ * ## Feature description
4540
+ * The size chart extraction service is based on multimodal foundation models. It automatically recognizes size charts or package weight and dimension information in images and converts the information into structured text. Provide an image URL, and the system processes the request as an asynchronous task and returns the extracted structured data. You can specify the column names to be recognized, such as Size, Bust, and Length, by using ColumnNameList for precise targeted extraction. You can also control the output language by using the LanguageModel parameter. Valid values: cn for Chinese and en for English. If you do not specify this parameter, the original language is retained. This service is applicable to scenarios such as text conversion of size charts for apparel categories and batch structuring of package weight and dimension information for commodities.
4541
+ * Core capabilities: Input an image URL and optional column name configurations to output the structured data of the size chart or package weight and dimensions in the image. The API operation uses the asynchronous task mode (background: true). After you submit the task, a task ID is returned. You must poll the task to obtain the final result. This mode is suitable for processing complex images or handling large-scale calls.
4542
+ * ## Example results
4543
+ * | Input image | Output result |
2894
4544
  * | --- | --- |
2895
4545
  * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4jKqm0bAebrKLnw1/img/0a914347-2acb-4b94-bf07-86aab2b31279.png) | {
2896
4546
  * "SizeChart": [
@@ -2986,25 +4636,86 @@ class Client extends openapi_core_1.default {
2986
4636
  * }
2987
4637
  * \\],
2988
4638
  * "SizeChartAttributes": [
2989
- * "尺码",
2990
- * "裙长",
2991
- * "腰围",
2992
- * "体重建议"
4639
+ * "Size",
4640
+ * "Skirt length",
4641
+ * "Waist",
4642
+ * "Weight recommendation"
2993
4643
  * \\],
2994
4644
  * "IntersectionAttributes": [
2995
- * "尺码",
2996
- * "裙长",
2997
- * "腰围(拉伸)",
2998
- * "体重建议"
4645
+ * "Size",
4646
+ * "Skirt length",
4647
+ * "Waist (stretched)",
4648
+ * "Weight recommendation"
2999
4649
  * \\]
3000
4650
  * } |
3001
4651
  *
3002
- * @param request - SizeChartExtractRequest
3003
- * @returns SizeChartExtractResponse
4652
+ * @param request - SizeChartExtractAsyncRequest
4653
+ * @returns SizeChartExtractAsyncResponse
3004
4654
  */
3005
- async sizeChartExtract(request) {
4655
+ async sizeChartExtractAsync(request) {
3006
4656
  let runtime = new $dara.RuntimeOptions({});
3007
- return await this.sizeChartExtractWithOptions(request, runtime);
4657
+ return await this.sizeChartExtractAsyncWithOptions(request, runtime);
4658
+ }
4659
+ /**
4660
+ * Reviews store photos based on storefront scene recognition and multimodal large model element localization. It outputs storefront scene classifications and confidence details, and localizes storefronts, signboards, entrances, and business signs. It is applicable to store data collection, storefront photo classification, and inspection reviews.
4661
+ *
4662
+ * @remarks
4663
+ * ## Common scenarios
4664
+ * - Storefront photo classification: Distinguishes storefront-related photos from non-storefront photos.
4665
+ * - Store data verification: Localizes signboards and entrances, and extracts clear and readable short text.
4666
+ * - Multi-store photo review: Localizes visible storefronts and signs of adjacent stores separately.
4667
+ * ## Features
4668
+ * - Scene classification and details: Returns the scenes string array and classification details. Non-storefront photos are also valid classification results.
4669
+ * - Storefront key element localization: Covers storefronts, signboards, store entrances, and business-related signs.
4670
+ * - Readable text extraction: Extracts only clear short text. It does not infer business status based on whether the door is open or closed, and does not infer addresses or store ownership.
4671
+ * - Supports single HTTPS image input. Supplementary localization returns up to 12 targets, each containing a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the localization is complete.
4672
+ *
4673
+ * @param request - StorefrontSceneRecognitionRequest
4674
+ * @param runtime - runtime options for this request RuntimeOptions
4675
+ * @returns StorefrontSceneRecognitionResponse
4676
+ */
4677
+ async storefrontSceneRecognitionWithOptions(request, runtime) {
4678
+ request.validate();
4679
+ let query = {};
4680
+ if (!$dara.isNull(request.imageUrl)) {
4681
+ query["ImageUrl"] = request.imageUrl;
4682
+ }
4683
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4684
+ query: openapi_core_2.OpenApiUtil.query(query),
4685
+ });
4686
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4687
+ action: "StorefrontSceneRecognition",
4688
+ version: "2026-04-28",
4689
+ protocol: "HTTPS",
4690
+ pathname: "/",
4691
+ method: "POST",
4692
+ authType: "AK",
4693
+ style: "RPC",
4694
+ reqBodyType: "formData",
4695
+ bodyType: "json",
4696
+ });
4697
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.StorefrontSceneRecognitionResponse({}));
4698
+ }
4699
+ /**
4700
+ * Reviews store photos based on storefront scene recognition and multimodal large model element localization. It outputs storefront scene classifications and confidence details, and localizes storefronts, signboards, entrances, and business signs. It is applicable to store data collection, storefront photo classification, and inspection reviews.
4701
+ *
4702
+ * @remarks
4703
+ * ## Common scenarios
4704
+ * - Storefront photo classification: Distinguishes storefront-related photos from non-storefront photos.
4705
+ * - Store data verification: Localizes signboards and entrances, and extracts clear and readable short text.
4706
+ * - Multi-store photo review: Localizes visible storefronts and signs of adjacent stores separately.
4707
+ * ## Features
4708
+ * - Scene classification and details: Returns the scenes string array and classification details. Non-storefront photos are also valid classification results.
4709
+ * - Storefront key element localization: Covers storefronts, signboards, store entrances, and business-related signs.
4710
+ * - Readable text extraction: Extracts only clear short text. It does not infer business status based on whether the door is open or closed, and does not infer addresses or store ownership.
4711
+ * - Supports single HTTPS image input. Supplementary localization returns up to 12 targets, each containing a category, a bounding box, and up to 24 characters of visible text. The coverage field indicates whether the localization is complete.
4712
+ *
4713
+ * @param request - StorefrontSceneRecognitionRequest
4714
+ * @returns StorefrontSceneRecognitionResponse
4715
+ */
4716
+ async storefrontSceneRecognition(request) {
4717
+ let runtime = new $dara.RuntimeOptions({});
4718
+ return await this.storefrontSceneRecognitionWithOptions(request, runtime);
3008
4719
  }
3009
4720
  /**
3010
4721
  * Generates product detail page assets automatically based on a multimodal large language model (MLLM) and structured image-text extraction, designed for product detail page asset completion scenarios on e-commerce platforms and for brand merchants. The caller pushes product information to be queried (product ID, title, brand, main image, and shop name). The service automatically locates matching products and performs consistency verification, then extracts size information and product attributes from the matching product details, and renders them into size charts and attribute charts (SVG) that can be directly used on detail pages. The service also returns structured detail copy classifications and processing notes.
@@ -3146,32 +4857,34 @@ class Client extends openapi_core_1.default {
3146
4857
  return await this.textCorrectWithOptions(request, runtime);
3147
4858
  }
3148
4859
  /**
3149
- * Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 31 languages in query phrases and 35 languages in general scenarios. If you do not specify a source language, automatic language detection is performed.
4860
+ * Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for query phrases in 31 languages and general scenarios in 35 languages. If you do not specify a source language, automatic detection is performed.
3150
4861
  *
3151
4862
  * @remarks
3152
4863
  * ## Product Introduction
3153
- * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 100 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 languages. If you do not specify a source language, automatic language detection is performed.
4864
+ * Maas-MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for query phrases in 31 languages and general scenarios in 35 languages. If you do not specify a source language, automatic detection is performed.
3154
4865
  * ## Common scenarios
3155
- * - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
3156
- * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco MT large model translation supports long text translation and HTML formatting, delivering excellent translation quality and format preservation.
3157
- * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
3158
- * - Customer service conversations: In customer service scenarios, Marco MT optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
3159
- * Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
4866
+ * - Product titles: Maas-MT large model translation accurately translates phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
4867
+ * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Maas-MT large model translation supports long text translation and HTML formatting, delivering excellent translation quality and format preservation.
4868
+ * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and specifications.
4869
+ * - Customer service conversations: In customer service scenarios, Maas-MT optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
4870
+ * Maas-MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
3160
4871
  * ## Functions and features
3161
4872
  * - **Supported language directions**
3162
- * Marco MT large model translation supports mutual translation among more than 100 languages and language detection for 24 languages. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
4873
+ * Maas-MT large model translation supports mutual translation among more than 400 languages and language detection for query phrases in 31 languages and general scenarios in 35 languages.
4874
+ * <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html)
4875
+ * <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping)
3163
4876
  * - **Ultra-low hallucination rate and high-speed inference**
3164
- * Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
3165
- * - **Supported text format types**
4877
+ * Maas-MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it delivers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
4878
+ * - **Supported text format types for translation**
3166
4879
  * Currently, text and html text types are supported.
3167
4880
  * - **Translation intervention support**
3168
- * Custom translation results are supported, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and skip translation (ABC→empty value). This is commonly used for scenarios such as brand name protection. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
4881
+ * Custom translation results are supported, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for scenarios such as brand name protection. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
3169
4882
  * ## Translation quality comparison
3170
- * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
4883
+ * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
3171
4884
  * |----------|---------------|-----------------------|-----------------------|---------------------|
3172
4885
  * | 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 |
3173
4886
  * | 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 |
3174
- * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject expression as "key bag" rather than "keychain", avoiding ambiguity about the product subject in other translations |
4887
+ * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject description. The translation correctly identifies the product as a "key bag" rather than a "keychain", avoiding ambiguity present in other translations.
3175
4888
  *
3176
4889
  * @param tmpReq - TextTranslateRequest
3177
4890
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3223,32 +4936,34 @@ class Client extends openapi_core_1.default {
3223
4936
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateResponse({}));
3224
4937
  }
3225
4938
  /**
3226
- * Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 31 languages in query phrases and 35 languages in general scenarios. If you do not specify a source language, automatic language detection is performed.
4939
+ * Maas-MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for query phrases in 31 languages and general scenarios in 35 languages. If you do not specify a source language, automatic detection is performed.
3227
4940
  *
3228
4941
  * @remarks
3229
4942
  * ## Product Introduction
3230
- * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 100 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for 24 languages. If you do not specify a source language, automatic language detection is performed.
4943
+ * Maas-MT is an e-commerce translation model trained on over 1 billion\\+ high-quality bilingual sentence pairs, with continuous optimization for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports mutual translation among more than 400 language directions (including bridged directions), especially Chinese-English, Chinese-multilingual, and English-multilingual translation. It supports language detection for query phrases in 31 languages and general scenarios in 35 languages. If you do not specify a source language, automatic detection is performed.
3231
4944
  * ## Common scenarios
3232
- * - Product titles: Marco MT large model translation accurately translates phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
3233
- * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco MT large model translation supports long text translation and HTML formatting, delivering excellent translation quality and format preservation.
3234
- * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
3235
- * - Customer service conversations: In customer service scenarios, Marco MT optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
3236
- * Marco MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
4945
+ * - Product titles: Maas-MT large model translation accurately translates phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
4946
+ * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Maas-MT large model translation supports long text translation and HTML formatting, delivering excellent translation quality and format preservation.
4947
+ * - Product attributes: Product attribute terms are short and may contain e-commerce-specific terms such as model numbers and specifications.
4948
+ * - Customer service conversations: In customer service scenarios, Maas-MT optimizes issues such as missing context and typos, and supports polite expressions for certain language directions.
4949
+ * Maas-MT large model translation can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
3237
4950
  * ## Functions and features
3238
4951
  * - **Supported language directions**
3239
- * Marco MT large model translation supports mutual translation among more than 100 languages and language detection for 24 languages. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
4952
+ * Maas-MT large model translation supports mutual translation among more than 400 languages and language detection for query phrases in 31 languages and general scenarios in 35 languages.
4953
+ * <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html)
4954
+ * <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping)
3240
4955
  * - **Ultra-low hallucination rate and high-speed inference**
3241
- * Marco MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
3242
- * - **Supported text format types**
4956
+ * Maas-MT large model translation is a large language model with preference alignment for translation scenarios. Compared with general-purpose large language models, it delivers faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
4957
+ * - **Supported text format types for translation**
3243
4958
  * Currently, text and html text types are supported.
3244
4959
  * - **Translation intervention support**
3245
- * Custom translation results are supported, including do-not-translate (ABC→ABC), specified translation (ABC→DEF), and skip translation (ABC→empty value). This is commonly used for scenarios such as brand name protection. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
4960
+ * Custom translation results are supported, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for scenarios such as brand name protection. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs across different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
3246
4961
  * ## Translation quality comparison
3247
- * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
4962
+ * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
3248
4963
  * |----------|---------------|-----------------------|-----------------------|---------------------|
3249
4964
  * | 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 |
3250
4965
  * | 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 |
3251
- * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject expression as "key bag" rather than "keychain", avoiding ambiguity about the product subject in other translations |
4966
+ * | Men Key Bag Genuine Cow Leather Buckets Key Cases Pouch Zipper Keychain Auto Car Key Case Women Home Key Holder Wallet | Sac à clés pour hommes en cuir de vache véritable, étuis à clés, pochette à fermeture éclair, porte-clés, étui à clé de voiture, porte-clés pour femmes, organisateur de portefeuille | Porte-clés sac en cuir de vache véritable, étuis à clés en forme de seau, pochette à fermeture éclair, porte-clés auto pour voiture, étui à clés pour femmes, organisateur de clés de maison, portefeuille. | Hommes porte-clés en cuir de vache véritable sac/pochette fermature éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more accurate product subject description. The translation correctly identifies the product as a "key bag" rather than a "keychain", avoiding ambiguity present in other translations.
3252
4967
  *
3253
4968
  * @param request - TextTranslateRequest
3254
4969
  * @returns TextTranslateResponse
@@ -3258,25 +4973,195 @@ class Client extends openapi_core_1.default {
3258
4973
  return await this.textTranslateWithOptions(request, runtime);
3259
4974
  }
3260
4975
  /**
3261
- * 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 quick single-product calls and multi-product batch generation, and accommodates 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.
4976
+ * Translates text by using the Maas MT model, an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs and optimized for e-commerce terms such as brands, models, materials, and attributes. It supports 156 languages, more than 400 language pairs, and automatic language detection for source texts.
4977
+ *
4978
+ * @remarks
4979
+ * ## Scenarios
4980
+ * * Product titles: The Maas MT large language model accurately translates phrases, keywords, and trending words in product titles into the target language to increase product exposure on e-commerce platforms.
4981
+ *
4982
+ * * Product descriptions: Product descriptions are typically long and have diverse and complex formats. The Maas large language model supports long-text translation and HTML formatting, delivering excellent translation quality and format restoration.
4983
+ *
4984
+ * * Product attributes: Product attribute terms are short and contain e-commerce-specific words such as models and parameters.
4985
+ *
4986
+ * * Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions in specific language pairs.
4987
+ *
4988
+ * The Maas MT large language model can also be used for translation in general scenarios, such as office work, meetings, and daily conversations.
4989
+ * ## Features
4990
+ * * **Ultra-low hallucination rate and high-speed inference** The Maas MT large language model is aligned with preferences for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
4991
+ *
4992
+ * * **Supported text formats** The model supports text and HTML formats.
4993
+ *
4994
+ * * **Translation intervention** You can customize translation results, including keeping terms untranslated (ABC-ABC), specifying translations (ABC-DEF), and omitting translations (ABC-null value). This feature is commonly used for brand word protection. You only need to pass the corresponding intervention glossary ID when calling the API. This meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
4995
+ *
4996
+ * * **Translation quality comparison**
4997
+ * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
4998
+ * | --- | --- | --- | --- | --- |
4999
+ * | 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 |
5000
+ * | 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 punctuation |
5001
+ * | 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 fermeture éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more explicit product subject expression, identifying it as a "key bag" rather than a "keychain", avoiding ambiguity in other translations |
5002
+ * ## Preparations and invocation flow
5003
+ * Text translation supports both synchronous and asynchronous invocation methods. This topic describes the asynchronous invocation API. To use synchronous calls, see [Text Translation - Synchronous API](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate).
5004
+ * The asynchronous APIs for text translation and other features share the same result retrieval flow, RocketMQ subscribe rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
5005
+ * For the asynchronous invocation onboarding flow, subscribe rules, message formats and encryption protocols, and detailed integration solutions, see [Asynchronous API invocation instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
5006
+ *
5007
+ * @param tmpReq - TextTranslateAsyncRequest
5008
+ * @param runtime - runtime options for this request RuntimeOptions
5009
+ * @returns TextTranslateAsyncResponse
5010
+ */
5011
+ async textTranslateAsyncWithOptions(tmpReq, runtime) {
5012
+ tmpReq.validate();
5013
+ let request = new $_model.TextTranslateAsyncShrinkRequest({});
5014
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
5015
+ if (!$dara.isNull(tmpReq.sourceTextList)) {
5016
+ request.sourceTextListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sourceTextList, "SourceTextList", "json");
5017
+ }
5018
+ let query = {};
5019
+ if (!$dara.isNull(request.bizId)) {
5020
+ query["BizId"] = request.bizId;
5021
+ }
5022
+ if (!$dara.isNull(request.bizName)) {
5023
+ query["BizName"] = request.bizName;
5024
+ }
5025
+ if (!$dara.isNull(request.formatType)) {
5026
+ query["FormatType"] = request.formatType;
5027
+ }
5028
+ if (!$dara.isNull(request.glossary)) {
5029
+ query["Glossary"] = request.glossary;
5030
+ }
5031
+ if (!$dara.isNull(request.sourceLanguage)) {
5032
+ query["SourceLanguage"] = request.sourceLanguage;
5033
+ }
5034
+ if (!$dara.isNull(request.sourceTextListShrink)) {
5035
+ query["SourceTextList"] = request.sourceTextListShrink;
5036
+ }
5037
+ if (!$dara.isNull(request.targetLanguage)) {
5038
+ query["TargetLanguage"] = request.targetLanguage;
5039
+ }
5040
+ if (!$dara.isNull(request.translateScene)) {
5041
+ query["TranslateScene"] = request.translateScene;
5042
+ }
5043
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5044
+ query: openapi_core_2.OpenApiUtil.query(query),
5045
+ });
5046
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5047
+ action: "TextTranslateAsync",
5048
+ version: "2026-04-28",
5049
+ protocol: "HTTPS",
5050
+ pathname: "/",
5051
+ method: "POST",
5052
+ authType: "AK",
5053
+ style: "RPC",
5054
+ reqBodyType: "formData",
5055
+ bodyType: "json",
5056
+ });
5057
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.TextTranslateAsyncResponse({}));
5058
+ }
5059
+ /**
5060
+ * Translates text by using the Maas MT model, an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs and optimized for e-commerce terms such as brands, models, materials, and attributes. It supports 156 languages, more than 400 language pairs, and automatic language detection for source texts.
5061
+ *
5062
+ * @remarks
5063
+ * ## Scenarios
5064
+ * * Product titles: The Maas MT large language model accurately translates phrases, keywords, and trending words in product titles into the target language to increase product exposure on e-commerce platforms.
5065
+ *
5066
+ * * Product descriptions: Product descriptions are typically long and have diverse and complex formats. The Maas large language model supports long-text translation and HTML formatting, delivering excellent translation quality and format restoration.
5067
+ *
5068
+ * * Product attributes: Product attribute terms are short and contain e-commerce-specific words such as models and parameters.
5069
+ *
5070
+ * * Customer service conversations: In customer service scenarios, the model optimizes issues such as missing context and typos, and supports polite expressions in specific language pairs.
5071
+ *
5072
+ * The Maas MT large language model can also be used for translation in general scenarios, such as office work, meetings, and daily conversations.
5073
+ * ## Features
5074
+ * * **Ultra-low hallucination rate and high-speed inference** The Maas MT large language model is aligned with preferences for translation scenarios. Compared with general-purpose large language models, it provides faster translation inference and an extremely low hallucination rate, making it especially suitable for large-scale invocation scenarios.
5075
+ *
5076
+ * * **Supported text formats** The model supports text and HTML formats.
5077
+ *
5078
+ * * **Translation intervention** You can customize translation results, including keeping terms untranslated (ABC-ABC), specifying translations (ABC-DEF), and omitting translations (ABC-null value). This feature is commonly used for brand word protection. You only need to pass the corresponding intervention glossary ID when calling the API. This meets your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
5079
+ *
5080
+ * * **Translation quality comparison**
5081
+ * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantages** |
5082
+ * | --- | --- | --- | --- | --- |
5083
+ * | 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 |
5084
+ * | 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 punctuation |
5085
+ * | 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 fermeture éclair porte-clés Auto voiture porte-clés femmes maison porte-clés organisateur portefeuille | Clearer and more explicit product subject expression, identifying it as a "key bag" rather than a "keychain", avoiding ambiguity in other translations |
5086
+ * ## Preparations and invocation flow
5087
+ * Text translation supports both synchronous and asynchronous invocation methods. This topic describes the asynchronous invocation API. To use synchronous calls, see [Text Translation - Synchronous API](https://api.aliyun.com/document/Aidge/2026-04-28/TextTranslate).
5088
+ * The asynchronous APIs for text translation and other features share the same result retrieval flow, RocketMQ subscribe rules, message encryption protocols, dependency configurations, and Java consumption and decryption code.
5089
+ * For the asynchronous invocation onboarding flow, subscribe rules, message formats and encryption protocols, and detailed integration solutions, see [Asynchronous API invocation instructions](https://www.alibabacloud.com/help/en/aidge/asynchronous-interface-call-instructions).
5090
+ *
5091
+ * @param request - TextTranslateAsyncRequest
5092
+ * @returns TextTranslateAsyncResponse
5093
+ */
5094
+ async textTranslateAsync(request) {
5095
+ let runtime = new $dara.RuntimeOptions({});
5096
+ return await this.textTranslateAsyncWithOptions(request, runtime);
5097
+ }
5098
+ /**
5099
+ * Synchronously updates the content of a display knowledge base in batches.
5100
+ *
5101
+ * @param tmpReq - UpdateDisplayKnowledgeRequest
5102
+ * @param runtime - runtime options for this request RuntimeOptions
5103
+ * @returns UpdateDisplayKnowledgeResponse
5104
+ */
5105
+ async updateDisplayKnowledgeWithOptions(tmpReq, runtime) {
5106
+ tmpReq.validate();
5107
+ let request = new $_model.UpdateDisplayKnowledgeShrinkRequest({});
5108
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
5109
+ if (!$dara.isNull(tmpReq.records)) {
5110
+ request.recordsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.records, "Records", "json");
5111
+ }
5112
+ let query = {};
5113
+ if (!$dara.isNull(request.ragId)) {
5114
+ query["RagId"] = request.ragId;
5115
+ }
5116
+ if (!$dara.isNull(request.recordsShrink)) {
5117
+ query["Records"] = request.recordsShrink;
5118
+ }
5119
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5120
+ query: openapi_core_2.OpenApiUtil.query(query),
5121
+ });
5122
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5123
+ action: "UpdateDisplayKnowledge",
5124
+ version: "2026-04-28",
5125
+ protocol: "HTTPS",
5126
+ pathname: "/",
5127
+ method: "POST",
5128
+ authType: "AK",
5129
+ style: "RPC",
5130
+ reqBodyType: "formData",
5131
+ bodyType: "json",
5132
+ });
5133
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateDisplayKnowledgeResponse({}));
5134
+ }
5135
+ /**
5136
+ * Synchronously updates the content of a display knowledge base in batches.
5137
+ *
5138
+ * @param request - UpdateDisplayKnowledgeRequest
5139
+ * @returns UpdateDisplayKnowledgeResponse
5140
+ */
5141
+ async updateDisplayKnowledge(request) {
5142
+ let runtime = new $dara.RuntimeOptions({});
5143
+ return await this.updateDisplayKnowledgeWithOptions(request, runtime);
5144
+ }
5145
+ /**
5146
+ * The e-commerce AI video generation agent is designed for e-commerce merchants and platforms. Based on product main images, titles, and selling points, it automatically generates 5- to 30-second product showcase short videos to help customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P. You can invoke single products quickly and generate multiple products in batches, meeting the needs of daily operations and large-scale product content production. It currently overwrites all clothing categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to core e-commerce categories such as skincare, cosmetics, food and beverages, and home appliances.
3262
5147
  *
3263
5148
  * @remarks
3264
5149
  * # Scenarios
3265
- * - 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.
3266
- * - 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, product titles, and other basic information to quickly generate product showcase videos, model try-on videos, voiceover explanation videos, and other content, helping merchants rapidly complete material preparation during the launch phase.
3267
- * - High-fidelity apparel display: Generates model showcase videos based on product main images that closely resemble real commercial photography, with key optimizations for silhouette accuracy, fabric texture preservation, color fidelity, and consistent detail stability. Supports common e-commerce display methods such as garment try-on, turning, walking, close-up shots, and multi-angle switching.
3268
- * - 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 multiple commercial photography presentation methods such as standing poses, side views, walking displays, and detail close-ups.
3269
- * - Standard product explanation 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. Quickly generates product explanation videos based on product main images, titles, selling point information, and explanation scripts.
3270
- * - Multi-product and 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 businesses to cost-effectively validate the conversion performance of different selling points and presentation formats, improving placement ROI.
5150
+ * - Batch generation of product short videos for sellers and platforms: Supports multiple video aspect ratios and sizes (3:4, 9:16), adapting to product detail page video slots, product homepage displays, information feed placements, short video promotions, and event venue materials.
5151
+ * - Quick generation of the first batch of video materials for new product launches: When merchants have a large number of new products to launch, they only need to upload basic information such as product images and titles to quickly generate product showcase videos, model wearing videos, and spoken explanation videos, helping merchants quickly complete material deployment during the launch phase.
5152
+ * - High-fidelity clothing display: Generates model display videos that are closer to real commercial shooting effects based on product main images, focusing on optimizing capabilities such as pattern restoration, fabric texture retention, accurate color presentation, and stable and consistent details. It supports common e-commerce display methods such as wearing, turning, walking, close-up shots, and multi-angle switching.
5153
+ * - Generation of high-quality commercial shooting models: Built-in target audience model library, covering plus-size women, plus-size men, swimwear, girl style, light mature commuting, youth casual, business menswear, sports and fitness, and other body types, skin colors, and races. It supports various commercial shooting expressions such as standing display, side display, walking display, and partial close-ups.
5154
+ * - High-frequency e-commerce scenarios such as standard product explanations: Applicable to standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, home cleaning daily necessities, and 3C digital products. It can quickly generate product explanation videos based on product main images, titles, selling point information, and explanation scripts.
5155
+ * - Multi-product and multi-selling point testing to improve delivery efficiency: For information feed advertising, short video delivery, and content promotion scenarios, it can quickly generate multiple versions of video materials, making it easy for enterprises to verify the conversion effects of different selling points and presentation forms at a low cost, and improve delivery ROI.
3271
5156
  * # Features
3272
- * - 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 for product understanding, visual quality inspection, script planning, and directing/camera movement significantly lower the barrier to use.
3273
- * - Highly stable generation with low waste rate: Uses a deterministic generation process and multi-layer quality control mechanism to output usable materials with fewer retries, reducing invalid generation and resource waste, making overall production costs more controllable.
3274
- * - E-commerce-specific product fidelity: Built-in multi-round quality inspection agents lock product state throughout video generation (for example, zippers will not be unzipped, sleeves will not be lowered, prints will not disappear). Multi-layer defense through "script rewriting + explicit constraint injection + failure-aware retry" ensures product consistency.
3275
- * - Reference image priority + 6-axis consistency verification: Uses a Reference-Image-First generation paradigm with the original product image as the sole visual source of truth. 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.
3276
- * - Flexible storyboard arrangement and duration control: Supports adjustable video duration from 5–30 seconds. The agent autonomously plans independent storyboards to showcase the product in different scenarios. Also supports fixed-scene mode for in-depth product presentation under a unified visual style.
3277
- * - Cinematic camera movement capabilities: Built-in advanced camera movement modes including bullet time, Grammy-style slow motion, 360° orbital rotation, and full-body model rotation display, achieving deterministic output through segment-level precise control.
3278
- * - Model library and customization services: Built-in multi-type model resource library. Supports merchants in specifying fixed models, customizing exclusive model personas, and long-term brand visual identity binding to ensure brand visual consistency.
3279
- * - 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 launch and promotional video generation.
5157
+ * - Fully automatic end-to-end batch generation with zero prompt threshold: Callers only need to pass in the product image URL and title, and the system automatically completes the entire process from product understanding, storyboard planning to video generation, without the need to manually write prompts, select templates, or repeatedly adjust parameters. Built-in multiple agents such as product understanding, image quality inspection, script planning, and director camera movement greatly lower the threshold for use.
5158
+ * - Highly stable generation with a low waste rate: Adopts a deterministic generation process and multi-layer quality control mechanism to output usable materials with fewer retries, reducing invalid generation and resource waste, and making the overall production cost more controllable.
5159
+ * - E-commerce exclusive product fidelity capability: Built-in multi-round quality inspection agent locks the product state throughout the video generation process (such as zippers will not be pulled open, sleeves will not be put down, and prints will not disappear), ensuring product consistency through multi-layer defense of script rewriting, explicit constraint injection, and failure-aware retry.
5160
+ * - Reference image first + 6-axis consistency check: Adopts the Reference-Image-First generation paradigm, using the original product image as the only visual source of truth, and automatically performs 6-dimensional VL diagnosis (color drift, pattern missing, contour deviation, structure addition/reduction, model matching, dirt detection) to fundamentally eliminate the problem of generated images not looking like the product.
5161
+ * - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5 to 30 seconds; the agent independently plans independent storyboards to display the product effects in different scenarios; it also supports a fixed scene mode to deeply display the product tonality under a unified visual style.
5162
+ * - Cinematic camera movement capabilities: Built-in advanced camera movement modes such as bullet time, Grammy slow motion, 360° surround rotation, and model full-body rotation display, achieving deterministic output through segmented precise control.
5163
+ * - Model library and customization services: Built-in multi-type model resource library, supporting merchants to specify fixed models, customize exclusive model images, and bind brand visual personas for a long time to ensure brand visual consistency.
5164
+ * - Adapting to 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, adapting to product detail page video slots, product homepage video displays, waterfall/information feed placements, event venue materials, and new product and promotional video generation.
3280
5165
  *
3281
5166
  * @param tmpReq - VideoGenerationRequest
3282
5167
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3322,25 +5207,25 @@ class Client extends openapi_core_1.default {
3322
5207
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoGenerationResponse({}));
3323
5208
  }
3324
5209
  /**
3325
- * 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 quick single-product calls and multi-product batch generation, and accommodates 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.
5210
+ * The e-commerce AI video generation agent is designed for e-commerce merchants and platforms. Based on product main images, titles, and selling points, it automatically generates 5- to 30-second product showcase short videos to help customers efficiently produce and distribute e-commerce content. The product supports multiple resolution outputs such as 720P and 1080P. You can invoke single products quickly and generate multiple products in batches, meeting the needs of daily operations and large-scale product content production. It currently overwrites all clothing categories (tops, pants, skirts, suits, underwear, swimwear, etc.) and is gradually expanding to core e-commerce categories such as skincare, cosmetics, food and beverages, and home appliances.
3326
5211
  *
3327
5212
  * @remarks
3328
5213
  * # Scenarios
3329
- * - 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.
3330
- * - 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, product titles, and other basic information to quickly generate product showcase videos, model try-on videos, voiceover explanation videos, and other content, helping merchants rapidly complete material preparation during the launch phase.
3331
- * - High-fidelity apparel display: Generates model showcase videos based on product main images that closely resemble real commercial photography, with key optimizations for silhouette accuracy, fabric texture preservation, color fidelity, and consistent detail stability. Supports common e-commerce display methods such as garment try-on, turning, walking, close-up shots, and multi-angle switching.
3332
- * - 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 multiple commercial photography presentation methods such as standing poses, side views, walking displays, and detail close-ups.
3333
- * - Standard product explanation 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. Quickly generates product explanation videos based on product main images, titles, selling point information, and explanation scripts.
3334
- * - Multi-product and 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 businesses to cost-effectively validate the conversion performance of different selling points and presentation formats, improving placement ROI.
5214
+ * - Batch generation of product short videos for sellers and platforms: Supports multiple video aspect ratios and sizes (3:4, 9:16), adapting to product detail page video slots, product homepage displays, information feed placements, short video promotions, and event venue materials.
5215
+ * - Quick generation of the first batch of video materials for new product launches: When merchants have a large number of new products to launch, they only need to upload basic information such as product images and titles to quickly generate product showcase videos, model wearing videos, and spoken explanation videos, helping merchants quickly complete material deployment during the launch phase.
5216
+ * - High-fidelity clothing display: Generates model display videos that are closer to real commercial shooting effects based on product main images, focusing on optimizing capabilities such as pattern restoration, fabric texture retention, accurate color presentation, and stable and consistent details. It supports common e-commerce display methods such as wearing, turning, walking, close-up shots, and multi-angle switching.
5217
+ * - Generation of high-quality commercial shooting models: Built-in target audience model library, covering plus-size women, plus-size men, swimwear, girl style, light mature commuting, youth casual, business menswear, sports and fitness, and other body types, skin colors, and races. It supports various commercial shooting expressions such as standing display, side display, walking display, and partial close-ups.
5218
+ * - High-frequency e-commerce scenarios such as standard product explanations: Applicable to standardized product categories such as skincare, cosmetics, personal care small appliances, food and beverages, home cleaning daily necessities, and 3C digital products. It can quickly generate product explanation videos based on product main images, titles, selling point information, and explanation scripts.
5219
+ * - Multi-product and multi-selling point testing to improve delivery efficiency: For information feed advertising, short video delivery, and content promotion scenarios, it can quickly generate multiple versions of video materials, making it easy for enterprises to verify the conversion effects of different selling points and presentation forms at a low cost, and improve delivery ROI.
3335
5220
  * # Features
3336
- * - 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 for product understanding, visual quality inspection, script planning, and directing/camera movement significantly lower the barrier to use.
3337
- * - Highly stable generation with low waste rate: Uses a deterministic generation process and multi-layer quality control mechanism to output usable materials with fewer retries, reducing invalid generation and resource waste, making overall production costs more controllable.
3338
- * - E-commerce-specific product fidelity: Built-in multi-round quality inspection agents lock product state throughout video generation (for example, zippers will not be unzipped, sleeves will not be lowered, prints will not disappear). Multi-layer defense through "script rewriting + explicit constraint injection + failure-aware retry" ensures product consistency.
3339
- * - Reference image priority + 6-axis consistency verification: Uses a Reference-Image-First generation paradigm with the original product image as the sole visual source of truth. 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.
3340
- * - Flexible storyboard arrangement and duration control: Supports adjustable video duration from 5–30 seconds. The agent autonomously plans independent storyboards to showcase the product in different scenarios. Also supports fixed-scene mode for in-depth product presentation under a unified visual style.
3341
- * - Cinematic camera movement capabilities: Built-in advanced camera movement modes including bullet time, Grammy-style slow motion, 360° orbital rotation, and full-body model rotation display, achieving deterministic output through segment-level precise control.
3342
- * - Model library and customization services: Built-in multi-type model resource library. Supports merchants in specifying fixed models, customizing exclusive model personas, and long-term brand visual identity binding to ensure brand visual consistency.
3343
- * - 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 launch and promotional video generation.
5221
+ * - Fully automatic end-to-end batch generation with zero prompt threshold: Callers only need to pass in the product image URL and title, and the system automatically completes the entire process from product understanding, storyboard planning to video generation, without the need to manually write prompts, select templates, or repeatedly adjust parameters. Built-in multiple agents such as product understanding, image quality inspection, script planning, and director camera movement greatly lower the threshold for use.
5222
+ * - Highly stable generation with a low waste rate: Adopts a deterministic generation process and multi-layer quality control mechanism to output usable materials with fewer retries, reducing invalid generation and resource waste, and making the overall production cost more controllable.
5223
+ * - E-commerce exclusive product fidelity capability: Built-in multi-round quality inspection agent locks the product state throughout the video generation process (such as zippers will not be pulled open, sleeves will not be put down, and prints will not disappear), ensuring product consistency through multi-layer defense of script rewriting, explicit constraint injection, and failure-aware retry.
5224
+ * - Reference image first + 6-axis consistency check: Adopts the Reference-Image-First generation paradigm, using the original product image as the only visual source of truth, and automatically performs 6-dimensional VL diagnosis (color drift, pattern missing, contour deviation, structure addition/reduction, model matching, dirt detection) to fundamentally eliminate the problem of generated images not looking like the product.
5225
+ * - Flexible storyboard arrangement and duration control: Supports adjustable video duration of 5 to 30 seconds; the agent independently plans independent storyboards to display the product effects in different scenarios; it also supports a fixed scene mode to deeply display the product tonality under a unified visual style.
5226
+ * - Cinematic camera movement capabilities: Built-in advanced camera movement modes such as bullet time, Grammy slow motion, 360° surround rotation, and model full-body rotation display, achieving deterministic output through segmented precise control.
5227
+ * - Model library and customization services: Built-in multi-type model resource library, supporting merchants to specify fixed models, customize exclusive model images, and bind brand visual personas for a long time to ensure brand visual consistency.
5228
+ * - Adapting to 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, adapting to product detail page video slots, product homepage video displays, waterfall/information feed placements, event venue materials, and new product and promotional video generation.
3344
5229
  *
3345
5230
  * @param request - VideoGenerationRequest
3346
5231
  * @returns VideoGenerationResponse
@@ -3350,28 +5235,28 @@ class Client extends openapi_core_1.default {
3350
5235
  return await this.videoGenerationWithOptions(request, runtime);
3351
5236
  }
3352
5237
  /**
3353
- * The video translation API translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text.
5238
+ * Translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising. The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the task ID and poll the task status by calling the query API until the task is completed and the result is returned.
3354
5239
  *
3355
5240
  * @remarks
3356
- * ## 1. Product Introduction
3357
- * The video translation API translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text. This API is applicable to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
3358
- * The API uses an asynchronous call mode: after you submit a translation task, you receive a `task_id`. Poll the query endpoint for the task status until the task is complete, and then retrieve the result.
3359
- * ## 2. Scenarios
3360
- * * **Cross-border e-commerce video localization**: Translates promotional text in product introduction videos into the language of the target market to facilitate overseas platform promotion.
5241
+ * ## Product introduction
5242
+ * The video translation API translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
5243
+ * The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the `TaskId` and poll the task status by calling the query API until the task is completed and the result is returned.
5244
+ * ## Scenarios
5245
+ * * **Cross-border e-commerce video localization**: Translates the selling point text in product introduction videos into the language of the target market to facilitate promotion on overseas platforms.
3361
5246
  *
3362
- * * **International social media marketing**: Localizes text content in video frames with one click for platforms such as TikTok, Instagram, and YouTube to improve comprehension and conversion rates among overseas users.
5247
+ * * **International social media marketing**: Localizes the on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
3363
5248
  *
3364
- * * **Global brand advertising**: Automatically generates video versions in the language of the target region to reduce manual production costs.
5249
+ * * **Global brand advertising**: Automatically generates video versions in the languages of the target regions to reduce manual production costs.
3365
5250
  *
3366
- * * **Training and product instructions**: Translates on-screen text in training courses or product demonstration videos into multiple languages for use by global teams.
3367
- * ## 3. Features
5251
+ * * **Training and product instructions**: Translates the on-screen text in training courses or product demo videos into multiple languages for global teams.
5252
+ * ## Features
3368
5253
  * | Feature | Identifier | Description |
3369
5254
  * | --- | --- | --- |
3370
- * | Visual translation | `visual` | Translates embedded text (subtitles, promotional text, etc.) in video frames into the target language and erases the original text. |
3371
- * ## 4. Developer guide.
3372
- * ### 4.1 Submit a translation task.
3373
- * #### Request
3374
- * `POST /api/v1/video/translation`
5255
+ * | Speech subtitle translation | `speech` | Translates the video speech into target language dubbing. Original subtitles are not removed, and no new subtitles are added. |
5256
+ * | On-screen text translation | `visual` | Translates the embedded text (subtitles, selling point text, etc.) in the video frames and erases the original text. You can enable quality check for on-screen text processing by using the API. |
5257
+ * Speech subtitle translation (`speech`) generates target language dubbing based on the spoken content in the video and synthesizes it into the video. It does not remove original subtitles or add new subtitles. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content.
5258
+ * On-screen text translation (`visual`) targets the recognizable original language text in the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech subtitle translation first, and the text does not need to appear in the speech. Original subtitles within the processing scope may also be processed.
5259
+ * When both `speech` and `visual` are selected, the speech subtitle translation is completed and the video is synthesized first. Then, on-screen text processing is performed on this video, retaining the translated dubbing and outputting a final video. The order of features in the array does not affect the execution order. Therefore, not processing original subtitles only means that no subtitles are removed or added during the speech subtitle phase. Subsequent on-screen text processing may still alter the original subtitles.
3375
5260
  *
3376
5261
  * @param tmpReq - VideoTranslationRequest
3377
5262
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3384,10 +5269,23 @@ class Client extends openapi_core_1.default {
3384
5269
  if (!$dara.isNull(tmpReq.capabilities)) {
3385
5270
  request.capabilitiesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.capabilities, "Capabilities", "json");
3386
5271
  }
5272
+ let query = {};
5273
+ if (!$dara.isNull(request.eraseOnly)) {
5274
+ query["EraseOnly"] = request.eraseOnly;
5275
+ }
5276
+ if (!$dara.isNull(request.removeLogo)) {
5277
+ query["RemoveLogo"] = request.removeLogo;
5278
+ }
5279
+ if (!$dara.isNull(request.subtitleMode)) {
5280
+ query["SubtitleMode"] = request.subtitleMode;
5281
+ }
3387
5282
  let body = {};
3388
5283
  if (!$dara.isNull(request.capabilitiesShrink)) {
3389
5284
  body["Capabilities"] = request.capabilitiesShrink;
3390
5285
  }
5286
+ if (!$dara.isNull(request.enableQualityCheck)) {
5287
+ body["EnableQualityCheck"] = request.enableQualityCheck;
5288
+ }
3391
5289
  if (!$dara.isNull(request.sourceLanguage)) {
3392
5290
  body["SourceLanguage"] = request.sourceLanguage;
3393
5291
  }
@@ -3398,6 +5296,7 @@ class Client extends openapi_core_1.default {
3398
5296
  body["VideoUrl"] = request.videoUrl;
3399
5297
  }
3400
5298
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5299
+ query: openapi_core_2.OpenApiUtil.query(query),
3401
5300
  body: openapi_core_2.OpenApiUtil.parseToMap(body),
3402
5301
  });
3403
5302
  let params = new openapi_core_2.$OpenApiUtil.Params({
@@ -3414,28 +5313,28 @@ class Client extends openapi_core_1.default {
3414
5313
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.VideoTranslationResponse({}));
3415
5314
  }
3416
5315
  /**
3417
- * The video translation API translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text.
5316
+ * Translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising. The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the task ID and poll the task status by calling the query API until the task is completed and the result is returned.
3418
5317
  *
3419
5318
  * @remarks
3420
- * ## 1. Product Introduction
3421
- * The video translation API translates embedded text (subtitles, promotional text, etc.) in video frames into a target language and erases the original text. This API is applicable to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
3422
- * The API uses an asynchronous call mode: after you submit a translation task, you receive a `task_id`. Poll the query endpoint for the task status until the task is complete, and then retrieve the result.
3423
- * ## 2. Scenarios
3424
- * * **Cross-border e-commerce video localization**: Translates promotional text in product introduction videos into the language of the target market to facilitate overseas platform promotion.
5319
+ * ## Product introduction
5320
+ * The video translation API translates the speech and on-screen text in a video into a target language. You can select speech subtitle translation, on-screen text translation, or both. This API applies to scenarios such as multilingual distribution of e-commerce videos, international social media marketing, and global brand advertising.
5321
+ * The API uses an asynchronous invocation mode. After you submit a translation task, you can obtain the `TaskId` and poll the task status by calling the query API until the task is completed and the result is returned.
5322
+ * ## Scenarios
5323
+ * * **Cross-border e-commerce video localization**: Translates the selling point text in product introduction videos into the language of the target market to facilitate promotion on overseas platforms.
3425
5324
  *
3426
- * * **International social media marketing**: Localizes text content in video frames with one click for platforms such as TikTok, Instagram, and YouTube to improve comprehension and conversion rates among overseas users.
5325
+ * * **International social media marketing**: Localizes the on-screen text in videos for platforms such as TikTok, Instagram, and YouTube with one click to improve comprehension and conversion rates among overseas users.
3427
5326
  *
3428
- * * **Global brand advertising**: Automatically generates video versions in the language of the target region to reduce manual production costs.
5327
+ * * **Global brand advertising**: Automatically generates video versions in the languages of the target regions to reduce manual production costs.
3429
5328
  *
3430
- * * **Training and product instructions**: Translates on-screen text in training courses or product demonstration videos into multiple languages for use by global teams.
3431
- * ## 3. Features
5329
+ * * **Training and product instructions**: Translates the on-screen text in training courses or product demo videos into multiple languages for global teams.
5330
+ * ## Features
3432
5331
  * | Feature | Identifier | Description |
3433
5332
  * | --- | --- | --- |
3434
- * | Visual translation | `visual` | Translates embedded text (subtitles, promotional text, etc.) in video frames into the target language and erases the original text. |
3435
- * ## 4. Developer guide.
3436
- * ### 4.1 Submit a translation task.
3437
- * #### Request
3438
- * `POST /api/v1/video/translation`
5333
+ * | Speech subtitle translation | `speech` | Translates the video speech into target language dubbing. Original subtitles are not removed, and no new subtitles are added. |
5334
+ * | On-screen text translation | `visual` | Translates the embedded text (subtitles, selling point text, etc.) in the video frames and erases the original text. You can enable quality check for on-screen text processing by using the API. |
5335
+ * Speech subtitle translation (`speech`) generates target language dubbing based on the spoken content in the video and synthesizes it into the video. It does not remove original subtitles or add new subtitles. Original subtitles refer to the existing subtitles in the video frames that correspond to the spoken content.
5336
+ * On-screen text translation (`visual`) targets the recognizable original language text in the video frames, such as titles, product selling points, and descriptive text. It can be used independently without selecting speech subtitle translation first, and the text does not need to appear in the speech. Original subtitles within the processing scope may also be processed.
5337
+ * When both `speech` and `visual` are selected, the speech subtitle translation is completed and the video is synthesized first. Then, on-screen text processing is performed on this video, retaining the translated dubbing and outputting a final video. The order of features in the array does not affect the execution order. Therefore, not processing original subtitles only means that no subtitles are removed or added during the speech subtitle phase. Subsequent on-screen text processing may still alter the original subtitles.
3439
5338
  *
3440
5339
  * @param request - VideoTranslationRequest
3441
5340
  * @returns VideoTranslationResponse