'1.0',
'info' => ['style' => 'RPC', 'product' => 'Aidge', 'version' => '2026-04-28'],
'directories' => ['AssetOptimizeLite', 'AssetOptimizePro', 'CategoryAttributeMatch', 'CategoryMatch', 'DocumentTranslate', 'ImageCropping', 'ImageMatting', 'ImageRecognition', 'ImageRemove', 'ImageTranslationPro', 'ImageTranslationStandard', 'LanguageDetect', 'MaterialInspection', 'PackageWeightSizeCheck', 'QueryAsyncTaskResult', 'SizeChartDetect', 'SizeChartExtract', 'TextCorrect', 'TextTranslate', 'VisionFlow'],
'components' => [
'schemas' => [],
],
'apis' => [
'AssetOptimizeLite' => [
'summary' => '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)',
'path' => '',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'tenant'],
'parameters' => [
[
'name' => 'ProductUrl',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Product Link URL', 'type' => 'string', 'required' => true, 'example' => 'https://detail.1688.com/offer/631960323816.html'],
],
[
'name' => 'SourcePlatform',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Source platform, e.g., 1688', 'type' => 'string', 'required' => true, 'example' => '1688'],
],
[
'name' => 'TargetPlatform',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Target platform, e.g., temu', 'type' => 'string', 'required' => true, 'example' => 'temu'],
],
[
'name' => 'SourceLanguage',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Source language code, e.g., zh', 'type' => 'string', 'required' => false, 'example' => 'zh'],
],
[
'name' => 'TargetLanguage',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Target language code, e.g., en', 'type' => 'string', 'required' => false, 'example' => 'en'],
],
[
'name' => 'NeedTrans',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Whether translation is required', 'type' => 'boolean', 'required' => true, 'example' => 'true'],
],
[
'name' => 'IncludingProductArea',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Whether to include product region translation', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'TranslatingBrandInTheProduct',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Whether to translate brand names in images, default false', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
[
'name' => 'Glossary',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Custom glossary', 'type' => 'string', 'required' => false, 'example' => '测试'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'E1AD60F1-BAC7-546B-9533-E7AD02B16E3F'],
'Code' => ['title' => '', 'description' => 'Error code', 'type' => 'string', 'example' => '200'],
'Success' => ['title' => '', 'description' => 'Whether the call was successful', 'type' => 'boolean', 'example' => 'True'],
'Message' => ['title' => '', 'description' => 'Error message', 'type' => 'string', 'example' => 'OK'],
'Data' => [
'title' => '',
'description' => 'Asynchronous task submission result',
'type' => 'object',
'properties' => [
'TaskId' => ['title' => '', 'description' => 'Asynchronous task ID, used for subsequent result queries', 'type' => 'string', 'example' => 'task-xxxxxx'],
],
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Product Material Optimization Lite',
'description' => '## Product Introduction'."\n"
.'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)'."\n"
."\n"
.'## Applicable Scenarios'."\n"
.'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.'."\n"
.'By filtering images containing watermarks or non-compliant elements and prioritizing clean original images, it helps merchants complete cross-platform listings at minimal cost.'."\n"
."\n"
.'## Feature Overview'."\n"
.'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:'."\n"
."\n"
.'1. Automatically parses 1688 product links to extract multiple material types including titles, SKUs, main images, detail images, and attributes;'."\n"
.'2. Performs text filtering and SEO optimization based on TEMU platform blacklisted terms and compliance rules;'."\n"
.'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);'."\n"
.'4. Completes category matching, attribute filling, and localization rewriting according to target platform requirements.',
'requestParamsDescription' => '### Request Example'."\n"
.'```json'."\n"
.'{'."\n"
.' "Glossary": null,'."\n"
.' "TranslatingBrandInTheProduct": null,'."\n"
.' "TargetLanguage": "en",'."\n"
.' "IncludingProductArea": null,'."\n"
.' "SourcePlatform": "1688",'."\n"
.' "ProductUrl": "https://detail.1688.com/offer/631960323816.html",'."\n"
.' "TargetPlatform": "temu",'."\n"
.' "SourceLanguage": "zh",'."\n"
.' "needTrans": true'."\n"
.'}'."\n"
.'```',
'responseParamsDescription' => '## Response Example'."\n"
.'```json'."\n"
.'{'."\n"
.' "Data": {'."\n"
.' "TaskId": "386a0a40-74ba-949f-835f-660eb1bdc5ab"'."\n"
.' },'."\n"
.' "RequestId": "388F25C3-4A76-1563-A760-5E1F8AF34F43",'."\n"
.' "Message": "Success",'."\n"
.' "Code": "success",'."\n"
.' "Success": true'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'## Query Interface'."\n"
."\n"
.'[https://help.aliyun.com/document\\_detail/3038634.html](https://help.aliyun.com/document_detail/3038634.html)'."\n"
."\n"
.'### Request Parameters'."\n"
."\n"
.'| **Parameter Name** | **Type** | **Required** | **Parameter Description and Example** |'."\n"
.'| --- | --- | --- | --- |'."\n"
.'| TaskId | string | Yes | TaskId automatically generated by the system after the request
**Example**: `"ef581b28-781b-9f98-8ac6-68e3e0ce186d"` |'."\n"
."\n"
.'### Request Example'."\n"
."\n"
.'```odps'."\n"
.'{'."\n"
.' "TaskId": "386a0a40-74ba-949f-835f-660eb1bdc5ab"'."\n"
.'}'."\n"
.'```'."\n"
."\n"
.'### Response Parameters'."\n"
."\n"
.'| **Parameter Name** | **Type** | **Description** |'."\n"
.'| --- | --- | --- |'."\n"
.'| Code | String | Status code, e.g., "success" |'."\n"
.'| Message | String | Status description, e.g., "Success" |'."\n"
.'| Success | Boolean | Whether successful: true indicates success, false indicates failure |'."\n"
.'| RequestId | String | Request ID: Used to identify a unique request call |'."\n"
.'| Data | Object | Returned result structure information |'."\n"
.'| Data.TaskId | String | Asynchronous task ID |'."\n"
.'| Data.Status | String | Task status, e.g., "COMPLETED" |'."\n"
.'| Data.Result | Object | Task execution result |'."\n"
.'| Data.Result.Data | Object | Business processing data |'."\n"
.'| Data.Result.Data.RawInfo | Object | Original product information |'."\n"
.'| Data.Result.Data.RawInfo.ProductTitle | String | Product title |'."\n"
.'| Data.Result.Data.RawInfo.CategoryName | String | Original category name |'."\n"
.'| Data.Result.Data.RawInfo.MainImage | Array | Product main image URL list |'."\n"
.'| Data.Result.Data.RawInfo.SkuImage | Array | SKU image URL list |'."\n"
.'| Data.Result.Data.RawInfo.DescImage | Array | Detail description image URL list |'."\n"
.'| Data.Result.Data.RawInfo.Description | String | Product detail description |'."\n"
.'| Data.Result.Data.RawInfo.SkuAttributes | String | SKU attribute information, separated by semicolons |'."\n"
.'| Data.Result.Data.RawInfo.AttributePairs | String | Product attribute key-value pairs, separated by semicolons |'."\n"
.'| Data.Result.Data.ProcessedInfo | Object | Processed product information |'."\n"
.'| Data.Result.Data.ProcessedInfo.ProductTitle | String | Processed product title |'."\n"
.'| Data.Result.Data.ProcessedInfo.CategoryPath | String | Matched product category full path, separated by "/" |'."\n"
.'| Data.Result.Data.ProcessedInfo.ImageCountValid | Boolean | Whether the number of main images meets requirements, True/False |'."\n"
.'| Data.Result.Data.ProcessedInfo.MainImage | Array | Processed main image URL list |'."\n"
.'| Data.Result.Data.ProcessedInfo.SkuImage | Array | Processed SKU image URL list |'."\n"
.'| Data.Result.Data.ProcessedInfo.SkuTitle | Array | Processed product SKU titles |'."\n"
.'| Data.Result.Data.ProcessedInfo.DetailImage | Array | Processed detail image URL list |'."\n"
.'| Data.Result.Data.ProcessedInfo.Attributes | Array