@alicloud/aidge20260428 1.0.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 (267) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +25 -0
  3. package/dist/client.d.ts +1426 -0
  4. package/dist/client.js +2254 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/models/AssetOptimizeLiteRequest.d.ts +93 -0
  7. package/dist/models/AssetOptimizeLiteRequest.js +74 -0
  8. package/dist/models/AssetOptimizeLiteRequest.js.map +1 -0
  9. package/dist/models/AssetOptimizeLiteResponse.d.ts +19 -0
  10. package/dist/models/AssetOptimizeLiteResponse.js +69 -0
  11. package/dist/models/AssetOptimizeLiteResponse.js.map +1 -0
  12. package/dist/models/AssetOptimizeLiteResponseBody.d.ts +72 -0
  13. package/dist/models/AssetOptimizeLiteResponseBody.js +90 -0
  14. package/dist/models/AssetOptimizeLiteResponseBody.js.map +1 -0
  15. package/dist/models/AssetOptimizeProRequest.d.ts +117 -0
  16. package/dist/models/AssetOptimizeProRequest.js +83 -0
  17. package/dist/models/AssetOptimizeProRequest.js.map +1 -0
  18. package/dist/models/AssetOptimizeProResponse.d.ts +19 -0
  19. package/dist/models/AssetOptimizeProResponse.js +69 -0
  20. package/dist/models/AssetOptimizeProResponse.js.map +1 -0
  21. package/dist/models/AssetOptimizeProResponseBody.d.ts +70 -0
  22. package/dist/models/AssetOptimizeProResponseBody.js +88 -0
  23. package/dist/models/AssetOptimizeProResponseBody.js.map +1 -0
  24. package/dist/models/AssetOptimizeProShrinkRequest.d.ts +117 -0
  25. package/dist/models/AssetOptimizeProShrinkRequest.js +80 -0
  26. package/dist/models/AssetOptimizeProShrinkRequest.js.map +1 -0
  27. package/dist/models/CategoryAttributeMatchRequest.d.ts +89 -0
  28. package/dist/models/CategoryAttributeMatchRequest.js +75 -0
  29. package/dist/models/CategoryAttributeMatchRequest.js.map +1 -0
  30. package/dist/models/CategoryAttributeMatchResponse.d.ts +19 -0
  31. package/dist/models/CategoryAttributeMatchResponse.js +69 -0
  32. package/dist/models/CategoryAttributeMatchResponse.js.map +1 -0
  33. package/dist/models/CategoryAttributeMatchResponseBody.d.ts +218 -0
  34. package/dist/models/CategoryAttributeMatchResponseBody.js +168 -0
  35. package/dist/models/CategoryAttributeMatchResponseBody.js.map +1 -0
  36. package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +89 -0
  37. package/dist/models/CategoryAttributeMatchShrinkRequest.js +72 -0
  38. package/dist/models/CategoryAttributeMatchShrinkRequest.js.map +1 -0
  39. package/dist/models/CategoryMatchRequest.d.ts +79 -0
  40. package/dist/models/CategoryMatchRequest.js +70 -0
  41. package/dist/models/CategoryMatchRequest.js.map +1 -0
  42. package/dist/models/CategoryMatchResponse.d.ts +19 -0
  43. package/dist/models/CategoryMatchResponse.js +69 -0
  44. package/dist/models/CategoryMatchResponse.js.map +1 -0
  45. package/dist/models/CategoryMatchResponseBody.d.ts +117 -0
  46. package/dist/models/CategoryMatchResponseBody.js +103 -0
  47. package/dist/models/CategoryMatchResponseBody.js.map +1 -0
  48. package/dist/models/DocumentTranslateRequest.d.ts +51 -0
  49. package/dist/models/DocumentTranslateRequest.js +64 -0
  50. package/dist/models/DocumentTranslateRequest.js.map +1 -0
  51. package/dist/models/DocumentTranslateResponse.d.ts +19 -0
  52. package/dist/models/DocumentTranslateResponse.js +69 -0
  53. package/dist/models/DocumentTranslateResponse.js.map +1 -0
  54. package/dist/models/DocumentTranslateResponseBody.d.ts +72 -0
  55. package/dist/models/DocumentTranslateResponseBody.js +88 -0
  56. package/dist/models/DocumentTranslateResponseBody.js.map +1 -0
  57. package/dist/models/ImageCroppingRequest.d.ts +43 -0
  58. package/dist/models/ImageCroppingRequest.js +62 -0
  59. package/dist/models/ImageCroppingRequest.js.map +1 -0
  60. package/dist/models/ImageCroppingResponse.d.ts +19 -0
  61. package/dist/models/ImageCroppingResponse.js +69 -0
  62. package/dist/models/ImageCroppingResponse.js.map +1 -0
  63. package/dist/models/ImageCroppingResponseBody.d.ts +96 -0
  64. package/dist/models/ImageCroppingResponseBody.js +97 -0
  65. package/dist/models/ImageCroppingResponseBody.js.map +1 -0
  66. package/dist/models/ImageMattingRequest.d.ts +59 -0
  67. package/dist/models/ImageMattingRequest.js +66 -0
  68. package/dist/models/ImageMattingRequest.js.map +1 -0
  69. package/dist/models/ImageMattingResponse.d.ts +19 -0
  70. package/dist/models/ImageMattingResponse.js +69 -0
  71. package/dist/models/ImageMattingResponse.js.map +1 -0
  72. package/dist/models/ImageMattingResponseBody.d.ts +106 -0
  73. package/dist/models/ImageMattingResponseBody.js +99 -0
  74. package/dist/models/ImageMattingResponseBody.js.map +1 -0
  75. package/dist/models/ImageRecognitionRequest.d.ts +79 -0
  76. package/dist/models/ImageRecognitionRequest.js +78 -0
  77. package/dist/models/ImageRecognitionRequest.js.map +1 -0
  78. package/dist/models/ImageRecognitionResponse.d.ts +19 -0
  79. package/dist/models/ImageRecognitionResponse.js +69 -0
  80. package/dist/models/ImageRecognitionResponse.js.map +1 -0
  81. package/dist/models/ImageRecognitionResponseBody.d.ts +173 -0
  82. package/dist/models/ImageRecognitionResponseBody.js +120 -0
  83. package/dist/models/ImageRecognitionResponseBody.js.map +1 -0
  84. package/dist/models/ImageRecognitionShrinkRequest.d.ts +79 -0
  85. package/dist/models/ImageRecognitionShrinkRequest.js +72 -0
  86. package/dist/models/ImageRecognitionShrinkRequest.js.map +1 -0
  87. package/dist/models/ImageRemoveRequest.d.ts +49 -0
  88. package/dist/models/ImageRemoveRequest.js +70 -0
  89. package/dist/models/ImageRemoveRequest.js.map +1 -0
  90. package/dist/models/ImageRemoveResponse.d.ts +19 -0
  91. package/dist/models/ImageRemoveResponse.js +69 -0
  92. package/dist/models/ImageRemoveResponse.js.map +1 -0
  93. package/dist/models/ImageRemoveResponseBody.d.ts +96 -0
  94. package/dist/models/ImageRemoveResponseBody.js +97 -0
  95. package/dist/models/ImageRemoveResponseBody.js.map +1 -0
  96. package/dist/models/ImageRemoveShrinkRequest.d.ts +49 -0
  97. package/dist/models/ImageRemoveShrinkRequest.js +64 -0
  98. package/dist/models/ImageRemoveShrinkRequest.js.map +1 -0
  99. package/dist/models/ImageTranslationProRequest.d.ts +83 -0
  100. package/dist/models/ImageTranslationProRequest.js +72 -0
  101. package/dist/models/ImageTranslationProRequest.js.map +1 -0
  102. package/dist/models/ImageTranslationProResponse.d.ts +19 -0
  103. package/dist/models/ImageTranslationProResponse.js +69 -0
  104. package/dist/models/ImageTranslationProResponse.js.map +1 -0
  105. package/dist/models/ImageTranslationProResponseBody.d.ts +533 -0
  106. package/dist/models/ImageTranslationProResponseBody.js +378 -0
  107. package/dist/models/ImageTranslationProResponseBody.js.map +1 -0
  108. package/dist/models/ImageTranslationStandardRequest.d.ts +67 -0
  109. package/dist/models/ImageTranslationStandardRequest.js +68 -0
  110. package/dist/models/ImageTranslationStandardRequest.js.map +1 -0
  111. package/dist/models/ImageTranslationStandardResponse.d.ts +19 -0
  112. package/dist/models/ImageTranslationStandardResponse.js +69 -0
  113. package/dist/models/ImageTranslationStandardResponse.js.map +1 -0
  114. package/dist/models/ImageTranslationStandardResponseBody.d.ts +80 -0
  115. package/dist/models/ImageTranslationStandardResponseBody.js +93 -0
  116. package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -0
  117. package/dist/models/LanguageDetectRequest.d.ts +23 -0
  118. package/dist/models/LanguageDetectRequest.js +58 -0
  119. package/dist/models/LanguageDetectRequest.js.map +1 -0
  120. package/dist/models/LanguageDetectResponse.d.ts +19 -0
  121. package/dist/models/LanguageDetectResponse.js +69 -0
  122. package/dist/models/LanguageDetectResponse.js.map +1 -0
  123. package/dist/models/LanguageDetectResponseBody.d.ts +82 -0
  124. package/dist/models/LanguageDetectResponseBody.js +93 -0
  125. package/dist/models/LanguageDetectResponseBody.js.map +1 -0
  126. package/dist/models/PackageWeightSizeCheckRequest.d.ts +33 -0
  127. package/dist/models/PackageWeightSizeCheckRequest.js +60 -0
  128. package/dist/models/PackageWeightSizeCheckRequest.js.map +1 -0
  129. package/dist/models/PackageWeightSizeCheckResponse.d.ts +19 -0
  130. package/dist/models/PackageWeightSizeCheckResponse.js +69 -0
  131. package/dist/models/PackageWeightSizeCheckResponse.js.map +1 -0
  132. package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +70 -0
  133. package/dist/models/PackageWeightSizeCheckResponseBody.js +88 -0
  134. package/dist/models/PackageWeightSizeCheckResponseBody.js.map +1 -0
  135. package/dist/models/QueryAsyncTaskResultRequest.d.ts +21 -0
  136. package/dist/models/QueryAsyncTaskResultRequest.js +58 -0
  137. package/dist/models/QueryAsyncTaskResultRequest.js.map +1 -0
  138. package/dist/models/QueryAsyncTaskResultResponse.d.ts +19 -0
  139. package/dist/models/QueryAsyncTaskResultResponse.js +69 -0
  140. package/dist/models/QueryAsyncTaskResultResponse.js.map +1 -0
  141. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +95 -0
  142. package/dist/models/QueryAsyncTaskResultResponseBody.js +97 -0
  143. package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -0
  144. package/dist/models/SizeChartDetectRequest.d.ts +31 -0
  145. package/dist/models/SizeChartDetectRequest.js +60 -0
  146. package/dist/models/SizeChartDetectRequest.js.map +1 -0
  147. package/dist/models/SizeChartDetectResponse.d.ts +19 -0
  148. package/dist/models/SizeChartDetectResponse.js +69 -0
  149. package/dist/models/SizeChartDetectResponse.js.map +1 -0
  150. package/dist/models/SizeChartDetectResponseBody.d.ts +82 -0
  151. package/dist/models/SizeChartDetectResponseBody.js +93 -0
  152. package/dist/models/SizeChartDetectResponseBody.js.map +1 -0
  153. package/dist/models/SizeChartExtractRequest.d.ts +39 -0
  154. package/dist/models/SizeChartExtractRequest.js +65 -0
  155. package/dist/models/SizeChartExtractRequest.js.map +1 -0
  156. package/dist/models/SizeChartExtractResponse.d.ts +19 -0
  157. package/dist/models/SizeChartExtractResponse.js +69 -0
  158. package/dist/models/SizeChartExtractResponse.js.map +1 -0
  159. package/dist/models/SizeChartExtractResponseBody.d.ts +70 -0
  160. package/dist/models/SizeChartExtractResponseBody.js +88 -0
  161. package/dist/models/SizeChartExtractResponseBody.js.map +1 -0
  162. package/dist/models/SizeChartExtractShrinkRequest.d.ts +39 -0
  163. package/dist/models/SizeChartExtractShrinkRequest.js +62 -0
  164. package/dist/models/SizeChartExtractShrinkRequest.js.map +1 -0
  165. package/dist/models/TextCorrectRequest.d.ts +33 -0
  166. package/dist/models/TextCorrectRequest.js +60 -0
  167. package/dist/models/TextCorrectRequest.js.map +1 -0
  168. package/dist/models/TextCorrectResponse.d.ts +19 -0
  169. package/dist/models/TextCorrectResponse.js +69 -0
  170. package/dist/models/TextCorrectResponse.js.map +1 -0
  171. package/dist/models/TextCorrectResponseBody.d.ts +80 -0
  172. package/dist/models/TextCorrectResponseBody.js +93 -0
  173. package/dist/models/TextCorrectResponseBody.js.map +1 -0
  174. package/dist/models/TextTranslateRequest.d.ts +57 -0
  175. package/dist/models/TextTranslateRequest.js +69 -0
  176. package/dist/models/TextTranslateRequest.js.map +1 -0
  177. package/dist/models/TextTranslateResponse.d.ts +19 -0
  178. package/dist/models/TextTranslateResponse.js +69 -0
  179. package/dist/models/TextTranslateResponse.js.map +1 -0
  180. package/dist/models/TextTranslateResponseBody.d.ts +113 -0
  181. package/dist/models/TextTranslateResponseBody.js +119 -0
  182. package/dist/models/TextTranslateResponseBody.js.map +1 -0
  183. package/dist/models/TextTranslateShrinkRequest.d.ts +57 -0
  184. package/dist/models/TextTranslateShrinkRequest.js +66 -0
  185. package/dist/models/TextTranslateShrinkRequest.js.map +1 -0
  186. package/dist/models/VisionFlowRequest.d.ts +153 -0
  187. package/dist/models/VisionFlowRequest.js +105 -0
  188. package/dist/models/VisionFlowRequest.js.map +1 -0
  189. package/dist/models/VisionFlowResponse.d.ts +19 -0
  190. package/dist/models/VisionFlowResponse.js +69 -0
  191. package/dist/models/VisionFlowResponse.js.map +1 -0
  192. package/dist/models/VisionFlowResponseBody.d.ts +70 -0
  193. package/dist/models/VisionFlowResponseBody.js +88 -0
  194. package/dist/models/VisionFlowResponseBody.js.map +1 -0
  195. package/dist/models/VisionFlowShrinkRequest.d.ts +153 -0
  196. package/dist/models/VisionFlowShrinkRequest.js +90 -0
  197. package/dist/models/VisionFlowShrinkRequest.js.map +1 -0
  198. package/dist/models/model.d.ts +95 -0
  199. package/dist/models/model.js +195 -0
  200. package/dist/models/model.js.map +1 -0
  201. package/package.json +29 -0
  202. package/src/client.ts +2378 -0
  203. package/src/models/AssetOptimizeLiteRequest.ts +122 -0
  204. package/src/models/AssetOptimizeLiteResponse.ts +40 -0
  205. package/src/models/AssetOptimizeLiteResponseBody.ts +106 -0
  206. package/src/models/AssetOptimizeProRequest.ts +155 -0
  207. package/src/models/AssetOptimizeProResponse.ts +40 -0
  208. package/src/models/AssetOptimizeProResponseBody.ts +104 -0
  209. package/src/models/AssetOptimizeProShrinkRequest.ts +152 -0
  210. package/src/models/CategoryAttributeMatchRequest.ts +119 -0
  211. package/src/models/CategoryAttributeMatchResponse.ts +40 -0
  212. package/src/models/CategoryAttributeMatchResponseBody.ts +314 -0
  213. package/src/models/CategoryAttributeMatchShrinkRequest.ts +116 -0
  214. package/src/models/CategoryMatchRequest.ts +104 -0
  215. package/src/models/CategoryMatchResponse.ts +40 -0
  216. package/src/models/CategoryMatchResponseBody.ts +164 -0
  217. package/src/models/DocumentTranslateRequest.ts +70 -0
  218. package/src/models/DocumentTranslateResponse.ts +40 -0
  219. package/src/models/DocumentTranslateResponseBody.ts +106 -0
  220. package/src/models/ImageCroppingRequest.ts +60 -0
  221. package/src/models/ImageCroppingResponse.ts +40 -0
  222. package/src/models/ImageCroppingResponseBody.ts +137 -0
  223. package/src/models/ImageMattingRequest.ts +80 -0
  224. package/src/models/ImageMattingResponse.ts +40 -0
  225. package/src/models/ImageMattingResponseBody.ts +149 -0
  226. package/src/models/ImageRecognitionRequest.ts +112 -0
  227. package/src/models/ImageRecognitionResponse.ts +40 -0
  228. package/src/models/ImageRecognitionResponseBody.ts +237 -0
  229. package/src/models/ImageRecognitionShrinkRequest.ts +106 -0
  230. package/src/models/ImageRemoveRequest.ts +74 -0
  231. package/src/models/ImageRemoveResponse.ts +40 -0
  232. package/src/models/ImageRemoveResponseBody.ts +137 -0
  233. package/src/models/ImageRemoveShrinkRequest.ts +68 -0
  234. package/src/models/ImageTranslationProRequest.ts +110 -0
  235. package/src/models/ImageTranslationProResponse.ts +40 -0
  236. package/src/models/ImageTranslationProResponseBody.ts +774 -0
  237. package/src/models/ImageTranslationStandardRequest.ts +90 -0
  238. package/src/models/ImageTranslationStandardResponse.ts +40 -0
  239. package/src/models/ImageTranslationStandardResponseBody.ts +117 -0
  240. package/src/models/LanguageDetectRequest.ts +36 -0
  241. package/src/models/LanguageDetectResponse.ts +40 -0
  242. package/src/models/LanguageDetectResponseBody.ts +119 -0
  243. package/src/models/PackageWeightSizeCheckRequest.ts +48 -0
  244. package/src/models/PackageWeightSizeCheckResponse.ts +40 -0
  245. package/src/models/PackageWeightSizeCheckResponseBody.ts +104 -0
  246. package/src/models/QueryAsyncTaskResultRequest.ts +34 -0
  247. package/src/models/QueryAsyncTaskResultResponse.ts +40 -0
  248. package/src/models/QueryAsyncTaskResultResponseBody.ts +136 -0
  249. package/src/models/SizeChartDetectRequest.ts +46 -0
  250. package/src/models/SizeChartDetectResponse.ts +40 -0
  251. package/src/models/SizeChartDetectResponseBody.ts +119 -0
  252. package/src/models/SizeChartExtractRequest.ts +59 -0
  253. package/src/models/SizeChartExtractResponse.ts +40 -0
  254. package/src/models/SizeChartExtractResponseBody.ts +104 -0
  255. package/src/models/SizeChartExtractShrinkRequest.ts +56 -0
  256. package/src/models/TextCorrectRequest.ts +48 -0
  257. package/src/models/TextCorrectResponse.ts +40 -0
  258. package/src/models/TextCorrectResponseBody.ts +117 -0
  259. package/src/models/TextTranslateRequest.ts +81 -0
  260. package/src/models/TextTranslateResponse.ts +40 -0
  261. package/src/models/TextTranslateResponseBody.ts +167 -0
  262. package/src/models/TextTranslateShrinkRequest.ts +78 -0
  263. package/src/models/VisionFlowRequest.ts +213 -0
  264. package/src/models/VisionFlowResponse.ts +40 -0
  265. package/src/models/VisionFlowResponseBody.ts +104 -0
  266. package/src/models/VisionFlowShrinkRequest.ts +198 -0
  267. package/src/models/model.ts +95 -0
