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