package/src/client.ts ADDED
@@ -0,0 +1,2378 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import OpenApi from '@alicloud/openapi-core';
4
+ import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
5
+
6
+
7
+ import * as $_model from './models/model';
8
+ export * from './models/model';
9
+
10
+ export default class Client extends OpenApi {
11
+
12
+ constructor(config: $OpenApiUtil.Config) {
13
+ super(config);
14
+ this._endpointRule = "";
15
+ this.checkConfig(config);
16
+ this._endpoint = this.getEndpoint("aidge", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
17
+ }
18
+
19
+
20
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
21
+ if (!$dara.isNull(endpoint)) {
22
+ return endpoint;
23
+ }
24
+
25
+ if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
26
+ return endpointMap[regionId];
27
+ }
28
+
29
+ return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
30
+ }
31
+
32
+ /**
33
+ * A one-click cross-platform product material optimization service for cross-border e-commerce sellers (minimum cost version). Input product links from source platforms to generate optimized materials including titles, attributes, main images, SKU images, detail images, and descriptions that comply with the target platform\\"s requirements. Uses officially pre-built minimum-cost workflows, primarily based on filtering and lightweight processing without invoking high-cost image translation capabilities, maximizing cost control while ensuring listing compliance. (Asynchronous)
34
+ *
35
+ * @remarks
36
+ * ## Product Introduction
37
+ * A one-click cross-platform product material optimization service for cross-border e-commerce sellers (minimum cost version). Input product links from source platforms to generate optimized materials including titles, attributes, main images, SKU images, detail images, and descriptions that comply with the target platform\\"s requirements. Uses officially pre-built minimum-cost workflows, primarily based on filtering and lightweight processing without invoking high-cost image translation capabilities, maximizing cost control while ensuring listing compliance. (Asynchronous)
38
+ * ## Applicable Scenarios
39
+ * Suitable for cost-sensitive cross-platform product listing scenarios where speed, volume, and affordability are top priorities: for example, bulk listing from 1688 to TEMU, high-SKU inventory batch uploads, entry-level AI processing capabilities provided by top sellers and ERP/SaaS platforms, and merchants with high daily processing volumes but low requirements for marketing performance.
40
+ * By filtering images containing watermarks or non-compliant elements and prioritizing clean original images, it helps merchants complete cross-platform listings at minimal cost.
41
+ * ## Feature Overview
42
+ * This service uses an officially pre-built "Minimum Cost" product optimization workflow, covering the full pipeline from material acquisition, compliance filtering, text optimization, to image processing:
43
+ * 1. Automatically parses 1688 product links to extract multiple material types including titles, SKUs, main images, detail images, and attributes;
44
+ * 2. Performs text filtering and SEO optimization based on TEMU platform blacklisted terms and compliance rules;
45
+ * 3. Intelligently identifies watermarks, logos, and Chinese text in images, prioritizing filtering and selecting clean original images. SKU images and a small number of main images are processed using image translation capabilities to comply with platform standards (high-conversion images with marketing text may be filtered out);
46
+ * 4. Completes category matching, attribute filling, and localization rewriting according to target platform requirements.
47
+ *
48
+ * @param request - AssetOptimizeLiteRequest
49
+ * @param runtime - runtime options for this request RuntimeOptions
50
+ * @returns AssetOptimizeLiteResponse
51
+ */
52
+ async assetOptimizeLiteWithOptions(request: $_model.AssetOptimizeLiteRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AssetOptimizeLiteResponse> {
53
+ request.validate();
54
+ let query = { };
55
+ if (!$dara.isNull(request.glossary)) {
56
+ query["Glossary"] = request.glossary;
57
+ }
58
+
59
+ if (!$dara.isNull(request.includingProductArea)) {
60
+ query["IncludingProductArea"] = request.includingProductArea;
61
+ }
62
+
63
+ if (!$dara.isNull(request.needTrans)) {
64
+ query["NeedTrans"] = request.needTrans;
65
+ }
66
+
67
+ if (!$dara.isNull(request.productUrl)) {
68
+ query["ProductUrl"] = request.productUrl;
69
+ }
70
+
71
+ if (!$dara.isNull(request.sourceLanguage)) {
72
+ query["SourceLanguage"] = request.sourceLanguage;
73
+ }
74
+
75
+ if (!$dara.isNull(request.sourcePlatform)) {
76
+ query["SourcePlatform"] = request.sourcePlatform;
77
+ }
78
+
79
+ if (!$dara.isNull(request.targetLanguage)) {
80
+ query["TargetLanguage"] = request.targetLanguage;
81
+ }
82
+
83
+ if (!$dara.isNull(request.targetPlatform)) {
84
+ query["TargetPlatform"] = request.targetPlatform;
85
+ }
86
+
87
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
88
+ query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
89
+ }
90
+
91
+ let req = new $OpenApiUtil.OpenApiRequest({
92
+ query: OpenApiUtil.query(query),
93
+ });
94
+ let params = new $OpenApiUtil.Params({
95
+ action: "AssetOptimizeLite",
96
+ version: "2026-04-28",
97
+ protocol: "HTTPS",
98
+ pathname: "/",
99
+ method: "POST",
100
+ authType: "AK",
101
+ style: "RPC",
102
+ reqBodyType: "formData",
103
+ bodyType: "json",
104
+ });
105
+ return $dara.cast<$_model.AssetOptimizeLiteResponse>(await this.callApi(params, req, runtime), new $_model.AssetOptimizeLiteResponse({}));
106
+ }
107
+
108
+ /**
109
+ * A one-click cross-platform product material optimization service for cross-border e-commerce sellers (minimum cost version). Input product links from source platforms to generate optimized materials including titles, attributes, main images, SKU images, detail images, and descriptions that comply with the target platform\\"s requirements. Uses officially pre-built minimum-cost workflows, primarily based on filtering and lightweight processing without invoking high-cost image translation capabilities, maximizing cost control while ensuring listing compliance. (Asynchronous)
110
+ *
111
+ * @remarks
112
+ * ## Product Introduction
113
+ * A one-click cross-platform product material optimization service for cross-border e-commerce sellers (minimum cost version). Input product links from source platforms to generate optimized materials including titles, attributes, main images, SKU images, detail images, and descriptions that comply with the target platform\\"s requirements. Uses officially pre-built minimum-cost workflows, primarily based on filtering and lightweight processing without invoking high-cost image translation capabilities, maximizing cost control while ensuring listing compliance. (Asynchronous)
114
+ * ## Applicable Scenarios
115
+ * Suitable for cost-sensitive cross-platform product listing scenarios where speed, volume, and affordability are top priorities: for example, bulk listing from 1688 to TEMU, high-SKU inventory batch uploads, entry-level AI processing capabilities provided by top sellers and ERP/SaaS platforms, and merchants with high daily processing volumes but low requirements for marketing performance.
116
+ * By filtering images containing watermarks or non-compliant elements and prioritizing clean original images, it helps merchants complete cross-platform listings at minimal cost.
117
+ * ## Feature Overview
118
+ * This service uses an officially pre-built "Minimum Cost" product optimization workflow, covering the full pipeline from material acquisition, compliance filtering, text optimization, to image processing:
119
+ * 1. Automatically parses 1688 product links to extract multiple material types including titles, SKUs, main images, detail images, and attributes;
120
+ * 2. Performs text filtering and SEO optimization based on TEMU platform blacklisted terms and compliance rules;
121
+ * 3. Intelligently identifies watermarks, logos, and Chinese text in images, prioritizing filtering and selecting clean original images. SKU images and a small number of main images are processed using image translation capabilities to comply with platform standards (high-conversion images with marketing text may be filtered out);
122
+ * 4. Completes category matching, attribute filling, and localization rewriting according to target platform requirements.
123
+ *
124
+ * @param request - AssetOptimizeLiteRequest
125
+ * @returns AssetOptimizeLiteResponse
126
+ */
127
+ async assetOptimizeLite(request: $_model.AssetOptimizeLiteRequest): Promise<$_model.AssetOptimizeLiteResponse> {
128
+ let runtime = new $dara.RuntimeOptions({ });
129
+ return await this.assetOptimizeLiteWithOptions(request, runtime);
130
+ }
131
+
132
+ /**
133
+ * Provides a one-click cross-platform product listing optimization service (best effect edition) for cross-border e-commerce sellers. Takes a 1688 product link as input and outputs a complete set of assets adapted to TEMU platform requirements, including titles, attributes, main images, SKU images, detail images, and copywriting. Uses the official pre-built best-effect workflow to maximize AI capabilities, retains and localizes brand marketing assets, and outputs category-specific assets such as size charts for apparel categories. (Asynchronous).
134
+ *
135
+ * @remarks
136
+ * ## Product Introduction
137
+ * A one-click cross-platform product listing optimization service (best effect edition) for cross-border e-commerce sellers. Takes a 1688 product link as input and outputs a complete set of assets adapted to TEMU platform requirements, including titles, attributes, main images, SKU images, detail images, and copywriting.
138
+ * ## Common scenarios
139
+ * Suitable for scenarios that demand high-quality cross-platform product listing assets and strong conversion performance. Examples include categories with high dependency on marketing assets such as apparel, accessories, beauty, and home goods. Also suitable for brand merchants and high-value products that need to retain marketing images with embedded copywriting. Ideal for top sellers and ERP/SaaS platforms conducting localized operations across multiple languages and markets, as well as scenarios that require category-specific assets (such as size charts and package weight/dimensions) to improve listing quality and conversion rates.
140
+ * ## Features
141
+ * This service uses the official pre-built "Best Effect" product optimization workflow, covering the entire pipeline from asset retrieval, diagnosis, filtering, and optimization to output:
142
+ * 1. Automatically parses 1688 product links to extract all assets including titles, SKUs, main images, detail images, and attributes. Intelligently diagnoses missing assets and optimization opportunities.
143
+ * 2. Uses LLM-based text compliance filtering, SEO keyword optimization, five-point description generation, and multilingual localization rewriting.
144
+ * 3. Invokes multiple image processing capabilities including intelligent recognition, intelligent background removal, intelligent erasure, Image Translation Pro, image expansion, intelligent cropping, and HD upscaling.
145
+ * 4. Outputs category-specific assets, such as size charts and package weight/dimensions for apparel categories.
146
+ * 5. Outputs a standardized product asset package ready for direct listing.
147
+ *
148
+ * @param tmpReq - AssetOptimizeProRequest
149
+ * @param runtime - runtime options for this request RuntimeOptions
150
+ * @returns AssetOptimizeProResponse
151
+ */
152
+ async assetOptimizeProWithOptions(tmpReq: $_model.AssetOptimizeProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AssetOptimizeProResponse> {
153
+ tmpReq.validate();
154
+ let request = new $_model.AssetOptimizeProShrinkRequest({ });
155
+ OpenApiUtil.convert(tmpReq, request);
156
+ if (!$dara.isNull(tmpReq.columnNameList)) {
157
+ request.columnNameListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columnNameList, "ColumnNameList", "json");
158
+ }
159
+
160
+ let query = { };
161
+ if (!$dara.isNull(request.columnNameListShrink)) {
162
+ query["ColumnNameList"] = request.columnNameListShrink;
163
+ }
164
+
165
+ if (!$dara.isNull(request.glossary)) {
166
+ query["Glossary"] = request.glossary;
167
+ }
168
+
169
+ if (!$dara.isNull(request.includingProductArea)) {
170
+ query["IncludingProductArea"] = request.includingProductArea;
171
+ }
172
+
173
+ if (!$dara.isNull(request.languageModel)) {
174
+ query["LanguageModel"] = request.languageModel;
175
+ }
176
+
177
+ if (!$dara.isNull(request.needTrans)) {
178
+ query["NeedTrans"] = request.needTrans;
179
+ }
180
+
181
+ if (!$dara.isNull(request.productUrl)) {
182
+ query["ProductUrl"] = request.productUrl;
183
+ }
184
+
185
+ if (!$dara.isNull(request.sourceLanguage)) {
186
+ query["SourceLanguage"] = request.sourceLanguage;
187
+ }
188
+
189
+ if (!$dara.isNull(request.sourcePlatform)) {
190
+ query["SourcePlatform"] = request.sourcePlatform;
191
+ }
192
+
193
+ if (!$dara.isNull(request.targetLanguage)) {
194
+ query["TargetLanguage"] = request.targetLanguage;
195
+ }
196
+
197
+ if (!$dara.isNull(request.targetPlatform)) {
198
+ query["TargetPlatform"] = request.targetPlatform;
199
+ }
200
+
201
+ if (!$dara.isNull(request.threshold)) {
202
+ query["Threshold"] = request.threshold;
203
+ }
204
+
205
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
206
+ query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
207
+ }
208
+
209
+ let req = new $OpenApiUtil.OpenApiRequest({
210
+ query: OpenApiUtil.query(query),
211
+ });
212
+ let params = new $OpenApiUtil.Params({
213
+ action: "AssetOptimizePro",
214
+ version: "2026-04-28",
215
+ protocol: "HTTPS",
216
+ pathname: "/",
217
+ method: "POST",
218
+ authType: "AK",
219
+ style: "RPC",
220
+ reqBodyType: "formData",
221
+ bodyType: "json",
222
+ });
223
+ return $dara.cast<$_model.AssetOptimizeProResponse>(await this.callApi(params, req, runtime), new $_model.AssetOptimizeProResponse({}));
224
+ }
225
+
226
+ /**
227
+ * Provides a one-click cross-platform product listing optimization service (best effect edition) for cross-border e-commerce sellers. Takes a 1688 product link as input and outputs a complete set of assets adapted to TEMU platform requirements, including titles, attributes, main images, SKU images, detail images, and copywriting. Uses the official pre-built best-effect workflow to maximize AI capabilities, retains and localizes brand marketing assets, and outputs category-specific assets such as size charts for apparel categories. (Asynchronous).
228
+ *
229
+ * @remarks
230
+ * ## Product Introduction
231
+ * A one-click cross-platform product listing optimization service (best effect edition) for cross-border e-commerce sellers. Takes a 1688 product link as input and outputs a complete set of assets adapted to TEMU platform requirements, including titles, attributes, main images, SKU images, detail images, and copywriting.
232
+ * ## Common scenarios
233
+ * Suitable for scenarios that demand high-quality cross-platform product listing assets and strong conversion performance. Examples include categories with high dependency on marketing assets such as apparel, accessories, beauty, and home goods. Also suitable for brand merchants and high-value products that need to retain marketing images with embedded copywriting. Ideal for top sellers and ERP/SaaS platforms conducting localized operations across multiple languages and markets, as well as scenarios that require category-specific assets (such as size charts and package weight/dimensions) to improve listing quality and conversion rates.
234
+ * ## Features
235
+ * This service uses the official pre-built "Best Effect" product optimization workflow, covering the entire pipeline from asset retrieval, diagnosis, filtering, and optimization to output:
236
+ * 1. Automatically parses 1688 product links to extract all assets including titles, SKUs, main images, detail images, and attributes. Intelligently diagnoses missing assets and optimization opportunities.
237
+ * 2. Uses LLM-based text compliance filtering, SEO keyword optimization, five-point description generation, and multilingual localization rewriting.
238
+ * 3. Invokes multiple image processing capabilities including intelligent recognition, intelligent background removal, intelligent erasure, Image Translation Pro, image expansion, intelligent cropping, and HD upscaling.
239
+ * 4. Outputs category-specific assets, such as size charts and package weight/dimensions for apparel categories.
240
+ * 5. Outputs a standardized product asset package ready for direct listing.
241
+ *
242
+ * @param request - AssetOptimizeProRequest
243
+ * @returns AssetOptimizeProResponse
244
+ */
245
+ async assetOptimizePro(request: $_model.AssetOptimizeProRequest): Promise<$_model.AssetOptimizeProResponse> {
246
+ let runtime = new $dara.RuntimeOptions({ });
247
+ return await this.assetOptimizeProWithOptions(request, runtime);
248
+ }
249
+
250
+ /**
251
+ * Provides a cross-platform product category and attribute intelligent filling service based on multimodal large models. Takes product information from a source platform, automatically matches the category on the target listing platform, and intelligently fills in all required attribute fields under that category, offering a one-stop solution for category selection and attribute filling during product listing. (Synchronous).
252
+ *
253
+ * @remarks
254
+ * # Scenarios
255
+ * Cross-platform product listing attribute filling: When merchants list products across platforms, different platforms such as the source platform and the TEMU platform require different attribute fields for different categories, with complex hierarchical associations (such as material → wood type → density). Manual filling is time-consuming and error-prone. This service automatically understands product information and intelligently fills in attributes. It is applicable to scenarios such as automated bulk listing for top sellers, ERP/SaaS platform integration, and quick product listing for SMB merchants.
256
+ * # Features
257
+ * Users input the product title, source category, product details, SKU, product attributes, and product images (up to 10). The system uses multimodal AI to understand product semantics and visual features, and completes two core tasks: ① Matches the precise category path for the product on the TEMU platform. ② Automatically fills in the required attributes under that category (such as material, battery properties, size, and connectivity), and returns the confidence score and reasoning for each attribute. The API uses synchronous mode and returns results immediately upon invocation.
258
+ * # Comparison
259
+ * The following example shows the attributes of a USB fan:
260
+ * | **1688 Attribute** | **1688 Attribute Value** | **TEMU Attribute** | **TEMU Attribute Value** | **Existing in 1688** |
261
+ * | --- | --- | --- | --- | --- |
262
+ * | 品牌 | 其他 | 供电方式 | USB充电(内置电池) | No |
263
+ * | 续航时长 | 3-6h(含) | 可充电电池 | 锂系电池 | No |
264
+ * | 附加功能 | 数显 | 电池容量(mAh) | 4000 | Yes |
265
+ * | 内置蓄电池容量 | 2000mAh-4000mAh(含) | 风扇功能 | 高速特征 | No |
266
+ * | 货号 | X699 | 控制方式 | 按键 | Yes |
267
+ * | 主要下游平台 | ebay,亚马逊,wish,速卖通,独立站,LAZADA,其他 | 完成类型 | 涂漆 | Yes |
268
+ * | 有可授权的自有品牌 | 否 | 推荐使用 | 冷却 | No |
269
+ * | 尺寸 | 65\\*60\\*171 | 电风扇设计 | 可穿戴风扇 | No |
270
+ * | 适用送礼场合 | 个人礼品 | 包含的组件 | 无 | No |
271
+ * | 外壳工艺 | 喷涂(UV漆,橡胶漆,金属漆,钢琴烤漆,珠光粉) | 材料 | 塑料 | No |
272
+ * | 包装体积 | 65\\*60\\*171 | 特殊功能 | 便携式 | No |
273
+ * | 外观尺寸 | 51\\*36\\*34 | 室内外使用 | 室内室外均可 | No |
274
+ * | 风速档位 | 3档 | 品牌名 | 无 | No |
275
+ * | 操作方式 | 普通按钮 | | | |
276
+ * | 扇叶材质 | ABS | | | |
277
+ * | 电源方式 | USB | | | |
278
+ * | 是否内置电池 | 内置电池 | | | |
279
+ * | 是否专利货源 | 否 | | | |
280
+ * | 颜色 | X699风扇-黄色,X699风扇-浅紫色,X699风扇-天蓝色,X699风扇-橙色,X699风扇-浅绿色,普通小风扇 | | | |
281
+ * | 主要销售地区 | 日韩,非洲,韩国,日本,欧洲,南美,东南亚,北美,东北亚,中东,拉丁美洲,欧美,其他 | | | |
282
+ * | 是否跨境出口专供货源 | 是 | | | |
283
+ * | 风格 | 清新 | | | |
284
+ * | 电机类型 | 无刷电机 | | | |
285
+ * | 噪音 | 36dB(A)-45dB(A)(含) | | | |
286
+ * | 产品净重 | 125g | | | |
287
+ * | 扇叶数量 | 6片及以上 | | | |
288
+ * | 风扇分类 | 手持风扇 | | | |.
289
+ *
290
+ * @param tmpReq - CategoryAttributeMatchRequest
291
+ * @param runtime - runtime options for this request RuntimeOptions
292
+ * @returns CategoryAttributeMatchResponse
293
+ */
294
+ async categoryAttributeMatchWithOptions(tmpReq: $_model.CategoryAttributeMatchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CategoryAttributeMatchResponse> {
295
+ tmpReq.validate();
296
+ let request = new $_model.CategoryAttributeMatchShrinkRequest({ });
297
+ OpenApiUtil.convert(tmpReq, request);
298
+ if (!$dara.isNull(tmpReq.imageUrl)) {
299
+ request.imageUrlShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.imageUrl, "ImageUrl", "json");
300
+ }
301
+
302
+ let body : {[key: string ]: any} = { };
303
+ if (!$dara.isNull(request.description)) {
304
+ body["Description"] = request.description;
305
+ }
306
+
307
+ if (!$dara.isNull(request.imageUrlShrink)) {
308
+ body["ImageUrl"] = request.imageUrlShrink;
309
+ }
310
+
311
+ if (!$dara.isNull(request.itemSpec)) {
312
+ body["ItemSpec"] = request.itemSpec;
313
+ }
314
+
315
+ if (!$dara.isNull(request.sku)) {
316
+ body["Sku"] = request.sku;
317
+ }
318
+
319
+ if (!$dara.isNull(request.sourceCategory)) {
320
+ body["SourceCategory"] = request.sourceCategory;
321
+ }
322
+
323
+ if (!$dara.isNull(request.sourcePlatform)) {
324
+ body["SourcePlatform"] = request.sourcePlatform;
325
+ }
326
+
327
+ if (!$dara.isNull(request.targetPlatform)) {
328
+ body["TargetPlatform"] = request.targetPlatform;
329
+ }
330
+
331
+ if (!$dara.isNull(request.title)) {
332
+ body["Title"] = request.title;
333
+ }
334
+
335
+ let req = new $OpenApiUtil.OpenApiRequest({
336
+ body: OpenApiUtil.parseToMap(body),
337
+ });
338
+ let params = new $OpenApiUtil.Params({
339
+ action: "CategoryAttributeMatch",
340
+ version: "2026-04-28",
341
+ protocol: "HTTPS",
342
+ pathname: "/",
343
+ method: "POST",
344
+ authType: "AK",
345
+ style: "RPC",
346
+ reqBodyType: "formData",
347
+ bodyType: "json",
348
+ });
349
+ return $dara.cast<$_model.CategoryAttributeMatchResponse>(await this.callApi(params, req, runtime), new $_model.CategoryAttributeMatchResponse({}));
350
+ }
351
+
352
+ /**
353
+ * Provides a cross-platform product category and attribute intelligent filling service based on multimodal large models. Takes product information from a source platform, automatically matches the category on the target listing platform, and intelligently fills in all required attribute fields under that category, offering a one-stop solution for category selection and attribute filling during product listing. (Synchronous).
354
+ *
355
+ * @remarks
356
+ * # Scenarios
357
+ * Cross-platform product listing attribute filling: When merchants list products across platforms, different platforms such as the source platform and the TEMU platform require different attribute fields for different categories, with complex hierarchical associations (such as material → wood type → density). Manual filling is time-consuming and error-prone. This service automatically understands product information and intelligently fills in attributes. It is applicable to scenarios such as automated bulk listing for top sellers, ERP/SaaS platform integration, and quick product listing for SMB merchants.
358
+ * # Features
359
+ * Users input the product title, source category, product details, SKU, product attributes, and product images (up to 10). The system uses multimodal AI to understand product semantics and visual features, and completes two core tasks: ① Matches the precise category path for the product on the TEMU platform. ② Automatically fills in the required attributes under that category (such as material, battery properties, size, and connectivity), and returns the confidence score and reasoning for each attribute. The API uses synchronous mode and returns results immediately upon invocation.
360
+ * # Comparison
361
+ * The following example shows the attributes of a USB fan:
362
+ * | **1688 Attribute** | **1688 Attribute Value** | **TEMU Attribute** | **TEMU Attribute Value** | **Existing in 1688** |
363
+ * | --- | --- | --- | --- | --- |
364
+ * | 品牌 | 其他 | 供电方式 | USB充电(内置电池) | No |
365
+ * | 续航时长 | 3-6h(含) | 可充电电池 | 锂系电池 | No |
366
+ * | 附加功能 | 数显 | 电池容量(mAh) | 4000 | Yes |
367
+ * | 内置蓄电池容量 | 2000mAh-4000mAh(含) | 风扇功能 | 高速特征 | No |
368
+ * | 货号 | X699 | 控制方式 | 按键 | Yes |
369
+ * | 主要下游平台 | ebay,亚马逊,wish,速卖通,独立站,LAZADA,其他 | 完成类型 | 涂漆 | Yes |
370
+ * | 有可授权的自有品牌 | 否 | 推荐使用 | 冷却 | No |
371
+ * | 尺寸 | 65\\*60\\*171 | 电风扇设计 | 可穿戴风扇 | No |
372
+ * | 适用送礼场合 | 个人礼品 | 包含的组件 | 无 | No |
373
+ * | 外壳工艺 | 喷涂(UV漆,橡胶漆,金属漆,钢琴烤漆,珠光粉) | 材料 | 塑料 | No |
374
+ * | 包装体积 | 65\\*60\\*171 | 特殊功能 | 便携式 | No |
375
+ * | 外观尺寸 | 51\\*36\\*34 | 室内外使用 | 室内室外均可 | No |
376
+ * | 风速档位 | 3档 | 品牌名 | 无 | No |
377
+ * | 操作方式 | 普通按钮 | | | |
378
+ * | 扇叶材质 | ABS | | | |
379
+ * | 电源方式 | USB | | | |
380
+ * | 是否内置电池 | 内置电池 | | | |
381
+ * | 是否专利货源 | 否 | | | |
382
+ * | 颜色 | X699风扇-黄色,X699风扇-浅紫色,X699风扇-天蓝色,X699风扇-橙色,X699风扇-浅绿色,普通小风扇 | | | |
383
+ * | 主要销售地区 | 日韩,非洲,韩国,日本,欧洲,南美,东南亚,北美,东北亚,中东,拉丁美洲,欧美,其他 | | | |
384
+ * | 是否跨境出口专供货源 | 是 | | | |
385
+ * | 风格 | 清新 | | | |
386
+ * | 电机类型 | 无刷电机 | | | |
387
+ * | 噪音 | 36dB(A)-45dB(A)(含) | | | |
388
+ * | 产品净重 | 125g | | | |
389
+ * | 扇叶数量 | 6片及以上 | | | |
390
+ * | 风扇分类 | 手持风扇 | | | |.
391
+ *
392
+ * @param request - CategoryAttributeMatchRequest
393
+ * @returns CategoryAttributeMatchResponse
394
+ */
395
+ async categoryAttributeMatch(request: $_model.CategoryAttributeMatchRequest): Promise<$_model.CategoryAttributeMatchResponse> {
396
+ let runtime = new $dara.RuntimeOptions({ });
397
+ return await this.categoryAttributeMatchWithOptions(request, runtime);
398
+ }
399
+
400
+ /**
401
+ * Provides a large language model-based cross-platform product category intelligent matching service. Accepts product information from a source platform, automatically matches the best category on the target listing platform, and returns a confidence level score with matching reasons to help sellers quickly select categories for cross-platform product listing. (Synchronous)
402
+ *
403
+ * @remarks
404
+ * ## Product Introduction
405
+ * Provides a large language model-based cross-platform product category intelligent matching service. Accepts product information from a source platform, automatically matches the best category on the target listing platform, and returns a confidence level score with matching reasons to help sellers quickly select categories for cross-platform product listing. (Synchronous)
406
+ * ## Common scenarios
407
+ * Cross-platform product listing: After sourcing products, sellers need to map them to the correct categories in the target platform\\"s category tree. Manually selecting categories requires familiarity with the target platform\\"s entire category structure, which is time-consuming, labor-intensive, and error-prone. Incorrect category mapping can cause products to be delisted.
408
+ * This service automates category mapping and is suitable for bulk API calls from large sellers\\" proprietary systems, integration into ERP/SaaS platforms for automated listing workflows, and quick single-product listing for SMB sellers.
409
+ * The current version supports only TEMU as the target listing platform. Automatic retrieval of product information from source platforms is not yet supported and requires manual parameter input. This capability and support for additional source and target platforms will be added in future releases.
410
+ * ## Functions and features
411
+ * You can input fields such as product title, source category, product description, SKU information, and product attributes. The system uses an AI model to understand product semantics and matches the most appropriate category path from the full TEMU platform category tree. The response includes the complete category path (CategoryPath), category name (CategoryName), confidence score (0–100), and matching reason. The API uses synchronous mode and returns results immediately, making it suitable for embedding in real-time business workflows.
412
+ * ## Demo
413
+ * | **Source platform** | **Image** | **Source platform category** | **Target platform** | **Target platform category** |
414
+ * | --- | --- | --- | --- | --- |
415
+ * | 1688 | ![done-image-245c58c8-a9fc-4e32-b959-8b4bcd52b264.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjv7234mO8g/img/69a226e8-aff1-4891-bb0a-c47c1ea397ae.png) | USB风扇、迷你风扇 | TEMU | 家电
416
+ * \\>加热、冷却和空气质量电器
417
+ * \\>电风扇
418
+ * \\>USB 风扇 |
419
+ * | 1688 | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjv7234mO8g/img/8a546f7d-826e-43d6-b5f3-12d1edef8897.png) | 手链 | TEMU | 服装、鞋靴和珠宝饰品
420
+ * \\>女士时尚
421
+ * \\>女士饰品
422
+ * \\>女士时尚手链、手镯
423
+ * \\>女士时尚吊饰和吊饰手链
424
+ * \\>女士时尚吊饰手链
425
+ * \\>女士时尚链式吊饰手链 |.
426
+ *
427
+ * @param request - CategoryMatchRequest
428
+ * @param runtime - runtime options for this request RuntimeOptions
429
+ * @returns CategoryMatchResponse
430
+ */
431
+ async categoryMatchWithOptions(request: $_model.CategoryMatchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CategoryMatchResponse> {
432
+ request.validate();
433
+ let query = { };
434
+ if (!$dara.isNull(request.description)) {
435
+ query["Description"] = request.description;
436
+ }
437
+
438
+ if (!$dara.isNull(request.itemSpec)) {
439
+ query["ItemSpec"] = request.itemSpec;
440
+ }
441
+
442
+ if (!$dara.isNull(request.sku)) {
443
+ query["Sku"] = request.sku;
444
+ }
445
+
446
+ if (!$dara.isNull(request.sourceCategory)) {
447
+ query["SourceCategory"] = request.sourceCategory;
448
+ }
449
+
450
+ if (!$dara.isNull(request.sourcePlatform)) {
451
+ query["SourcePlatform"] = request.sourcePlatform;
452
+ }
453
+
454
+ if (!$dara.isNull(request.targetPlatform)) {
455
+ query["TargetPlatform"] = request.targetPlatform;
456
+ }
457
+
458
+ if (!$dara.isNull(request.title)) {
459
+ query["Title"] = request.title;
460
+ }
461
+
462
+ let req = new $OpenApiUtil.OpenApiRequest({
463
+ query: OpenApiUtil.query(query),
464
+ });
465
+ let params = new $OpenApiUtil.Params({
466
+ action: "CategoryMatch",
467
+ version: "2026-04-28",
468
+ protocol: "HTTPS",
469
+ pathname: "/",
470
+ method: "POST",
471
+ authType: "AK",
472
+ style: "RPC",
473
+ reqBodyType: "formData",
474
+ bodyType: "json",
475
+ });
476
+ return $dara.cast<$_model.CategoryMatchResponse>(await this.callApi(params, req, runtime), new $_model.CategoryMatchResponse({}));
477
+ }
478
+
479
+ /**
480
+ * Provides a large language model-based cross-platform product category intelligent matching service. Accepts product information from a source platform, automatically matches the best category on the target listing platform, and returns a confidence level score with matching reasons to help sellers quickly select categories for cross-platform product listing. (Synchronous)
481
+ *
482
+ * @remarks
483
+ * ## Product Introduction
484
+ * Provides a large language model-based cross-platform product category intelligent matching service. Accepts product information from a source platform, automatically matches the best category on the target listing platform, and returns a confidence level score with matching reasons to help sellers quickly select categories for cross-platform product listing. (Synchronous)
485
+ * ## Common scenarios
486
+ * Cross-platform product listing: After sourcing products, sellers need to map them to the correct categories in the target platform\\"s category tree. Manually selecting categories requires familiarity with the target platform\\"s entire category structure, which is time-consuming, labor-intensive, and error-prone. Incorrect category mapping can cause products to be delisted.
487
+ * This service automates category mapping and is suitable for bulk API calls from large sellers\\" proprietary systems, integration into ERP/SaaS platforms for automated listing workflows, and quick single-product listing for SMB sellers.
488
+ * The current version supports only TEMU as the target listing platform. Automatic retrieval of product information from source platforms is not yet supported and requires manual parameter input. This capability and support for additional source and target platforms will be added in future releases.
489
+ * ## Functions and features
490
+ * You can input fields such as product title, source category, product description, SKU information, and product attributes. The system uses an AI model to understand product semantics and matches the most appropriate category path from the full TEMU platform category tree. The response includes the complete category path (CategoryPath), category name (CategoryName), confidence score (0–100), and matching reason. The API uses synchronous mode and returns results immediately, making it suitable for embedding in real-time business workflows.
491
+ * ## Demo
492
+ * | **Source platform** | **Image** | **Source platform category** | **Target platform** | **Target platform category** |
493
+ * | --- | --- | --- | --- | --- |
494
+ * | 1688 | ![done-image-245c58c8-a9fc-4e32-b959-8b4bcd52b264.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjv7234mO8g/img/69a226e8-aff1-4891-bb0a-c47c1ea397ae.png) | USB风扇、迷你风扇 | TEMU | 家电
495
+ * \\>加热、冷却和空气质量电器
496
+ * \\>电风扇
497
+ * \\>USB 风扇 |
498
+ * | 1688 | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/jP2lRYjv7234mO8g/img/8a546f7d-826e-43d6-b5f3-12d1edef8897.png) | 手链 | TEMU | 服装、鞋靴和珠宝饰品
499
+ * \\>女士时尚
500
+ * \\>女士饰品
501
+ * \\>女士时尚手链、手镯
502
+ * \\>女士时尚吊饰和吊饰手链
503
+ * \\>女士时尚吊饰手链
504
+ * \\>女士时尚链式吊饰手链 |.
505
+ *
506
+ * @param request - CategoryMatchRequest
507
+ * @returns CategoryMatchResponse
508
+ */
509
+ async categoryMatch(request: $_model.CategoryMatchRequest): Promise<$_model.CategoryMatchResponse> {
510
+ let runtime = new $dara.RuntimeOptions({ });
511
+ return await this.categoryMatchWithOptions(request, runtime);
512
+ }
513
+
514
+ /**
515
+ * Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs), handling multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
516
+ * The service excels in the following areas:
517
+ * - Content accuracy: translation accuracy, parameter and unit accuracy.
518
+ * - Structural integrity: overall layout continuity, page margin and layout preservation.
519
+ *
520
+ * @remarks
521
+ * ## Product Introduction
522
+ * Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs), handling multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
523
+ * The service excels in the following areas:
524
+ * - Content accuracy: translation accuracy, parameter and unit accuracy.
525
+ * - Structural integrity: overall layout continuity, page margin and layout preservation.
526
+ * ## Common scenarios
527
+ * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
528
+ * 3. Features
529
+ * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed list of supported languages, see section 4.5.
530
+ * - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
531
+ * - Supports high-fidelity layout preservation after translation.
532
+ * - A single PDF supports up to 100 pages, and a single Word document supports up to 100 pages.
533
+ * - 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. 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.
534
+ *
535
+ * @param request - DocumentTranslateRequest
536
+ * @param runtime - runtime options for this request RuntimeOptions
537
+ * @returns DocumentTranslateResponse
538
+ */
539
+ async documentTranslateWithOptions(request: $_model.DocumentTranslateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DocumentTranslateResponse> {
540
+ request.validate();
541
+ let query = { };
542
+ if (!$dara.isNull(request.fileType)) {
543
+ query["FileType"] = request.fileType;
544
+ }
545
+
546
+ if (!$dara.isNull(request.glossary)) {
547
+ query["Glossary"] = request.glossary;
548
+ }
549
+
550
+ if (!$dara.isNull(request.targetLanguage)) {
551
+ query["TargetLanguage"] = request.targetLanguage;
552
+ }
553
+
554
+ if (!$dara.isNull(request.url)) {
555
+ query["Url"] = request.url;
556
+ }
557
+
558
+ let req = new $OpenApiUtil.OpenApiRequest({
559
+ query: OpenApiUtil.query(query),
560
+ });
561
+ let params = new $OpenApiUtil.Params({
562
+ action: "DocumentTranslate",
563
+ version: "2026-04-28",
564
+ protocol: "HTTPS",
565
+ pathname: "/",
566
+ method: "POST",
567
+ authType: "AK",
568
+ style: "RPC",
569
+ reqBodyType: "formData",
570
+ bodyType: "json",
571
+ });
572
+ return $dara.cast<$_model.DocumentTranslateResponse>(await this.callApi(params, req, runtime), new $_model.DocumentTranslateResponse({}));
573
+ }
574
+
575
+ /**
576
+ * Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs), handling multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
577
+ * The service excels in the following areas:
578
+ * - Content accuracy: translation accuracy, parameter and unit accuracy.
579
+ * - Structural integrity: overall layout continuity, page margin and layout preservation.
580
+ *
581
+ * @remarks
582
+ * ## Product Introduction
583
+ * Designed specifically for document translation, this service supports translation between more than 100 language pairs (including bridged pairs), handling multi-scenario, multi-page, and highly complex document translation. Scanned documents are not currently supported.
584
+ * The service excels in the following areas:
585
+ * - Content accuracy: translation accuracy, parameter and unit accuracy.
586
+ * - Structural integrity: overall layout continuity, page margin and layout preservation.
587
+ * ## Common scenarios
588
+ * Cross-border e-commerce product manuals, contracts, agreements, business proposals, qualification documents, textbooks, courseware, and other scenarios.
589
+ * 3. Features
590
+ * - Supports PDF and Word formats. Supports source documents that contain multiple languages. For a detailed list of supported languages, see section 4.5.
591
+ * - Supports translation of text within images in documents, as well as complex translation scenarios such as charts and special symbols.
592
+ * - Supports high-fidelity layout preservation after translation.
593
+ * - A single PDF supports up to 100 pages, and a single Word document supports up to 100 pages.
594
+ * - 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. 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.
595
+ *
596
+ * @param request - DocumentTranslateRequest
597
+ * @returns DocumentTranslateResponse
598
+ */
599
+ async documentTranslate(request: $_model.DocumentTranslateRequest): Promise<$_model.DocumentTranslateResponse> {
600
+ let runtime = new $dara.RuntimeOptions({ });
601
+ return await this.documentTranslateWithOptions(request, runtime);
602
+ }
603
+
604
+ /**
605
+ * Intelligently crop images to specified dimensions, automatically identify the main subject area of the image, and precisely crop to various sizes to meet design requirements for different scenarios. (Synchronous)
606
+ *
607
+ * @remarks
608
+ * ## Product Overview
609
+ * The image cropping product can resize input images to specified dimensions. It supports automatic identification of the main subject area in images and precisely crops to various sizes to meet design requirements for different scenarios. (Synchronous)
610
+ * ## Use Cases
611
+ * - **Multi-platform Content Distribution**: Automatically generate content in multiple sizes to meet the different image size requirements of various platforms and scenarios.
612
+ *
613
+ * - **Content Placement**: Automatically adjust sizes for different ad slots on different platforms, highlighting the main content, reducing blank space, and showcasing product features.
614
+ *
615
+ * ## Feature Description
616
+ * * Automatically identify the main subject area of an image and crop precisely.
617
+ *
618
+ * * Support custom crop size output to adapt to different platforms and devices.
619
+ *
620
+ * ## Effect Comparison
621
+ * | **Original Image** | **Cropped to 1000\\*1000** | **Cropped to 3000\\*2000** |
622
+ * | --- | --- | --- |
623
+ * | ![done-image-5e6abdf1-3c64-48db-9301-a5a9db1f8cb1.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/b356e8a7-cc18-41f7-8da5-dd25f48c6338.png) | ![a715a30a-b594-40db-9f7a-d620add9081c.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/969e0fb6-435c-47f9-aeb6-1624b5a43f3c.png) | ![1e6569f3-a494-4e7c-94c8-439748992deb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/cd6bbde6-e923-4fd1-b252-e5f299377fb8.png) |
624
+ * | ![done-image-0ff8edc4-5bd5-48ca-90ac-38e1701a4573.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/6c4d02ea-c3bc-4865-9655-afc8c5f5c2ef.png) | ![d026cfbc-207c-425b-b8c7-67cc7396c9c9.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/ac6b07f3-0dbf-48de-9fcc-f1450792f75f.png) | ![b9f62dd8-7379-45be-b130-eb534506e77a.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/a3486b31-4cc3-4f23-b326-41ab0780a84e.png) |
625
+ * | ![done-image-8eade64e-c849-46f8-b2e3-29122e280e8c.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/a42cb77c-6f1c-4474-aeff-939f16d5f8dc.png) | ![5d88645b-91b3-4e46-9ba4-5a16189d3ff8.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/62a89676-a424-4d2a-a174-72ed4ae107ed.png) | ![2afdf6cb-44ae-41f3-8d85-7416d2c8fc3c.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/ea22ead8-0eb8-4224-8f1e-319f64173912.png) |
626
+ *
627
+ * @param request - ImageCroppingRequest
628
+ * @param runtime - runtime options for this request RuntimeOptions
629
+ * @returns ImageCroppingResponse
630
+ */
631
+ async imageCroppingWithOptions(request: $_model.ImageCroppingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageCroppingResponse> {
632
+ request.validate();
633
+ let query = { };
634
+ if (!$dara.isNull(request.imageUrl)) {
635
+ query["ImageUrl"] = request.imageUrl;
636
+ }
637
+
638
+ if (!$dara.isNull(request.targetHeight)) {
639
+ query["TargetHeight"] = request.targetHeight;
640
+ }
641
+
642
+ if (!$dara.isNull(request.targetWidth)) {
643
+ query["TargetWidth"] = request.targetWidth;
644
+ }
645
+
646
+ let req = new $OpenApiUtil.OpenApiRequest({
647
+ query: OpenApiUtil.query(query),
648
+ });
649
+ let params = new $OpenApiUtil.Params({
650
+ action: "ImageCropping",
651
+ version: "2026-04-28",
652
+ protocol: "HTTPS",
653
+ pathname: "/",
654
+ method: "POST",
655
+ authType: "AK",
656
+ style: "RPC",
657
+ reqBodyType: "formData",
658
+ bodyType: "json",
659
+ });
660
+ return $dara.cast<$_model.ImageCroppingResponse>(await this.callApi(params, req, runtime), new $_model.ImageCroppingResponse({}));
661
+ }
662
+
663
+ /**
664
+ * Intelligently crop images to specified dimensions, automatically identify the main subject area of the image, and precisely crop to various sizes to meet design requirements for different scenarios. (Synchronous)
665
+ *
666
+ * @remarks
667
+ * ## Product Overview
668
+ * The image cropping product can resize input images to specified dimensions. It supports automatic identification of the main subject area in images and precisely crops to various sizes to meet design requirements for different scenarios. (Synchronous)
669
+ * ## Use Cases
670
+ * - **Multi-platform Content Distribution**: Automatically generate content in multiple sizes to meet the different image size requirements of various platforms and scenarios.
671
+ *
672
+ * - **Content Placement**: Automatically adjust sizes for different ad slots on different platforms, highlighting the main content, reducing blank space, and showcasing product features.
673
+ *
674
+ * ## Feature Description
675
+ * * Automatically identify the main subject area of an image and crop precisely.
676
+ *
677
+ * * Support custom crop size output to adapt to different platforms and devices.
678
+ *
679
+ * ## Effect Comparison
680
+ * | **Original Image** | **Cropped to 1000\\*1000** | **Cropped to 3000\\*2000** |
681
+ * | --- | --- | --- |
682
+ * | ![done-image-5e6abdf1-3c64-48db-9301-a5a9db1f8cb1.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/b356e8a7-cc18-41f7-8da5-dd25f48c6338.png) | ![a715a30a-b594-40db-9f7a-d620add9081c.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/969e0fb6-435c-47f9-aeb6-1624b5a43f3c.png) | ![1e6569f3-a494-4e7c-94c8-439748992deb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/cd6bbde6-e923-4fd1-b252-e5f299377fb8.png) |
683
+ * | ![done-image-0ff8edc4-5bd5-48ca-90ac-38e1701a4573.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/6c4d02ea-c3bc-4865-9655-afc8c5f5c2ef.png) | ![d026cfbc-207c-425b-b8c7-67cc7396c9c9.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/ac6b07f3-0dbf-48de-9fcc-f1450792f75f.png) | ![b9f62dd8-7379-45be-b130-eb534506e77a.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/a3486b31-4cc3-4f23-b326-41ab0780a84e.png) |
684
+ * | ![done-image-8eade64e-c849-46f8-b2e3-29122e280e8c.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/a42cb77c-6f1c-4474-aeff-939f16d5f8dc.png) | ![5d88645b-91b3-4e46-9ba4-5a16189d3ff8.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/62a89676-a424-4d2a-a174-72ed4ae107ed.png) | ![2afdf6cb-44ae-41f3-8d85-7416d2c8fc3c.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/eYVOL5jBbQ7QJlpz/img/ea22ead8-0eb8-4224-8f1e-319f64173912.png) |
685
+ *
686
+ * @param request - ImageCroppingRequest
687
+ * @returns ImageCroppingResponse
688
+ */
689
+ async imageCropping(request: $_model.ImageCroppingRequest): Promise<$_model.ImageCroppingResponse> {
690
+ let runtime = new $dara.RuntimeOptions({ });
691
+ return await this.imageCroppingWithOptions(request, runtime);
692
+ }
693
+
694
+ /**
695
+ * Intelligent image matting automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. The product also provides multiple background options and custom size selections to optimize product display. (Synchronous).
696
+ *
697
+ * @remarks
698
+ * ## Product Introduction
699
+ * Intelligent image matting automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. The product also provides multiple background options and custom size selections to optimize product display. (Synchronous).
700
+ * ## Scenarios
701
+ * * **Secondary editing of materials**: After separating the image subject from the background, you can further edit the image.
702
+ *
703
+ * * **Improved material processing efficiency**: Quickly extract subjects from various material images for easy background replacement, improving the production efficiency of advertising visuals and marketing posters.
704
+ * ## Features.
705
+ * #### 1. One-click precise subject recognition
706
+ * * **AI automatic recognition**: Based on deep learning models, the feature intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
707
+ *
708
+ * * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair strands, transparent objects, and fur edges) with an accuracy rate exceeding 95%.
709
+ * #### 2. Intelligent edge optimization
710
+ * * **Detail-level processing**: Performs automatic optimization of edge aliasing and semi-transparent areas (such as smoke and glass) while preserving natural transition effects.
711
+ * #### 3. Multi-format output and background operations
712
+ * * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, suitable for e-commerce, design, and other scenarios.
713
+ *
714
+ * * **Custom background color support**.
715
+ * ## Effect comparison
716
+ * | **Original image (input)** | **Result image (output)** |
717
+ * | --- | --- |
718
+ * | ![主图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) |
719
+ * | ![主图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) |
720
+ * | ![主图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) |.
721
+ *
722
+ * @param request - ImageMattingRequest
723
+ * @param runtime - runtime options for this request RuntimeOptions
724
+ * @returns ImageMattingResponse
725
+ */
726
+ async imageMattingWithOptions(request: $_model.ImageMattingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageMattingResponse> {
727
+ request.validate();
728
+ let query = { };
729
+ if (!$dara.isNull(request.backGroundType)) {
730
+ query["BackGroundType"] = request.backGroundType;
731
+ }
732
+
733
+ if (!$dara.isNull(request.bgColor)) {
734
+ query["BgColor"] = request.bgColor;
735
+ }
736
+
737
+ if (!$dara.isNull(request.imageUrl)) {
738
+ query["ImageUrl"] = request.imageUrl;
739
+ }
740
+
741
+ if (!$dara.isNull(request.targetHeight)) {
742
+ query["TargetHeight"] = request.targetHeight;
743
+ }
744
+
745
+ if (!$dara.isNull(request.targetWidth)) {
746
+ query["TargetWidth"] = request.targetWidth;
747
+ }
748
+
749
+ let req = new $OpenApiUtil.OpenApiRequest({
750
+ query: OpenApiUtil.query(query),
751
+ });
752
+ let params = new $OpenApiUtil.Params({
753
+ action: "ImageMatting",
754
+ version: "2026-04-28",
755
+ protocol: "HTTPS",
756
+ pathname: "/",
757
+ method: "POST",
758
+ authType: "AK",
759
+ style: "RPC",
760
+ reqBodyType: "formData",
761
+ bodyType: "json",
762
+ });
763
+ return $dara.cast<$_model.ImageMattingResponse>(await this.callApi(params, req, runtime), new $_model.ImageMattingResponse({}));
764
+ }
765
+
766
+ /**
767
+ * Intelligent image matting automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. The product also provides multiple background options and custom size selections to optimize product display. (Synchronous).
768
+ *
769
+ * @remarks
770
+ * ## Product Introduction
771
+ * Intelligent image matting automatically identifies salient subjects in images, separates subjects from backgrounds, and returns subject images with backgrounds removed. The product also provides multiple background options and custom size selections to optimize product display. (Synchronous).
772
+ * ## Scenarios
773
+ * * **Secondary editing of materials**: After separating the image subject from the background, you can further edit the image.
774
+ *
775
+ * * **Improved material processing efficiency**: Quickly extract subjects from various material images for easy background replacement, improving the production efficiency of advertising visuals and marketing posters.
776
+ * ## Features.
777
+ * #### 1. One-click precise subject recognition
778
+ * * **AI automatic recognition**: Based on deep learning models, the feature intelligently distinguishes foreground subjects (portraits, products, objects, etc.) from backgrounds without manual tracing.
779
+ *
780
+ * * **Multi-scenario adaptation**: Supports precise segmentation in complex scenarios (such as hair strands, transparent objects, and fur edges) with an accuracy rate exceeding 95%.
781
+ * #### 2. Intelligent edge optimization
782
+ * * **Detail-level processing**: Performs automatic optimization of edge aliasing and semi-transparent areas (such as smoke and glass) while preserving natural transition effects.
783
+ * #### 3. Multi-format output and background operations
784
+ * * **Transparent background export**: Directly generates PNG images with transparent backgrounds and white backgrounds, suitable for e-commerce, design, and other scenarios.
785
+ *
786
+ * * **Custom background color support**.
787
+ * ## Effect comparison
788
+ * | **Original image (input)** | **Result image (output)** |
789
+ * | --- | --- |
790
+ * | ![主图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) |
791
+ * | ![主图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) |
792
+ * | ![主图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) |.
793
+ *
794
+ * @param request - ImageMattingRequest
795
+ * @returns ImageMattingResponse
796
+ */
797
+ async imageMatting(request: $_model.ImageMattingRequest): Promise<$_model.ImageMattingResponse> {
798
+ let runtime = new $dara.RuntimeOptions({ });
799
+ return await this.imageMattingWithOptions(request, runtime);
800
+ }
801
+
802
+ /**
803
+ * Intelligent element recognition.
804
+ *
805
+ * @remarks
806
+ * ## Product Introduction
807
+ * The Intelligent Element Recognition API is designed specifically for identifying specific elements in e-commerce images. It analyzes image details in depth, helping you quickly identify elements such as text, logos, watermarks, and text-containing color blocks in both the subject and background of images. This greatly improves the efficiency and accuracy of image screening. (Synchronous).
808
+ * ## Scenarios
809
+ * **1. Intelligent image screening and optimization:**
810
+ * Merchants and platforms can use the Intelligent Element Recognition API for image screening to automatically identify images that contain specific elements such as watermarks and logos. After screening, you can call the Intelligent Removal API to optimize these images, improve image quality, and shorten the product release cycle.
811
+ * **2. Automated image processing and efficiency improvement:**
812
+ * With the Intelligent Element Recognition API, merchants and platforms can automate the image processing workflow by automatically identifying and marking image elements that require optimization. This process reduces manual intervention and improves image processing efficiency.
813
+ * ## Features
814
+ * **1. Definitions of image subject, image background, text, logo, watermark, and text-containing color block: For details, refer to the related examples in the removal documentation (reserved text link)**
815
+ * * Image subject: The core product area in the image
816
+ *
817
+ * * Image background: The remaining part of the image other than the product subject
818
+ *
819
+ * * Text: Horizontal, vertical, or diagonal English or Chinese text
820
+ *
821
+ * * Logo: An emblem or trademark
822
+ *
823
+ * * Watermark: Monochrome transparent text, emblems, images, URLs, or store names
824
+ *
825
+ * * Text-containing color block: A color block outside the subject that contains text
826
+ *
827
+ * **2. The main features of the Intelligent Element Recognition API include:**
828
+ * * Element recognition: Identifies whether elements such as text, logos, watermarks, and text-containing color blocks exist in the image subject and background.
829
+ *
830
+ * * Workflow coordination: Works in conjunction with the Intelligent Removal API. First, the Intelligent Element Recognition API identifies elements that need to be removed, and then the Intelligent Removal API effectively removes them, ensuring accuracy and efficiency in image processing.
831
+ * ## Technical advantages
832
+ * * Synchronous batch processing: As a synchronous API, the Intelligent Element Recognition API can process large volumes of images while maintaining fast response times, adapting to business needs of different scales.
833
+ *
834
+ * * Flexibility: You can select the element types to recognize based on your needs, including elements in both the subject and non-subject areas such as watermarks, logos, and text, to meet personalized recognition requirements.
835
+ * ## Comparison
836
+ * | **Original image** | **Recognition result** |
837
+ * | --- | --- |
838
+ * | ![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]
839
+ * * Watermark: false
840
+ *
841
+ * * Logo: false
842
+ *
843
+ * * Text: false
844
+ *
845
+ * * Text-containing color block: false
846
+ *
847
+ * [Non-subject]
848
+ * * Watermark: false
849
+ *
850
+ * * Logo: true
851
+ *
852
+ * * Text: true
853
+ *
854
+ * * Text-containing color block: false |
855
+ * | ![image-1781169602620.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/vBPlN5j4yM2KVOdG/img/6bcbd976-0de1-4b5e-855b-56e20a9c675c.png) | [Subject]
856
+ * * Watermark: false
857
+ *
858
+ * * Logo: false
859
+ *
860
+ * * Text: false
861
+ *
862
+ * * Text-containing color block: false
863
+ *
864
+ * [Non-subject]
865
+ * * Watermark: true
866
+ *
867
+ * * Logo: false
868
+ *
869
+ * * Text: true
870
+ *
871
+ * * Text-containing color block: true |.
872
+ *
873
+ * @param tmpReq - ImageRecognitionRequest
874
+ * @param runtime - runtime options for this request RuntimeOptions
875
+ * @returns ImageRecognitionResponse
876
+ */
877
+ async imageRecognitionWithOptions(tmpReq: $_model.ImageRecognitionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageRecognitionResponse> {
878
+ tmpReq.validate();
879
+ let request = new $_model.ImageRecognitionShrinkRequest({ });
880
+ OpenApiUtil.convert(tmpReq, request);
881
+ if (!$dara.isNull(tmpReq.nonObjectDetectElements)) {
882
+ request.nonObjectDetectElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonObjectDetectElements, "NonObjectDetectElements", "json");
883
+ }
884
+
885
+ if (!$dara.isNull(tmpReq.objectDetectElements)) {
886
+ request.objectDetectElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectDetectElements, "ObjectDetectElements", "json");
887
+ }
888
+
889
+ let query = { };
890
+ if (!$dara.isNull(request.imageUrl)) {
891
+ query["ImageUrl"] = request.imageUrl;
892
+ }
893
+
894
+ if (!$dara.isNull(request.nonObjectDetectElementsShrink)) {
895
+ query["NonObjectDetectElements"] = request.nonObjectDetectElementsShrink;
896
+ }
897
+
898
+ if (!$dara.isNull(request.objectDetectElementsShrink)) {
899
+ query["ObjectDetectElements"] = request.objectDetectElementsShrink;
900
+ }
901
+
902
+ if (!$dara.isNull(request.returnBorderPixel)) {
903
+ query["ReturnBorderPixel"] = request.returnBorderPixel;
904
+ }
905
+
906
+ if (!$dara.isNull(request.returnCharacter)) {
907
+ query["ReturnCharacter"] = request.returnCharacter;
908
+ }
909
+
910
+ if (!$dara.isNull(request.returnCharacterProp)) {
911
+ query["ReturnCharacterProp"] = request.returnCharacterProp;
912
+ }
913
+
914
+ if (!$dara.isNull(request.returnProductNum)) {
915
+ query["ReturnProductNum"] = request.returnProductNum;
916
+ }
917
+
918
+ if (!$dara.isNull(request.returnProductProp)) {
919
+ query["ReturnProductProp"] = request.returnProductProp;
920
+ }
921
+
922
+ let req = new $OpenApiUtil.OpenApiRequest({
923
+ query: OpenApiUtil.query(query),
924
+ });
925
+ let params = new $OpenApiUtil.Params({
926
+ action: "ImageRecognition",
927
+ version: "2026-04-28",
928
+ protocol: "HTTPS",
929
+ pathname: "/",
930
+ method: "POST",
931
+ authType: "AK",
932
+ style: "RPC",
933
+ reqBodyType: "formData",
934
+ bodyType: "json",
935
+ });
936
+ return $dara.cast<$_model.ImageRecognitionResponse>(await this.callApi(params, req, runtime), new $_model.ImageRecognitionResponse({}));
937
+ }
938
+
939
+ /**
940
+ * Intelligent element recognition.
941
+ *
942
+ * @remarks
943
+ * ## Product Introduction
944
+ * The Intelligent Element Recognition API is designed specifically for identifying specific elements in e-commerce images. It analyzes image details in depth, helping you quickly identify elements such as text, logos, watermarks, and text-containing color blocks in both the subject and background of images. This greatly improves the efficiency and accuracy of image screening. (Synchronous).
945
+ * ## Scenarios
946
+ * **1. Intelligent image screening and optimization:**
947
+ * Merchants and platforms can use the Intelligent Element Recognition API for image screening to automatically identify images that contain specific elements such as watermarks and logos. After screening, you can call the Intelligent Removal API to optimize these images, improve image quality, and shorten the product release cycle.
948
+ * **2. Automated image processing and efficiency improvement:**
949
+ * With the Intelligent Element Recognition API, merchants and platforms can automate the image processing workflow by automatically identifying and marking image elements that require optimization. This process reduces manual intervention and improves image processing efficiency.
950
+ * ## Features
951
+ * **1. Definitions of image subject, image background, text, logo, watermark, and text-containing color block: For details, refer to the related examples in the removal documentation (reserved text link)**
952
+ * * Image subject: The core product area in the image
953
+ *
954
+ * * Image background: The remaining part of the image other than the product subject
955
+ *
956
+ * * Text: Horizontal, vertical, or diagonal English or Chinese text
957
+ *
958
+ * * Logo: An emblem or trademark
959
+ *
960
+ * * Watermark: Monochrome transparent text, emblems, images, URLs, or store names
961
+ *
962
+ * * Text-containing color block: A color block outside the subject that contains text
963
+ *
964
+ * **2. The main features of the Intelligent Element Recognition API include:**
965
+ * * Element recognition: Identifies whether elements such as text, logos, watermarks, and text-containing color blocks exist in the image subject and background.
966
+ *
967
+ * * Workflow coordination: Works in conjunction with the Intelligent Removal API. First, the Intelligent Element Recognition API identifies elements that need to be removed, and then the Intelligent Removal API effectively removes them, ensuring accuracy and efficiency in image processing.
968
+ * ## Technical advantages
969
+ * * Synchronous batch processing: As a synchronous API, the Intelligent Element Recognition API can process large volumes of images while maintaining fast response times, adapting to business needs of different scales.
970
+ *
971
+ * * Flexibility: You can select the element types to recognize based on your needs, including elements in both the subject and non-subject areas such as watermarks, logos, and text, to meet personalized recognition requirements.
972
+ * ## Comparison
973
+ * | **Original image** | **Recognition result** |
974
+ * | --- | --- |
975
+ * | ![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]
976
+ * * Watermark: false
977
+ *
978
+ * * Logo: false
979
+ *
980
+ * * Text: false
981
+ *
982
+ * * Text-containing color block: false
983
+ *
984
+ * [Non-subject]
985
+ * * Watermark: false
986
+ *
987
+ * * Logo: true
988
+ *
989
+ * * Text: true
990
+ *
991
+ * * Text-containing color block: false |
992
+ * | ![image-1781169602620.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/vBPlN5j4yM2KVOdG/img/6bcbd976-0de1-4b5e-855b-56e20a9c675c.png) | [Subject]
993
+ * * Watermark: false
994
+ *
995
+ * * Logo: false
996
+ *
997
+ * * Text: false
998
+ *
999
+ * * Text-containing color block: false
1000
+ *
1001
+ * [Non-subject]
1002
+ * * Watermark: true
1003
+ *
1004
+ * * Logo: false
1005
+ *
1006
+ * * Text: true
1007
+ *
1008
+ * * Text-containing color block: true |.
1009
+ *
1010
+ * @param request - ImageRecognitionRequest
1011
+ * @returns ImageRecognitionResponse
1012
+ */
1013
+ async imageRecognition(request: $_model.ImageRecognitionRequest): Promise<$_model.ImageRecognitionResponse> {
1014
+ let runtime = new $dara.RuntimeOptions({ });
1015
+ return await this.imageRecognitionWithOptions(request, runtime);
1016
+ }
1017
+
1018
+ /**
1019
+ * The Intelligent Image Removal product is specially designed for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and blemishes from e-commerce images. You can specify objects to remove from images as needed, enabling efficient and accurate batch processing of large volumes of images and simplifying the image editing workflow. (Synchronous)
1020
+ *
1021
+ * @remarks
1022
+ * ## Product Overview
1023
+ * The Intelligent Image Removal product is specially designed for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and blemishes from e-commerce images. You can specify objects to remove from images as needed, enabling efficient and accurate batch processing of large volumes of images and simplifying the image editing workflow. (Synchronous)
1024
+ * ## Use Cases
1025
+ * * **Efficient E-commerce Image Processing:**
1026
+ *
1027
+ * Remove irrelevant visual elements to provide a cleaner, more focused product display and enhance the customer shopping experience.
1028
+ * * **Multi-platform Product Information Synchronization:**
1029
+ *
1030
+ * When merchants simultaneously list products across different e-commerce platforms, they can quickly remove specific text and blemishes to comply with different platform image specifications.
1031
+ * * **Marketing Material Preparation:**
1032
+ *
1033
+ * Merchants can easily remove existing promotional information and quickly update it with the latest campaign details.
1034
+ * > Note: Merchants or platforms can batch remove impurities from images to optimize image quality. We recommend using this in combination with the "Intelligent Recognition API" (coming soon). First, filter out images containing text, specific names, transparent text blocks, and blemishes, then use the "Intelligent Removal API" to batch remove them. 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 recognitions."
1035
+ * ## Feature Introduction
1036
+ * 1. First, clarify the definitions of image subject and image background. In actual use, when specifying removal targets, 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 requirements.
1037
+ *
1038
+ * 1. Image subject: The core product area in the image
1039
+ *
1040
+ * 2. Image background: The remaining portion of the image apart from the product subject
1041
+ *
1042
+ * 2. Second, the removal targets support the following four types: text, specific names, transparent text blocks, and blemishes. You can use the following examples to clarify your usage requirements and perform targeted operations:
1043
+ *
1044
+ * ## Effect Comparison
1045
+ * | **Removable Objects in Images** | **Original Image** | **Image After Removal** |
1046
+ * | --- | --- | --- |
1047
+ * | Text | * Involving the image subject area
1048
+ *
1049
+ * ![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)
1050
+ *
1051
+ * * Not involving the image subject area
1052
+ *
1053
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involving the image subject area
1054
+ *
1055
+ * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
1056
+ * * Not involving the image subject area
1057
+ *
1058
+ * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
1059
+ * | Specific Names | * Involving the image subject area
1060
+ *
1061
+ * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
1062
+ *
1063
+ * * Not involving the image subject area
1064
+ *
1065
+ * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involving the image subject area
1066
+ *
1067
+ * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
1068
+ * * Not involving the image subject area
1069
+ *
1070
+ * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
1071
+ * | Transparent Text Blocks | * Involving the image subject area
1072
+ *
1073
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
1074
+ *
1075
+ * * Not involving the image subject area
1076
+ *
1077
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involving the image subject area
1078
+ *
1079
+ * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
1080
+ * * Not involving the image subject area
1081
+ *
1082
+ * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
1083
+ * | Blemishes | * Involving the image subject area
1084
+ *
1085
+ * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
1086
+ *
1087
+ * * Not involving the image subject area
1088
+ *
1089
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involving the image subject area
1090
+ *
1091
+ * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
1092
+ * * Not involving the image subject area
1093
+ *
1094
+ * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
1095
+ *
1096
+ * @param tmpReq - ImageRemoveRequest
1097
+ * @param runtime - runtime options for this request RuntimeOptions
1098
+ * @returns ImageRemoveResponse
1099
+ */
1100
+ async imageRemoveWithOptions(tmpReq: $_model.ImageRemoveRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageRemoveResponse> {
1101
+ tmpReq.validate();
1102
+ let request = new $_model.ImageRemoveShrinkRequest({ });
1103
+ OpenApiUtil.convert(tmpReq, request);
1104
+ if (!$dara.isNull(tmpReq.nonObjectRemoveElements)) {
1105
+ request.nonObjectRemoveElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonObjectRemoveElements, "NonObjectRemoveElements", "json");
1106
+ }
1107
+
1108
+ if (!$dara.isNull(tmpReq.objectRemoveElements)) {
1109
+ request.objectRemoveElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectRemoveElements, "ObjectRemoveElements", "json");
1110
+ }
1111
+
1112
+ let query = { };
1113
+ if (!$dara.isNull(request.imageUrl)) {
1114
+ query["ImageUrl"] = request.imageUrl;
1115
+ }
1116
+
1117
+ if (!$dara.isNull(request.mask)) {
1118
+ query["Mask"] = request.mask;
1119
+ }
1120
+
1121
+ if (!$dara.isNull(request.nonObjectRemoveElementsShrink)) {
1122
+ query["NonObjectRemoveElements"] = request.nonObjectRemoveElementsShrink;
1123
+ }
1124
+
1125
+ if (!$dara.isNull(request.objectRemoveElementsShrink)) {
1126
+ query["ObjectRemoveElements"] = request.objectRemoveElementsShrink;
1127
+ }
1128
+
1129
+ let req = new $OpenApiUtil.OpenApiRequest({
1130
+ query: OpenApiUtil.query(query),
1131
+ });
1132
+ let params = new $OpenApiUtil.Params({
1133
+ action: "ImageRemove",
1134
+ version: "2026-04-28",
1135
+ protocol: "HTTPS",
1136
+ pathname: "/",
1137
+ method: "POST",
1138
+ authType: "AK",
1139
+ style: "RPC",
1140
+ reqBodyType: "formData",
1141
+ bodyType: "json",
1142
+ });
1143
+ return $dara.cast<$_model.ImageRemoveResponse>(await this.callApi(params, req, runtime), new $_model.ImageRemoveResponse({}));
1144
+ }
1145
+
1146
+ /**
1147
+ * The Intelligent Image Removal product is specially designed for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and blemishes from e-commerce images. You can specify objects to remove from images as needed, enabling efficient and accurate batch processing of large volumes of images and simplifying the image editing workflow. (Synchronous)
1148
+ *
1149
+ * @remarks
1150
+ * ## Product Overview
1151
+ * The Intelligent Image Removal product is specially designed for e-commerce images. It automatically identifies and removes text, specific names, transparent text blocks, and blemishes from e-commerce images. You can specify objects to remove from images as needed, enabling efficient and accurate batch processing of large volumes of images and simplifying the image editing workflow. (Synchronous)
1152
+ * ## Use Cases
1153
+ * * **Efficient E-commerce Image Processing:**
1154
+ *
1155
+ * Remove irrelevant visual elements to provide a cleaner, more focused product display and enhance the customer shopping experience.
1156
+ * * **Multi-platform Product Information Synchronization:**
1157
+ *
1158
+ * When merchants simultaneously list products across different e-commerce platforms, they can quickly remove specific text and blemishes to comply with different platform image specifications.
1159
+ * * **Marketing Material Preparation:**
1160
+ *
1161
+ * Merchants can easily remove existing promotional information and quickly update it with the latest campaign details.
1162
+ * > Note: Merchants or platforms can batch remove impurities from images to optimize image quality. We recommend using this in combination with the "Intelligent Recognition API" (coming soon). First, filter out images containing text, specific names, transparent text blocks, and blemishes, then use the "Intelligent Removal API" to batch remove them. 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 recognitions."
1163
+ * ## Feature Introduction
1164
+ * 1. First, clarify the definitions of image subject and image background. In actual use, when specifying removal targets, 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 requirements.
1165
+ *
1166
+ * 1. Image subject: The core product area in the image
1167
+ *
1168
+ * 2. Image background: The remaining portion of the image apart from the product subject
1169
+ *
1170
+ * 2. Second, the removal targets support the following four types: text, specific names, transparent text blocks, and blemishes. You can use the following examples to clarify your usage requirements and perform targeted operations:
1171
+ *
1172
+ * ## Effect Comparison
1173
+ * | **Removable Objects in Images** | **Original Image** | **Image After Removal** |
1174
+ * | --- | --- | --- |
1175
+ * | Text | * Involving the image subject area
1176
+ *
1177
+ * ![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)
1178
+ *
1179
+ * * Not involving the image subject area
1180
+ *
1181
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/47428227-7523-432e-89ce-eba263e5ebda.png) | * Involving the image subject area
1182
+ *
1183
+ * ![359ddfcf-a2b1-4e59-ae54-5e76705d0adf.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/d69e38e4-5657-471d-aff6-1e6a4c269455.png)
1184
+ * * Not involving the image subject area
1185
+ *
1186
+ * ![c35611f8-dab4-4df2-8942-36d7375ed55f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/365024b4-4863-46d4-9013-bdd9408ea6b9.png) |
1187
+ * | Specific Names | * Involving the image subject area
1188
+ *
1189
+ * ![done-image-aca80515-aca6-4f4e-9429-47c5dd6b811f.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/ac35f8bc-d527-49de-8fba-cdeb71e3b058.png)
1190
+ *
1191
+ * * Not involving the image subject area
1192
+ *
1193
+ * ![done-image-29a89f03-964a-455e-968c-7c8d5282ebbb.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/2db445c8-6bdd-424e-b6a7-2ddb46e6786d.png) | * Involving the image subject area
1194
+ *
1195
+ * ![fd2db0ab-1b89-4085-b91d-99f40a1aea77.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/36ace8aa-3b3b-4b1c-81e6-b691104262f0.png)
1196
+ * * Not involving the image subject area
1197
+ *
1198
+ * ![8726b148-ab74-4409-a6c1-4c50fcac3887.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/a7653a0c-d14e-4f97-9c2f-83327b43203f.png) |
1199
+ * | Transparent Text Blocks | * Involving the image subject area
1200
+ *
1201
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0f6068f0-168a-47bd-9fcd-c38b9e520506.png)
1202
+ *
1203
+ * * Not involving the image subject area
1204
+ *
1205
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/c9ac2a4c-0aa3-40ee-8855-62a262364dbe.png) | * Involving the image subject area
1206
+ *
1207
+ * ![8e84a5d6-da8c-4e3e-a705-71a66d0c78a2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/06ac537f-875a-48e2-8934-a84a79dfd8ff.jpeg)
1208
+ * * Not involving the image subject area
1209
+ *
1210
+ * ![b05173e7-2ae5-494e-99d2-7111fc966fd5.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/05759aef-1720-41cd-8800-f7d0801e4d95.jpeg) |
1211
+ * | Blemishes | * Involving the image subject area
1212
+ *
1213
+ * ![2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/bf1442f8-a9fa-40d3-bcb0-7a8a41b49b5d.jpeg)
1214
+ *
1215
+ * * Not involving the image subject area
1216
+ *
1217
+ * ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/0d68612e-845d-466f-8a4a-b85facea095b.png) | * Involving the image subject area
1218
+ *
1219
+ * ![b6ef803f-743f-4e61-b901-d1f68167186f.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/621daadc-454f-41b4-9ac4-752d457034b6.jpeg)
1220
+ * * Not involving the image subject area
1221
+ *
1222
+ * ![dee0c7cf-8b0d-4d6d-9677-d5f2e6099834.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/Mp7ld7bZAb2VAOBQ/img/caa6994b-2f97-484d-a807-671a0dc75947.jpeg) |
1223
+ *
1224
+ * @param request - ImageRemoveRequest
1225
+ * @returns ImageRemoveResponse
1226
+ */
1227
+ async imageRemove(request: $_model.ImageRemoveRequest): Promise<$_model.ImageRemoveResponse> {
1228
+ let runtime = new $dara.RuntimeOptions({ });
1229
+ return await this.imageRemoveWithOptions(request, runtime);
1230
+ }
1231
+
1232
+ /**
1233
+ * Image Translation Pro is designed specifically 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 100 language directions are supported, including bridged translations.
1234
+ *
1235
+ * @remarks
1236
+ * ## Product Introduction
1237
+ * Image Translation Pro is designed specifically 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 100 language directions are supported, including bridged translations.
1238
+ * ## Scenarios
1239
+ * E-commerce product images, marketing images, and images for various other scenarios.
1240
+ * ## Features
1241
+ * - **Product subject information protection**: Specify whether to translate text on the product subject. This helps protect subject information such as embedded product names from being translated.
1242
+ * - **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 is not yet available. Follow platform notifications for updates.
1243
+ * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1244
+ * - **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. Pass the corresponding intervention glossary ID when calling the API to meet translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
1245
+ *
1246
+ * @param request - ImageTranslationProRequest
1247
+ * @param runtime - runtime options for this request RuntimeOptions
1248
+ * @returns ImageTranslationProResponse
1249
+ */
1250
+ async imageTranslationProWithOptions(request: $_model.ImageTranslationProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationProResponse> {
1251
+ request.validate();
1252
+ let body : {[key: string ]: any} = { };
1253
+ if (!$dara.isNull(request.glossary)) {
1254
+ body["Glossary"] = request.glossary;
1255
+ }
1256
+
1257
+ if (!$dara.isNull(request.imageUrl)) {
1258
+ body["ImageUrl"] = request.imageUrl;
1259
+ }
1260
+
1261
+ if (!$dara.isNull(request.includingProductArea)) {
1262
+ body["IncludingProductArea"] = request.includingProductArea;
1263
+ }
1264
+
1265
+ if (!$dara.isNull(request.sourceLanguage)) {
1266
+ body["SourceLanguage"] = request.sourceLanguage;
1267
+ }
1268
+
1269
+ if (!$dara.isNull(request.targetLanguage)) {
1270
+ body["TargetLanguage"] = request.targetLanguage;
1271
+ }
1272
+
1273
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
1274
+ body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
1275
+ }
1276
+
1277
+ if (!$dara.isNull(request.useImageEditor)) {
1278
+ body["UseImageEditor"] = request.useImageEditor;
1279
+ }
1280
+
1281
+ if (!$dara.isNull(request.callType)) {
1282
+ body["callType"] = request.callType;
1283
+ }
1284
+
1285
+ let req = new $OpenApiUtil.OpenApiRequest({
1286
+ body: OpenApiUtil.parseToMap(body),
1287
+ });
1288
+ let params = new $OpenApiUtil.Params({
1289
+ action: "ImageTranslationPro",
1290
+ version: "2026-04-28",
1291
+ protocol: "HTTPS",
1292
+ pathname: "/",
1293
+ method: "POST",
1294
+ authType: "AK",
1295
+ style: "RPC",
1296
+ reqBodyType: "formData",
1297
+ bodyType: "json",
1298
+ });
1299
+ return $dara.cast<$_model.ImageTranslationProResponse>(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
1300
+ }
1301
+
1302
+ /**
1303
+ * Image Translation Pro is designed specifically 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 100 language directions are supported, including bridged translations.
1304
+ *
1305
+ * @remarks
1306
+ * ## Product Introduction
1307
+ * Image Translation Pro is designed specifically 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 100 language directions are supported, including bridged translations.
1308
+ * ## Scenarios
1309
+ * E-commerce product images, marketing images, and images for various other scenarios.
1310
+ * ## Features
1311
+ * - **Product subject information protection**: Specify whether to translate text on the product subject. This helps protect subject information such as embedded product names from being translated.
1312
+ * - **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 is not yet available. Follow platform notifications for updates.
1313
+ * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1314
+ * - **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. Pass the corresponding intervention glossary ID when calling the API to meet translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
1315
+ *
1316
+ * @param request - ImageTranslationProRequest
1317
+ * @returns ImageTranslationProResponse
1318
+ */
1319
+ async imageTranslationPro(request: $_model.ImageTranslationProRequest): Promise<$_model.ImageTranslationProResponse> {
1320
+ let runtime = new $dara.RuntimeOptions({ });
1321
+ return await this.imageTranslationProWithOptions(request, runtime);
1322
+ }
1323
+
1324
+ /**
1325
+ * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions, 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.
1326
+ *
1327
+ * @remarks
1328
+ * ## Product Introduction
1329
+ * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions, 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.
1330
+ * ## Common scenarios
1331
+ * E-commerce product images, marketing images, and images for various other scenarios.
1332
+ * ## Functions and features
1333
+ * - **Product subject information protection**: You can choose whether to translate text on the product subject. This helps protect subject information from being translated, such as embedded information like product names.
1334
+ * - **Brand name protection**: You can choose whether to translate brand names on images. This helps protect brand name information from being translated.
1335
+ * - **Translation intervention support**: 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 to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1336
+ *
1337
+ * @param request - ImageTranslationStandardRequest
1338
+ * @param runtime - runtime options for this request RuntimeOptions
1339
+ * @returns ImageTranslationStandardResponse
1340
+ */
1341
+ async imageTranslationStandardWithOptions(request: $_model.ImageTranslationStandardRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationStandardResponse> {
1342
+ request.validate();
1343
+ let query = { };
1344
+ if (!$dara.isNull(request.glossary)) {
1345
+ query["Glossary"] = request.glossary;
1346
+ }
1347
+
1348
+ if (!$dara.isNull(request.imageUrl)) {
1349
+ query["ImageUrl"] = request.imageUrl;
1350
+ }
1351
+
1352
+ if (!$dara.isNull(request.includingProductArea)) {
1353
+ query["IncludingProductArea"] = request.includingProductArea;
1354
+ }
1355
+
1356
+ if (!$dara.isNull(request.sourceLanguage)) {
1357
+ query["SourceLanguage"] = request.sourceLanguage;
1358
+ }
1359
+
1360
+ if (!$dara.isNull(request.targetLanguage)) {
1361
+ query["TargetLanguage"] = request.targetLanguage;
1362
+ }
1363
+
1364
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
1365
+ query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
1366
+ }
1367
+
1368
+ let req = new $OpenApiUtil.OpenApiRequest({
1369
+ query: OpenApiUtil.query(query),
1370
+ });
1371
+ let params = new $OpenApiUtil.Params({
1372
+ action: "ImageTranslationStandard",
1373
+ version: "2026-04-28",
1374
+ protocol: "HTTPS",
1375
+ pathname: "/",
1376
+ method: "POST",
1377
+ authType: "AK",
1378
+ style: "RPC",
1379
+ reqBodyType: "formData",
1380
+ bodyType: "json",
1381
+ });
1382
+ return $dara.cast<$_model.ImageTranslationStandardResponse>(await this.callApi(params, req, runtime), new $_model.ImageTranslationStandardResponse({}));
1383
+ }
1384
+
1385
+ /**
1386
+ * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions, 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.
1387
+ *
1388
+ * @remarks
1389
+ * ## Product Introduction
1390
+ * Image Translation is designed specifically for e-commerce images. It supports more than 100 language directions, 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.
1391
+ * ## Common scenarios
1392
+ * E-commerce product images, marketing images, and images for various other scenarios.
1393
+ * ## Functions and features
1394
+ * - **Product subject information protection**: You can choose whether to translate text on the product subject. This helps protect subject information from being translated, such as embedded information like product names.
1395
+ * - **Brand name protection**: You can choose whether to translate brand names on images. This helps protect brand name information from being translated.
1396
+ * - **Translation intervention support**: 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 to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1397
+ *
1398
+ * @param request - ImageTranslationStandardRequest
1399
+ * @returns ImageTranslationStandardResponse
1400
+ */
1401
+ async imageTranslationStandard(request: $_model.ImageTranslationStandardRequest): Promise<$_model.ImageTranslationStandardResponse> {
1402
+ let runtime = new $dara.RuntimeOptions({ });
1403
+ return await this.imageTranslationStandardWithOptions(request, runtime);
1404
+ }
1405
+
1406
+ /**
1407
+ * Supports automatic language detection for 24 languages. Applicable to short text such as search queries, titles, and conversations.
1408
+ *
1409
+ * @remarks
1410
+ * ## Product Introduction
1411
+ * Supports automatic language detection for 24 languages. Applicable to short text such as search queries, titles, and conversations.
1412
+ *
1413
+ * @param request - LanguageDetectRequest
1414
+ * @param runtime - runtime options for this request RuntimeOptions
1415
+ * @returns LanguageDetectResponse
1416
+ */
1417
+ async languageDetectWithOptions(request: $_model.LanguageDetectRequest, runtime: $dara.RuntimeOptions): Promise<$_model.LanguageDetectResponse> {
1418
+ request.validate();
1419
+ let query = { };
1420
+ if (!$dara.isNull(request.sourceText)) {
1421
+ query["SourceText"] = request.sourceText;
1422
+ }
1423
+
1424
+ let req = new $OpenApiUtil.OpenApiRequest({
1425
+ query: OpenApiUtil.query(query),
1426
+ });
1427
+ let params = new $OpenApiUtil.Params({
1428
+ action: "LanguageDetect",
1429
+ version: "2026-04-28",
1430
+ protocol: "HTTPS",
1431
+ pathname: "/",
1432
+ method: "POST",
1433
+ authType: "AK",
1434
+ style: "RPC",
1435
+ reqBodyType: "formData",
1436
+ bodyType: "json",
1437
+ });
1438
+ return $dara.cast<$_model.LanguageDetectResponse>(await this.callApi(params, req, runtime), new $_model.LanguageDetectResponse({}));
1439
+ }
1440
+
1441
+ /**
1442
+ * Supports automatic language detection for 24 languages. Applicable to short text such as search queries, titles, and conversations.
1443
+ *
1444
+ * @remarks
1445
+ * ## Product Introduction
1446
+ * Supports automatic language detection for 24 languages. Applicable to short text such as search queries, titles, and conversations.
1447
+ *
1448
+ * @param request - LanguageDetectRequest
1449
+ * @returns LanguageDetectResponse
1450
+ */
1451
+ async languageDetect(request: $_model.LanguageDetectRequest): Promise<$_model.LanguageDetectResponse> {
1452
+ let runtime = new $dara.RuntimeOptions({ });
1453
+ return await this.languageDetectWithOptions(request, runtime);
1454
+ }
1455
+
1456
+ /**
1457
+ * An intelligent logistics parcel auditing product built on the synergy of Multimodal Large Language Models (MLLM) and specialized vision algorithms, designed for automated compliance review in the "piece-weight-dimension" stage of e-commerce logistics. The product performs structured auditing across multiple dimensions including bounding box validity, bounding box fit accuracy, and foreign object interference on parcels placed on scanning platforms. It supports different hardware acquisition scenarios such as white background boards and green background boards, and outputs Boolean audit conclusions with Chinese reason descriptions that can be directly integrated into business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
1458
+ *
1459
+ * @remarks
1460
+ * ## Product Introduction
1461
+ * An intelligent logistics parcel auditing product built on the synergy of Multimodal Large Language Models (MLLM) and specialized vision algorithms, designed for automated compliance review in the "piece-weight-dimension" stage of e-commerce logistics. The product performs structured auditing across multiple dimensions including **bounding box validity, bounding box fit accuracy, and foreign object interference** on parcels placed on scanning platforms. It supports different hardware acquisition scenarios such as white background boards and green background boards, and outputs Boolean audit conclusions with Chinese reason descriptions that can be directly integrated into business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
1462
+ * ## Applicable Scenarios
1463
+ * 1. **Parcel Bounding Box Audit**: Automatically determines whether the operator\\"s manual bounding box constitutes the "minimum valid bounding rectangle" for the parcel, identifying typical issues such as oversized or undersized bounding boxes.
1464
+ * 2. **Foreign Object Interference Detection**: Automatically identifies whether non-target objects such as fingers, keyboards, or auxiliary tools have entered the scanning area.
1465
+ * 3. **Multi-Acquisition Environment Adaptation**: A single API can handle two common acquisition modes — white background board (blue box) and green background board (blue box + red box) — without requiring the caller to distinguish between scenarios.
1466
+ * 4. **Inbound Quality Inspection Pipeline**: Used for automated review in the piece-weight-dimension stage of the logistics warehouse new product inbound SOP, replacing or assisting manual outsourced auditing.
1467
+ * Additionally, the product can also be used for general image "box-subject" relationship audit scenarios, such as product photography material review and document scanning quality verification.
1468
+ * ## Feature Introduction
1469
+ * 1. **Multi-Scenario Intelligent Routing**: The product has a built-in scenario classification capability that can automatically identify the background type (white/green) and bounding box type (none/single box/double box) in the image, and route the request to the corresponding audit sub-process. The caller only needs to provide the image URL without manually specifying the scenario.
1470
+ * 2. **MLLM + Specialized CV Model Synergy**: Multimodal large language models are used for semantic-level scene understanding and foreign object recognition, while specialized parcel segmentation and IoU evaluation models are used for pixel-level bounding box fit quantification, ensuring accuracy while controlling inference latency and cost.
1471
+ * 3. **Structured Audit Conclusions**: The output is uniformly structured as `result` (Boolean) + `info` (Chinese reason). Supported reason types include "Audit passed", "Audit not passed: bounding box too large", "Audit not passed: bounding box too small", "Audit not passed: foreign object present", etc., facilitating direct integration with downstream business systems.
1472
+ * 4. **Supported Input Formats**: Currently supports publicly accessible image URLs.
1473
+ *
1474
+ * @param request - PackageWeightSizeCheckRequest
1475
+ * @param runtime - runtime options for this request RuntimeOptions
1476
+ * @returns PackageWeightSizeCheckResponse
1477
+ */
1478
+ async packageWeightSizeCheckWithOptions(request: $_model.PackageWeightSizeCheckRequest, runtime: $dara.RuntimeOptions): Promise<$_model.PackageWeightSizeCheckResponse> {
1479
+ request.validate();
1480
+ let query = { };
1481
+ if (!$dara.isNull(request.annotatedImageUrl)) {
1482
+ query["AnnotatedImageUrl"] = request.annotatedImageUrl;
1483
+ }
1484
+
1485
+ if (!$dara.isNull(request.rawImageUrl)) {
1486
+ query["RawImageUrl"] = request.rawImageUrl;
1487
+ }
1488
+
1489
+ let req = new $OpenApiUtil.OpenApiRequest({
1490
+ query: OpenApiUtil.query(query),
1491
+ });
1492
+ let params = new $OpenApiUtil.Params({
1493
+ action: "PackageWeightSizeCheck",
1494
+ version: "2026-04-28",
1495
+ protocol: "HTTPS",
1496
+ pathname: "/",
1497
+ method: "POST",
1498
+ authType: "AK",
1499
+ style: "RPC",
1500
+ reqBodyType: "formData",
1501
+ bodyType: "json",
1502
+ });
1503
+ return $dara.cast<$_model.PackageWeightSizeCheckResponse>(await this.callApi(params, req, runtime), new $_model.PackageWeightSizeCheckResponse({}));
1504
+ }
1505
+
1506
+ /**
1507
+ * An intelligent logistics parcel auditing product built on the synergy of Multimodal Large Language Models (MLLM) and specialized vision algorithms, designed for automated compliance review in the "piece-weight-dimension" stage of e-commerce logistics. The product performs structured auditing across multiple dimensions including bounding box validity, bounding box fit accuracy, and foreign object interference on parcels placed on scanning platforms. It supports different hardware acquisition scenarios such as white background boards and green background boards, and outputs Boolean audit conclusions with Chinese reason descriptions that can be directly integrated into business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
1508
+ *
1509
+ * @remarks
1510
+ * ## Product Introduction
1511
+ * An intelligent logistics parcel auditing product built on the synergy of Multimodal Large Language Models (MLLM) and specialized vision algorithms, designed for automated compliance review in the "piece-weight-dimension" stage of e-commerce logistics. The product performs structured auditing across multiple dimensions including **bounding box validity, bounding box fit accuracy, and foreign object interference** on parcels placed on scanning platforms. It supports different hardware acquisition scenarios such as white background boards and green background boards, and outputs Boolean audit conclusions with Chinese reason descriptions that can be directly integrated into business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
1512
+ * ## Applicable Scenarios
1513
+ * 1. **Parcel Bounding Box Audit**: Automatically determines whether the operator\\"s manual bounding box constitutes the "minimum valid bounding rectangle" for the parcel, identifying typical issues such as oversized or undersized bounding boxes.
1514
+ * 2. **Foreign Object Interference Detection**: Automatically identifies whether non-target objects such as fingers, keyboards, or auxiliary tools have entered the scanning area.
1515
+ * 3. **Multi-Acquisition Environment Adaptation**: A single API can handle two common acquisition modes — white background board (blue box) and green background board (blue box + red box) — without requiring the caller to distinguish between scenarios.
1516
+ * 4. **Inbound Quality Inspection Pipeline**: Used for automated review in the piece-weight-dimension stage of the logistics warehouse new product inbound SOP, replacing or assisting manual outsourced auditing.
1517
+ * Additionally, the product can also be used for general image "box-subject" relationship audit scenarios, such as product photography material review and document scanning quality verification.
1518
+ * ## Feature Introduction
1519
+ * 1. **Multi-Scenario Intelligent Routing**: The product has a built-in scenario classification capability that can automatically identify the background type (white/green) and bounding box type (none/single box/double box) in the image, and route the request to the corresponding audit sub-process. The caller only needs to provide the image URL without manually specifying the scenario.
1520
+ * 2. **MLLM + Specialized CV Model Synergy**: Multimodal large language models are used for semantic-level scene understanding and foreign object recognition, while specialized parcel segmentation and IoU evaluation models are used for pixel-level bounding box fit quantification, ensuring accuracy while controlling inference latency and cost.
1521
+ * 3. **Structured Audit Conclusions**: The output is uniformly structured as `result` (Boolean) + `info` (Chinese reason). Supported reason types include "Audit passed", "Audit not passed: bounding box too large", "Audit not passed: bounding box too small", "Audit not passed: foreign object present", etc., facilitating direct integration with downstream business systems.
1522
+ * 4. **Supported Input Formats**: Currently supports publicly accessible image URLs.
1523
+ *
1524
+ * @param request - PackageWeightSizeCheckRequest
1525
+ * @returns PackageWeightSizeCheckResponse
1526
+ */
1527
+ async packageWeightSizeCheck(request: $_model.PackageWeightSizeCheckRequest): Promise<$_model.PackageWeightSizeCheckResponse> {
1528
+ let runtime = new $dara.RuntimeOptions({ });
1529
+ return await this.packageWeightSizeCheckWithOptions(request, runtime);
1530
+ }
1531
+
1532
+ /**
1533
+ * API name on the POP gateway: QueryAsyncTaskResult.
1534
+ *
1535
+ * @remarks
1536
+ * API name on the POP gateway: QueryAsyncTaskResult.
1537
+ *
1538
+ * @param request - QueryAsyncTaskResultRequest
1539
+ * @param runtime - runtime options for this request RuntimeOptions
1540
+ * @returns QueryAsyncTaskResultResponse
1541
+ */
1542
+ async queryAsyncTaskResultWithOptions(request: $_model.QueryAsyncTaskResultRequest, runtime: $dara.RuntimeOptions): Promise<$_model.QueryAsyncTaskResultResponse> {
1543
+ request.validate();
1544
+ let query = { };
1545
+ if (!$dara.isNull(request.taskId)) {
1546
+ query["TaskId"] = request.taskId;
1547
+ }
1548
+
1549
+ let req = new $OpenApiUtil.OpenApiRequest({
1550
+ query: OpenApiUtil.query(query),
1551
+ });
1552
+ let params = new $OpenApiUtil.Params({
1553
+ action: "QueryAsyncTaskResult",
1554
+ version: "2026-04-28",
1555
+ protocol: "HTTPS",
1556
+ pathname: "/",
1557
+ method: "POST",
1558
+ authType: "AK",
1559
+ style: "RPC",
1560
+ reqBodyType: "formData",
1561
+ bodyType: "json",
1562
+ });
1563
+ return $dara.cast<$_model.QueryAsyncTaskResultResponse>(await this.callApi(params, req, runtime), new $_model.QueryAsyncTaskResultResponse({}));
1564
+ }
1565
+
1566
+ /**
1567
+ * API name on the POP gateway: QueryAsyncTaskResult.
1568
+ *
1569
+ * @remarks
1570
+ * API name on the POP gateway: QueryAsyncTaskResult.
1571
+ *
1572
+ * @param request - QueryAsyncTaskResultRequest
1573
+ * @returns QueryAsyncTaskResultResponse
1574
+ */
1575
+ async queryAsyncTaskResult(request: $_model.QueryAsyncTaskResultRequest): Promise<$_model.QueryAsyncTaskResultResponse> {
1576
+ let runtime = new $dara.RuntimeOptions({ });
1577
+ return await this.queryAsyncTaskResultWithOptions(request, runtime);
1578
+ }
1579
+
1580
+ /**
1581
+ * Detects whether an image contains a size chart. (Synchronous).
1582
+ *
1583
+ * @remarks
1584
+ * # 1. Product Introduction
1585
+ * Detects whether an image contains a size chart. (Synchronous).
1586
+ * # 2. Common scenarios
1587
+ * **Batch processing scenarios:** Detect images that contain size charts from a batch of images for further translation or extraction. The size chart detection service helps reduce costs.
1588
+ * # 3. Functions and features
1589
+ * The size chart detection service uses image recognition technology to automatically determine whether an input image contains a size chart. You provide an image URL, and the system returns a detection result (True/False) indicating whether the image is a size chart.
1590
+ * You can customize the confidence threshold (default: 0.4) and flexibly adjust the detection sensitivity based on your business accuracy requirements. A lower threshold results in more lenient detection, while a higher threshold results in stricter detection. The API processes a single image per request and is suitable for integration into automated batch workflows for sequential invocation.
1591
+ * # 4. Effect comparison
1592
+ * | **Input image** | **Confidence** | **Output result** |
1593
+ * | --- | --- | --- |
1594
+ * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4jKqm0bAebrKLnw1/img/0a914347-2acb-4b94-bf07-86aab2b31279.png) | 0.4 | true |
1595
+ * | ![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 |.
1596
+ *
1597
+ * @param request - SizeChartDetectRequest
1598
+ * @param runtime - runtime options for this request RuntimeOptions
1599
+ * @returns SizeChartDetectResponse
1600
+ */
1601
+ async sizeChartDetectWithOptions(request: $_model.SizeChartDetectRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SizeChartDetectResponse> {
1602
+ request.validate();
1603
+ let query = { };
1604
+ if (!$dara.isNull(request.imageUrl)) {
1605
+ query["ImageUrl"] = request.imageUrl;
1606
+ }
1607
+
1608
+ if (!$dara.isNull(request.threshold)) {
1609
+ query["Threshold"] = request.threshold;
1610
+ }
1611
+
1612
+ let req = new $OpenApiUtil.OpenApiRequest({
1613
+ query: OpenApiUtil.query(query),
1614
+ });
1615
+ let params = new $OpenApiUtil.Params({
1616
+ action: "SizeChartDetect",
1617
+ version: "2026-04-28",
1618
+ protocol: "HTTPS",
1619
+ pathname: "/",
1620
+ method: "POST",
1621
+ authType: "AK",
1622
+ style: "RPC",
1623
+ reqBodyType: "formData",
1624
+ bodyType: "json",
1625
+ });
1626
+ return $dara.cast<$_model.SizeChartDetectResponse>(await this.callApi(params, req, runtime), new $_model.SizeChartDetectResponse({}));
1627
+ }
1628
+
1629
+ /**
1630
+ * Detects whether an image contains a size chart. (Synchronous).
1631
+ *
1632
+ * @remarks
1633
+ * # 1. Product Introduction
1634
+ * Detects whether an image contains a size chart. (Synchronous).
1635
+ * # 2. Common scenarios
1636
+ * **Batch processing scenarios:** Detect images that contain size charts from a batch of images for further translation or extraction. The size chart detection service helps reduce costs.
1637
+ * # 3. Functions and features
1638
+ * The size chart detection service uses image recognition technology to automatically determine whether an input image contains a size chart. You provide an image URL, and the system returns a detection result (True/False) indicating whether the image is a size chart.
1639
+ * You can customize the confidence threshold (default: 0.4) and flexibly adjust the detection sensitivity based on your business accuracy requirements. A lower threshold results in more lenient detection, while a higher threshold results in stricter detection. The API processes a single image per request and is suitable for integration into automated batch workflows for sequential invocation.
1640
+ * # 4. Effect comparison
1641
+ * | **Input image** | **Confidence** | **Output result** |
1642
+ * | --- | --- | --- |
1643
+ * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4jKqm0bAebrKLnw1/img/0a914347-2acb-4b94-bf07-86aab2b31279.png) | 0.4 | true |
1644
+ * | ![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 |.
1645
+ *
1646
+ * @param request - SizeChartDetectRequest
1647
+ * @returns SizeChartDetectResponse
1648
+ */
1649
+ async sizeChartDetect(request: $_model.SizeChartDetectRequest): Promise<$_model.SizeChartDetectResponse> {
1650
+ let runtime = new $dara.RuntimeOptions({ });
1651
+ return await this.sizeChartDetectWithOptions(request, runtime);
1652
+ }
1653
+
1654
+ /**
1655
+ * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous).
1656
+ *
1657
+ * @remarks
1658
+ * ## Product Introduction
1659
+ * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous).
1660
+ * ## Common scenarios
1661
+ * * Size charts: Extracts size charts from apparel categories into text.
1662
+ *
1663
+ * * Package weight/dimensions: Extracts package weight and dimension information from images.
1664
+ * ## Functions and features
1665
+ * 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.
1666
+ * Core capabilities: 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 calls.
1667
+ * ## Comparison
1668
+ * | **Input image** | **Output result** |
1669
+ * | --- | --- |
1670
+ * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4jKqm0bAebrKLnw1/img/0a914347-2acb-4b94-bf07-86aab2b31279.png) | {
1671
+ * "SizeChart": [
1672
+ * {
1673
+ * "尺码": {
1674
+ * "value": "S"
1675
+ * },
1676
+ * "腰围": {
1677
+ * "unit": "CM",
1678
+ * "value": 58
1679
+ * },
1680
+ * "裙长": {
1681
+ * "unit": "CM",
1682
+ * "value": 81
1683
+ * },
1684
+ * "体重建议": {
1685
+ * "unit": "kg",
1686
+ * "lower_value": 40,
1687
+ * "upper_value": 47.5
1688
+ * }
1689
+ * },
1690
+ * {
1691
+ * "尺码": {
1692
+ * "value": "M"
1693
+ * },
1694
+ * "腰围": {
1695
+ * "unit": "CM",
1696
+ * "value": 59
1697
+ * },
1698
+ * "裙长": {
1699
+ * "unit": "CM",
1700
+ * "value": 82
1701
+ * },
1702
+ * "体重建议": {
1703
+ * "unit": "kg",
1704
+ * "lower_value": 45,
1705
+ * "upper_value": 52.5
1706
+ * }
1707
+ * },
1708
+ * {
1709
+ * "尺码": {
1710
+ * "value": "L"
1711
+ * },
1712
+ * "腰围": {
1713
+ * "unit": "CM",
1714
+ * "value": 60
1715
+ * },
1716
+ * "裙长": {
1717
+ * "unit": "CM",
1718
+ * "value": 83
1719
+ * },
1720
+ * "体重建议": {
1721
+ * "unit": "kg",
1722
+ * "lower_value": 50,
1723
+ * "upper_value": 57.5
1724
+ * }
1725
+ * },
1726
+ * {
1727
+ * "尺码": {
1728
+ * "value": "XL"
1729
+ * },
1730
+ * "腰围": {
1731
+ * "unit": "CM",
1732
+ * "value": 61
1733
+ * },
1734
+ * "裙长": {
1735
+ * "unit": "CM",
1736
+ * "value": 84
1737
+ * },
1738
+ * "体重建议": {
1739
+ * "unit": "kg",
1740
+ * "lower_value": 55,
1741
+ * "upper_value": 62.5
1742
+ * }
1743
+ * },
1744
+ * {
1745
+ * "尺码": {
1746
+ * "value": "2XL"
1747
+ * },
1748
+ * "腰围": {
1749
+ * "unit": "CM",
1750
+ * "value": 62
1751
+ * },
1752
+ * "裙长": {
1753
+ * "unit": "CM",
1754
+ * "value": 85
1755
+ * },
1756
+ * "体重建议": {
1757
+ * "unit": "kg",
1758
+ * "lower_value": 60,
1759
+ * "upper_value": 67.5
1760
+ * }
1761
+ * }
1762
+ * \\],
1763
+ * "SizeChartAttributes": [
1764
+ * "尺码",
1765
+ * "裙长",
1766
+ * "腰围",
1767
+ * "体重建议"
1768
+ * \\],
1769
+ * "IntersectionAttributes": [
1770
+ * "尺码",
1771
+ * "裙长",
1772
+ * "腰围(拉伸)",
1773
+ * "体重建议"
1774
+ * \\]
1775
+ * } |.
1776
+ *
1777
+ * @param tmpReq - SizeChartExtractRequest
1778
+ * @param runtime - runtime options for this request RuntimeOptions
1779
+ * @returns SizeChartExtractResponse
1780
+ */
1781
+ async sizeChartExtractWithOptions(tmpReq: $_model.SizeChartExtractRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SizeChartExtractResponse> {
1782
+ tmpReq.validate();
1783
+ let request = new $_model.SizeChartExtractShrinkRequest({ });
1784
+ OpenApiUtil.convert(tmpReq, request);
1785
+ if (!$dara.isNull(tmpReq.columnNameList)) {
1786
+ request.columnNameListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.columnNameList, "ColumnNameList", "json");
1787
+ }
1788
+
1789
+ let query = { };
1790
+ if (!$dara.isNull(request.columnNameListShrink)) {
1791
+ query["ColumnNameList"] = request.columnNameListShrink;
1792
+ }
1793
+
1794
+ if (!$dara.isNull(request.imageUrl)) {
1795
+ query["ImageUrl"] = request.imageUrl;
1796
+ }
1797
+
1798
+ if (!$dara.isNull(request.languageModel)) {
1799
+ query["LanguageModel"] = request.languageModel;
1800
+ }
1801
+
1802
+ let req = new $OpenApiUtil.OpenApiRequest({
1803
+ query: OpenApiUtil.query(query),
1804
+ });
1805
+ let params = new $OpenApiUtil.Params({
1806
+ action: "SizeChartExtract",
1807
+ version: "2026-04-28",
1808
+ protocol: "HTTPS",
1809
+ pathname: "/",
1810
+ method: "POST",
1811
+ authType: "AK",
1812
+ style: "RPC",
1813
+ reqBodyType: "formData",
1814
+ bodyType: "json",
1815
+ });
1816
+ return $dara.cast<$_model.SizeChartExtractResponse>(await this.callApi(params, req, runtime), new $_model.SizeChartExtractResponse({}));
1817
+ }
1818
+
1819
+ /**
1820
+ * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous).
1821
+ *
1822
+ * @remarks
1823
+ * ## Product Introduction
1824
+ * Intelligently extracts structured information such as size charts and package weight/dimension data from images by using a multimodal large language model. (Asynchronous).
1825
+ * ## Common scenarios
1826
+ * * Size charts: Extracts size charts from apparel categories into text.
1827
+ *
1828
+ * * Package weight/dimensions: Extracts package weight and dimension information from images.
1829
+ * ## Functions and features
1830
+ * 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.
1831
+ * Core capabilities: 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 calls.
1832
+ * ## Comparison
1833
+ * | **Input image** | **Output result** |
1834
+ * | --- | --- |
1835
+ * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/4jKqm0bAebrKLnw1/img/0a914347-2acb-4b94-bf07-86aab2b31279.png) | {
1836
+ * "SizeChart": [
1837
+ * {
1838
+ * "尺码": {
1839
+ * "value": "S"
1840
+ * },
1841
+ * "腰围": {
1842
+ * "unit": "CM",
1843
+ * "value": 58
1844
+ * },
1845
+ * "裙长": {
1846
+ * "unit": "CM",
1847
+ * "value": 81
1848
+ * },
1849
+ * "体重建议": {
1850
+ * "unit": "kg",
1851
+ * "lower_value": 40,
1852
+ * "upper_value": 47.5
1853
+ * }
1854
+ * },
1855
+ * {
1856
+ * "尺码": {
1857
+ * "value": "M"
1858
+ * },
1859
+ * "腰围": {
1860
+ * "unit": "CM",
1861
+ * "value": 59
1862
+ * },
1863
+ * "裙长": {
1864
+ * "unit": "CM",
1865
+ * "value": 82
1866
+ * },
1867
+ * "体重建议": {
1868
+ * "unit": "kg",
1869
+ * "lower_value": 45,
1870
+ * "upper_value": 52.5
1871
+ * }
1872
+ * },
1873
+ * {
1874
+ * "尺码": {
1875
+ * "value": "L"
1876
+ * },
1877
+ * "腰围": {
1878
+ * "unit": "CM",
1879
+ * "value": 60
1880
+ * },
1881
+ * "裙长": {
1882
+ * "unit": "CM",
1883
+ * "value": 83
1884
+ * },
1885
+ * "体重建议": {
1886
+ * "unit": "kg",
1887
+ * "lower_value": 50,
1888
+ * "upper_value": 57.5
1889
+ * }
1890
+ * },
1891
+ * {
1892
+ * "尺码": {
1893
+ * "value": "XL"
1894
+ * },
1895
+ * "腰围": {
1896
+ * "unit": "CM",
1897
+ * "value": 61
1898
+ * },
1899
+ * "裙长": {
1900
+ * "unit": "CM",
1901
+ * "value": 84
1902
+ * },
1903
+ * "体重建议": {
1904
+ * "unit": "kg",
1905
+ * "lower_value": 55,
1906
+ * "upper_value": 62.5
1907
+ * }
1908
+ * },
1909
+ * {
1910
+ * "尺码": {
1911
+ * "value": "2XL"
1912
+ * },
1913
+ * "腰围": {
1914
+ * "unit": "CM",
1915
+ * "value": 62
1916
+ * },
1917
+ * "裙长": {
1918
+ * "unit": "CM",
1919
+ * "value": 85
1920
+ * },
1921
+ * "体重建议": {
1922
+ * "unit": "kg",
1923
+ * "lower_value": 60,
1924
+ * "upper_value": 67.5
1925
+ * }
1926
+ * }
1927
+ * \\],
1928
+ * "SizeChartAttributes": [
1929
+ * "尺码",
1930
+ * "裙长",
1931
+ * "腰围",
1932
+ * "体重建议"
1933
+ * \\],
1934
+ * "IntersectionAttributes": [
1935
+ * "尺码",
1936
+ * "裙长",
1937
+ * "腰围(拉伸)",
1938
+ * "体重建议"
1939
+ * \\]
1940
+ * } |.
1941
+ *
1942
+ * @param request - SizeChartExtractRequest
1943
+ * @returns SizeChartExtractResponse
1944
+ */
1945
+ async sizeChartExtract(request: $_model.SizeChartExtractRequest): Promise<$_model.SizeChartExtractResponse> {
1946
+ let runtime = new $dara.RuntimeOptions({ });
1947
+ return await this.sizeChartExtractWithOptions(request, runtime);
1948
+ }
1949
+
1950
+ /**
1951
+ * Correct errors in search terms and titles
1952
+ *
1953
+ * @remarks
1954
+ * ## Product Introduction
1955
+ * Corrects errors in search terms and titles. Currently supports the following 14 languages:
1956
+ * | No. | Language Name (English) | Language Code | Language Name (Chinese) |
1957
+ * |------|------------------------|------------|------------------------|
1958
+ * | 1 | Arabic | ar | Arabic |
1959
+ * | 2 | German | de | German |
1960
+ * | 3 | English | en | English |
1961
+ * | 4 | Spanish | es | Spanish |
1962
+ * | 5 | French | fr | French |
1963
+ * | 6 | Hebrew | he | Hebrew |
1964
+ * | 7 | Italian | it | Italian |
1965
+ * | 8 | Japanese | ja | Japanese |
1966
+ * | 9 | Korean | ko | Korean |
1967
+ * | 10 | Dutch | nl | Dutch |
1968
+ * | 11 | Polish | pl | Polish |
1969
+ * | 12 | Portuguese | pt | Portuguese (Brazil) |
1970
+ * | 13 | Russian | ru | Russian |
1971
+ * | 14 | Ukrainian | uk | Ukrainian |
1972
+ *
1973
+ * @param request - TextCorrectRequest
1974
+ * @param runtime - runtime options for this request RuntimeOptions
1975
+ * @returns TextCorrectResponse
1976
+ */
1977
+ async textCorrectWithOptions(request: $_model.TextCorrectRequest, runtime: $dara.RuntimeOptions): Promise<$_model.TextCorrectResponse> {
1978
+ request.validate();
1979
+ let query = { };
1980
+ if (!$dara.isNull(request.sourceLanguage)) {
1981
+ query["SourceLanguage"] = request.sourceLanguage;
1982
+ }
1983
+
1984
+ if (!$dara.isNull(request.sourceText)) {
1985
+ query["SourceText"] = request.sourceText;
1986
+ }
1987
+
1988
+ let req = new $OpenApiUtil.OpenApiRequest({
1989
+ query: OpenApiUtil.query(query),
1990
+ });
1991
+ let params = new $OpenApiUtil.Params({
1992
+ action: "TextCorrect",
1993
+ version: "2026-04-28",
1994
+ protocol: "HTTPS",
1995
+ pathname: "/",
1996
+ method: "POST",
1997
+ authType: "AK",
1998
+ style: "RPC",
1999
+ reqBodyType: "formData",
2000
+ bodyType: "json",
2001
+ });
2002
+ return $dara.cast<$_model.TextCorrectResponse>(await this.callApi(params, req, runtime), new $_model.TextCorrectResponse({}));
2003
+ }
2004
+
2005
+ /**
2006
+ * Correct errors in search terms and titles
2007
+ *
2008
+ * @remarks
2009
+ * ## Product Introduction
2010
+ * Corrects errors in search terms and titles. Currently supports the following 14 languages:
2011
+ * | No. | Language Name (English) | Language Code | Language Name (Chinese) |
2012
+ * |------|------------------------|------------|------------------------|
2013
+ * | 1 | Arabic | ar | Arabic |
2014
+ * | 2 | German | de | German |
2015
+ * | 3 | English | en | English |
2016
+ * | 4 | Spanish | es | Spanish |
2017
+ * | 5 | French | fr | French |
2018
+ * | 6 | Hebrew | he | Hebrew |
2019
+ * | 7 | Italian | it | Italian |
2020
+ * | 8 | Japanese | ja | Japanese |
2021
+ * | 9 | Korean | ko | Korean |
2022
+ * | 10 | Dutch | nl | Dutch |
2023
+ * | 11 | Polish | pl | Polish |
2024
+ * | 12 | Portuguese | pt | Portuguese (Brazil) |
2025
+ * | 13 | Russian | ru | Russian |
2026
+ * | 14 | Ukrainian | uk | Ukrainian |
2027
+ *
2028
+ * @param request - TextCorrectRequest
2029
+ * @returns TextCorrectResponse
2030
+ */
2031
+ async textCorrect(request: $_model.TextCorrectRequest): Promise<$_model.TextCorrectResponse> {
2032
+ let runtime = new $dara.RuntimeOptions({ });
2033
+ return await this.textCorrectWithOptions(request, runtime);
2034
+ }
2035
+
2036
+ /**
2037
+ * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs. The model is continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2038
+ *
2039
+ * @remarks
2040
+ * ## Product Introduction
2041
+ * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs. The model is continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2042
+ * ## Common scenarios
2043
+ * - Product titles: Marco MT can accurately translate phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
2044
+ * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco MT supports long text translation and HTML format, delivering excellent translation quality and format preservation.
2045
+ * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
2046
+ * - Customer service conversations: In customer service scenarios, Marco MT can handle issues such as missing context and typos, and supports polite expressions for certain language directions.
2047
+ * Marco MT can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
2048
+ * ## Features
2049
+ * - **Supported language directions** Marco MT supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in Section 5.6.
2050
+ * - **Ultra-low hallucination rate and high-speed inference** Marco MT 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.
2051
+ * - **Supported text format types** Currently supports text and html text types.
2052
+ * - **Translation intervention** 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. 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.
2053
+ * ## Translation quality comparison
2054
+ * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
2055
+ * |----------|---------------|-----------------------|-----------------------|---------------------|
2056
+ * | 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 |
2057
+ * | 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 |
2058
+ * | 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 product is a "key bag" rather than a "keychain." Other translations may cause ambiguity about the product subject |.
2059
+ *
2060
+ * @param tmpReq - TextTranslateRequest
2061
+ * @param runtime - runtime options for this request RuntimeOptions
2062
+ * @returns TextTranslateResponse
2063
+ */
2064
+ async textTranslateWithOptions(tmpReq: $_model.TextTranslateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.TextTranslateResponse> {
2065
+ tmpReq.validate();
2066
+ let request = new $_model.TextTranslateShrinkRequest({ });
2067
+ OpenApiUtil.convert(tmpReq, request);
2068
+ if (!$dara.isNull(tmpReq.sourceTextList)) {
2069
+ request.sourceTextListShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sourceTextList, "SourceTextList", "json");
2070
+ }
2071
+
2072
+ let body : {[key: string ]: any} = { };
2073
+ if (!$dara.isNull(request.formatType)) {
2074
+ body["FormatType"] = request.formatType;
2075
+ }
2076
+
2077
+ if (!$dara.isNull(request.glossary)) {
2078
+ body["Glossary"] = request.glossary;
2079
+ }
2080
+
2081
+ if (!$dara.isNull(request.sourceLanguage)) {
2082
+ body["SourceLanguage"] = request.sourceLanguage;
2083
+ }
2084
+
2085
+ if (!$dara.isNull(request.sourceTextListShrink)) {
2086
+ body["SourceTextList"] = request.sourceTextListShrink;
2087
+ }
2088
+
2089
+ if (!$dara.isNull(request.targetLanguage)) {
2090
+ body["TargetLanguage"] = request.targetLanguage;
2091
+ }
2092
+
2093
+ let req = new $OpenApiUtil.OpenApiRequest({
2094
+ body: OpenApiUtil.parseToMap(body),
2095
+ });
2096
+ let params = new $OpenApiUtil.Params({
2097
+ action: "TextTranslate",
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<$_model.TextTranslateResponse>(await this.callApi(params, req, runtime), new $_model.TextTranslateResponse({}));
2108
+ }
2109
+
2110
+ /**
2111
+ * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs. The model is continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2112
+ *
2113
+ * @remarks
2114
+ * ## Product Introduction
2115
+ * Marco MT is an e-commerce translation model trained on over 1 billion high-quality bilingual sentence pairs. The model is continuously optimized for e-commerce-specific terminology such as brands, models, materials, and attributes. It supports translation between more than 100 language pairs (including bridged translations), especially Chinese-English, Chinese-multilingual, and English-multilingual translations. It supports language detection for 24 language directions. If you do not specify a source language, automatic detection is performed.
2116
+ * ## Common scenarios
2117
+ * - Product titles: Marco MT can accurately translate phrases, keywords, and trending terms in product titles into the target language, improving product visibility on e-commerce platforms.
2118
+ * - Product descriptions: Product descriptions are typically long with diverse and complex formatting. Marco MT supports long text translation and HTML format, delivering excellent translation quality and format preservation.
2119
+ * - Product attributes: Product attribute terms are typically short and may contain e-commerce-specific terms such as model numbers and specifications.
2120
+ * - Customer service conversations: In customer service scenarios, Marco MT can handle issues such as missing context and typos, and supports polite expressions for certain language directions.
2121
+ * Marco MT can also be used for general-purpose translation scenarios such as office work, meetings, and daily conversations.
2122
+ * ## Features
2123
+ * - **Supported language directions** Marco MT supports translation between more than 100 languages and language detection for 23 languages. For specific language directions, refer to the language mapping table in Section 5.6.
2124
+ * - **Ultra-low hallucination rate and high-speed inference** Marco MT 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.
2125
+ * - **Supported text format types** Currently supports text and html text types.
2126
+ * - **Translation intervention** 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. 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.
2127
+ * ## Translation quality comparison
2128
+ * | **Source text** | **Aidge translation** | **Other translation product 1** | **Other translation product 2** | **Aidge translation advantage** |
2129
+ * |----------|---------------|-----------------------|-----------------------|---------------------|
2130
+ * | 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 |
2131
+ * | 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 |
2132
+ * | 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 product is a "key bag" rather than a "keychain." Other translations may cause ambiguity about the product subject |.
2133
+ *
2134
+ * @param request - TextTranslateRequest
2135
+ * @returns TextTranslateResponse
2136
+ */
2137
+ async textTranslate(request: $_model.TextTranslateRequest): Promise<$_model.TextTranslateResponse> {
2138
+ let runtime = new $dara.RuntimeOptions({ });
2139
+ return await this.textTranslateWithOptions(request, runtime);
2140
+ }
2141
+
2142
+ /**
2143
+ * Provides a one-stop AI-powered image processing service for e-commerce sellers. Orchestrates seven atomic capabilities — element detection, intelligent matting, intelligent removal, Image Translation Pro, image expansion, intelligent cropping, and HD upscaling — into an image processing workflow. Upload an image once, select the desired capabilities, and complete multiple image optimizations sequentially in a single call to produce product images that meet listing platform requirements. (Asynchronous).
2144
+ *
2145
+ * @remarks
2146
+ * # 1. Product Introduction
2147
+ * A one-stop AI-powered image processing service for e-commerce sellers. Orchestrates seven atomic capabilities — element detection, intelligent matting, intelligent removal, Image Translation Pro, image expansion, intelligent cropping, and HD upscaling — into an image processing workflow. Upload an image once, select the desired capabilities, and complete multiple image optimizations sequentially in a single call to produce product images that meet listing platform requirements. (Asynchronous).
2148
+ * # 2. Common scenarios
2149
+ * Applicable to batch optimization of product images for cross-platform listing scenarios. Adapts source product images into main images, SKU images, and detail images required by listing platforms. Supported capabilities include:
2150
+ * * Detecting low-quality images that contain text, watermarks, logos, or overlay patches, and allowing users to filter images that require processing
2151
+ *
2152
+ * * Removing non-compliant elements such as watermarks, logos, overlay patches, and Chinese text from original images
2153
+ *
2154
+ * * Removing the background around the product subject edges
2155
+ *
2156
+ * * Translating text within images into other languages
2157
+ *
2158
+ * * Expanding images to other dimensions (by ratio, size, or other methods) with automatic background completion
2159
+ *
2160
+ * * Cropping images to specified dimensions
2161
+ *
2162
+ * * Upscaling image resolution by a specified factor.
2163
+ * # 3. Features
2164
+ * Provide a product image URL and use the Ability parameter to select the AI capability combination to invoke (1 = intelligent element detection, 2 = intelligent matting, 3 = intelligent removal, 4 = Image Translation Pro, 5 = image expansion, 6 = intelligent cropping, 7 = HD upscaling). The system executes the selected capabilities sequentially in a preset order. Because intelligent element detection helps users determine whether an image contains certain specified elements, and the presence of elements affects subsequent AI capability selection, an additional input is provided that allows users to either filter images out of or retain images in the subsequent AI processing pipeline.
2165
+ * ![ai-pipeline-flowchart.svg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/bddb522a-0795-4b5c-b25d-10e933426367.svg)
2166
+ * Each AI capability is described as follows:
2167
+ * 1. **Intelligent element detection:** An element detection capability designed for e-commerce images. Detects text, logos, watermarks, and text-bearing color blocks in both the subject and background of an image, and returns Boolean detection results. Allows users to filter images based on detection results (for example, process only images that contain watermarks). Works in conjunction with subsequent capabilities — first identifies the types of elements that need optimization, then precisely executes removal and other operations.
2168
+ *
2169
+ * 2. **Intelligent matting:** Automatically identifies the product subject in an image and precisely separates the subject from the background. Based on deep learning models, supports accurate segmentation of complex edges such as hair strands and transparent objects. Outputs images with a transparent or white background, supports custom background colors and target dimension cropping, and directly generates product display images that comply with e-commerce platform specifications.
2170
+ *
2171
+ * 3. **Intelligent removal:** Automatically detects and removes non-compliant elements from e-commerce images, including text, specific names (brand/store names), transparent text blocks, and overlay patches. Supports specifying removal of elements in the subject area or non-subject area separately, and also supports precise removal area specification through the Mask parameter for efficient compliance cleanup of large batches of images.
2172
+ *
2173
+ * 4. **Image Translation Pro:** Leverages multimodal foundation model technology to translate text in images into a target language and render it directly at the corresponding position in the original image. Supports more than 100 language pairs. Provides product subject text protection, brand name protection, and translation intervention glossaries to prevent mistranslation of embedded product information. After translation, returns layout information such as text position, font, and color for secondary editing.
2174
+ *
2175
+ * 5. **Intelligent image expansion:** Expands the image canvas using AI generation technology to broaden the image view without cropping the subject. Supports multiple expansion methods: by aspect ratio (1:1, 3:4, 4:3, 9:16, 16:9), by horizontal/vertical scaling ratio (1.0× to 3.0×), or by pixel offset in the up, down, left, and right directions. AI automatically generates naturally transitioning background content.
2176
+ *
2177
+ * 6. **Intelligent cropping:** Intelligently crops images to specified dimensions, automatically identifies the subject area, and precisely preserves core content. Supports custom output width and height (100 to 5000 pixels) to meet the image dimension requirements of different e-commerce platforms and ad placements, ensuring the subject remains prominent and the composition stays balanced after cropping.
2178
+ *
2179
+ * 7. **HD upscaling:** Enhances details and reduces noise while upscaling images. Supports 2× to 4× upscaling. Suitable for improving the clarity of low-resolution product images and optimizing visual presentation. Supports output in PNG, JPG, BMP, and other formats.
2180
+ * # 4. Before and after comparison
2181
+ * | **Original image** | **Capabilities used** | **Output image** |
2182
+ * | --- | --- | --- |
2183
+ * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/3c1af966-8a5a-491d-9bfa-aefc321c9bed.png) | * Intelligent detection
2184
+ *
2185
+ * * Image Translation Pro
2186
+ *
2187
+ * * Intelligent cropping | ![R1.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/c2579e3e-389e-4717-84e3-834e60fea6b0.png) |
2188
+ * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/a92d14a9-ecf4-4e77-ad96-a2fcdd95dd1d.png) | * Intelligent matting
2189
+ *
2190
+ * * Intelligent removal
2191
+ *
2192
+ * * Intelligent cropping | ![R1.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/f631f578-3496-4aa1-b5ef-cd1ea603e049.png) |
2193
+ * | ![C2.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/12965cf8-cfdf-4a85-95fe-fdfcefcaa4ae.png) | * Intelligent detection
2194
+ *
2195
+ * * Intelligent removal
2196
+ *
2197
+ * * HD upscaling | ![R2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/95d29e79-8622-45fb-b284-cd580fe40ea0.jpeg) |.
2198
+ *
2199
+ * @param tmpReq - VisionFlowRequest
2200
+ * @param runtime - runtime options for this request RuntimeOptions
2201
+ * @returns VisionFlowResponse
2202
+ */
2203
+ async visionFlowWithOptions(tmpReq: $_model.VisionFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.VisionFlowResponse> {
2204
+ tmpReq.validate();
2205
+ let request = new $_model.VisionFlowShrinkRequest({ });
2206
+ OpenApiUtil.convert(tmpReq, request);
2207
+ if (!$dara.isNull(tmpReq.ability)) {
2208
+ request.abilityShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.ability, "Ability", "json");
2209
+ }
2210
+
2211
+ if (!$dara.isNull(tmpReq.nonobjectDetectElements)) {
2212
+ request.nonobjectDetectElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonobjectDetectElements, "NonobjectDetectElements", "json");
2213
+ }
2214
+
2215
+ if (!$dara.isNull(tmpReq.nonobjectRemoveElements)) {
2216
+ request.nonobjectRemoveElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nonobjectRemoveElements, "NonobjectRemoveElements", "json");
2217
+ }
2218
+
2219
+ if (!$dara.isNull(tmpReq.objectDetectElements)) {
2220
+ request.objectDetectElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectDetectElements, "ObjectDetectElements", "json");
2221
+ }
2222
+
2223
+ if (!$dara.isNull(tmpReq.objectRemoveElements)) {
2224
+ request.objectRemoveElementsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.objectRemoveElements, "ObjectRemoveElements", "json");
2225
+ }
2226
+
2227
+ let query = { };
2228
+ if (!$dara.isNull(request.abilityShrink)) {
2229
+ query["Ability"] = request.abilityShrink;
2230
+ }
2231
+
2232
+ if (!$dara.isNull(request.backGroundType)) {
2233
+ query["BackGroundType"] = request.backGroundType;
2234
+ }
2235
+
2236
+ if (!$dara.isNull(request.glossary)) {
2237
+ query["Glossary"] = request.glossary;
2238
+ }
2239
+
2240
+ if (!$dara.isNull(request.imageUrl)) {
2241
+ query["ImageUrl"] = request.imageUrl;
2242
+ }
2243
+
2244
+ if (!$dara.isNull(request.includingProductArea)) {
2245
+ query["IncludingProductArea"] = request.includingProductArea;
2246
+ }
2247
+
2248
+ if (!$dara.isNull(request.isFilter)) {
2249
+ query["IsFilter"] = request.isFilter;
2250
+ }
2251
+
2252
+ if (!$dara.isNull(request.mask)) {
2253
+ query["Mask"] = request.mask;
2254
+ }
2255
+
2256
+ if (!$dara.isNull(request.nonobjectDetectElementsShrink)) {
2257
+ query["NonobjectDetectElements"] = request.nonobjectDetectElementsShrink;
2258
+ }
2259
+
2260
+ if (!$dara.isNull(request.nonobjectRemoveElementsShrink)) {
2261
+ query["NonobjectRemoveElements"] = request.nonobjectRemoveElementsShrink;
2262
+ }
2263
+
2264
+ if (!$dara.isNull(request.objectDetectElementsShrink)) {
2265
+ query["ObjectDetectElements"] = request.objectDetectElementsShrink;
2266
+ }
2267
+
2268
+ if (!$dara.isNull(request.objectRemoveElementsShrink)) {
2269
+ query["ObjectRemoveElements"] = request.objectRemoveElementsShrink;
2270
+ }
2271
+
2272
+ if (!$dara.isNull(request.sourceLanguage)) {
2273
+ query["SourceLanguage"] = request.sourceLanguage;
2274
+ }
2275
+
2276
+ if (!$dara.isNull(request.targetHeight)) {
2277
+ query["TargetHeight"] = request.targetHeight;
2278
+ }
2279
+
2280
+ if (!$dara.isNull(request.targetLanguage)) {
2281
+ query["TargetLanguage"] = request.targetLanguage;
2282
+ }
2283
+
2284
+ if (!$dara.isNull(request.targetWidth)) {
2285
+ query["TargetWidth"] = request.targetWidth;
2286
+ }
2287
+
2288
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
2289
+ query["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
2290
+ }
2291
+
2292
+ if (!$dara.isNull(request.upscaleFactor)) {
2293
+ query["UpscaleFactor"] = request.upscaleFactor;
2294
+ }
2295
+
2296
+ let req = new $OpenApiUtil.OpenApiRequest({
2297
+ query: OpenApiUtil.query(query),
2298
+ });
2299
+ let params = new $OpenApiUtil.Params({
2300
+ action: "VisionFlow",
2301
+ version: "2026-04-28",
2302
+ protocol: "HTTPS",
2303
+ pathname: "/",
2304
+ method: "POST",
2305
+ authType: "AK",
2306
+ style: "RPC",
2307
+ reqBodyType: "formData",
2308
+ bodyType: "json",
2309
+ });
2310
+ return $dara.cast<$_model.VisionFlowResponse>(await this.callApi(params, req, runtime), new $_model.VisionFlowResponse({}));
2311
+ }
2312
+
2313
+ /**
2314
+ * Provides a one-stop AI-powered image processing service for e-commerce sellers. Orchestrates seven atomic capabilities — element detection, intelligent matting, intelligent removal, Image Translation Pro, image expansion, intelligent cropping, and HD upscaling — into an image processing workflow. Upload an image once, select the desired capabilities, and complete multiple image optimizations sequentially in a single call to produce product images that meet listing platform requirements. (Asynchronous).
2315
+ *
2316
+ * @remarks
2317
+ * # 1. Product Introduction
2318
+ * A one-stop AI-powered image processing service for e-commerce sellers. Orchestrates seven atomic capabilities — element detection, intelligent matting, intelligent removal, Image Translation Pro, image expansion, intelligent cropping, and HD upscaling — into an image processing workflow. Upload an image once, select the desired capabilities, and complete multiple image optimizations sequentially in a single call to produce product images that meet listing platform requirements. (Asynchronous).
2319
+ * # 2. Common scenarios
2320
+ * Applicable to batch optimization of product images for cross-platform listing scenarios. Adapts source product images into main images, SKU images, and detail images required by listing platforms. Supported capabilities include:
2321
+ * * Detecting low-quality images that contain text, watermarks, logos, or overlay patches, and allowing users to filter images that require processing
2322
+ *
2323
+ * * Removing non-compliant elements such as watermarks, logos, overlay patches, and Chinese text from original images
2324
+ *
2325
+ * * Removing the background around the product subject edges
2326
+ *
2327
+ * * Translating text within images into other languages
2328
+ *
2329
+ * * Expanding images to other dimensions (by ratio, size, or other methods) with automatic background completion
2330
+ *
2331
+ * * Cropping images to specified dimensions
2332
+ *
2333
+ * * Upscaling image resolution by a specified factor.
2334
+ * # 3. Features
2335
+ * Provide a product image URL and use the Ability parameter to select the AI capability combination to invoke (1 = intelligent element detection, 2 = intelligent matting, 3 = intelligent removal, 4 = Image Translation Pro, 5 = image expansion, 6 = intelligent cropping, 7 = HD upscaling). The system executes the selected capabilities sequentially in a preset order. Because intelligent element detection helps users determine whether an image contains certain specified elements, and the presence of elements affects subsequent AI capability selection, an additional input is provided that allows users to either filter images out of or retain images in the subsequent AI processing pipeline.
2336
+ * ![ai-pipeline-flowchart.svg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/bddb522a-0795-4b5c-b25d-10e933426367.svg)
2337
+ * Each AI capability is described as follows:
2338
+ * 1. **Intelligent element detection:** An element detection capability designed for e-commerce images. Detects text, logos, watermarks, and text-bearing color blocks in both the subject and background of an image, and returns Boolean detection results. Allows users to filter images based on detection results (for example, process only images that contain watermarks). Works in conjunction with subsequent capabilities — first identifies the types of elements that need optimization, then precisely executes removal and other operations.
2339
+ *
2340
+ * 2. **Intelligent matting:** Automatically identifies the product subject in an image and precisely separates the subject from the background. Based on deep learning models, supports accurate segmentation of complex edges such as hair strands and transparent objects. Outputs images with a transparent or white background, supports custom background colors and target dimension cropping, and directly generates product display images that comply with e-commerce platform specifications.
2341
+ *
2342
+ * 3. **Intelligent removal:** Automatically detects and removes non-compliant elements from e-commerce images, including text, specific names (brand/store names), transparent text blocks, and overlay patches. Supports specifying removal of elements in the subject area or non-subject area separately, and also supports precise removal area specification through the Mask parameter for efficient compliance cleanup of large batches of images.
2343
+ *
2344
+ * 4. **Image Translation Pro:** Leverages multimodal foundation model technology to translate text in images into a target language and render it directly at the corresponding position in the original image. Supports more than 100 language pairs. Provides product subject text protection, brand name protection, and translation intervention glossaries to prevent mistranslation of embedded product information. After translation, returns layout information such as text position, font, and color for secondary editing.
2345
+ *
2346
+ * 5. **Intelligent image expansion:** Expands the image canvas using AI generation technology to broaden the image view without cropping the subject. Supports multiple expansion methods: by aspect ratio (1:1, 3:4, 4:3, 9:16, 16:9), by horizontal/vertical scaling ratio (1.0× to 3.0×), or by pixel offset in the up, down, left, and right directions. AI automatically generates naturally transitioning background content.
2347
+ *
2348
+ * 6. **Intelligent cropping:** Intelligently crops images to specified dimensions, automatically identifies the subject area, and precisely preserves core content. Supports custom output width and height (100 to 5000 pixels) to meet the image dimension requirements of different e-commerce platforms and ad placements, ensuring the subject remains prominent and the composition stays balanced after cropping.
2349
+ *
2350
+ * 7. **HD upscaling:** Enhances details and reduces noise while upscaling images. Supports 2× to 4× upscaling. Suitable for improving the clarity of low-resolution product images and optimizing visual presentation. Supports output in PNG, JPG, BMP, and other formats.
2351
+ * # 4. Before and after comparison
2352
+ * | **Original image** | **Capabilities used** | **Output image** |
2353
+ * | --- | --- | --- |
2354
+ * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/3c1af966-8a5a-491d-9bfa-aefc321c9bed.png) | * Intelligent detection
2355
+ *
2356
+ * * Image Translation Pro
2357
+ *
2358
+ * * Intelligent cropping | ![R1.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/c2579e3e-389e-4717-84e3-834e60fea6b0.png) |
2359
+ * | ![image.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/a92d14a9-ecf4-4e77-ad96-a2fcdd95dd1d.png) | * Intelligent matting
2360
+ *
2361
+ * * Intelligent removal
2362
+ *
2363
+ * * Intelligent cropping | ![R1.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/f631f578-3496-4aa1-b5ef-cd1ea603e049.png) |
2364
+ * | ![C2.png](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/12965cf8-cfdf-4a85-95fe-fdfcefcaa4ae.png) | * Intelligent detection
2365
+ *
2366
+ * * Intelligent removal
2367
+ *
2368
+ * * HD upscaling | ![R2.jpeg](https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/NpQlK5jRe9w5jqDv/img/95d29e79-8622-45fb-b284-cd580fe40ea0.jpeg) |.
2369
+ *
2370
+ * @param request - VisionFlowRequest
2371
+ * @returns VisionFlowResponse
2372
+ */
2373
+ async visionFlow(request: $_model.VisionFlowRequest): Promise<$_model.VisionFlowResponse> {
2374
+ let runtime = new $dara.RuntimeOptions({ });
2375
+ return await this.visionFlowWithOptions(request, runtime);
2376
+ }
2377
+
2378
+ }