API Overview
This topic provides basic information common to all Aidge APIs, including access methods, authentication, request/response specifications, and synchronous and asynchronous models. Read this topic before you start integrating.
Base URL
Site | Domain |
China site |
|
International site |
|
Response format
All APIs return a uniform JSON object containing the Code, Message, RequestId, Data, and Success fields.
Example of a successful response:
{
"Code": "success",
"Message": "Success",
"RequestId": "2157065A-D6C8-1F3E-A4D0-B1234567890",
"Data": { "TranslatedText": "..." }
}Example of an error response:
{
"Code": "InvalidParameter",
"Message": "Invalid request parameter: SourceLanguage",
"RequestId": "2157065A-D6C8-1F3E-A4D0-B1234567890",
"Data": null
}All Aidge APIs share a uniform set of named error codes, such as InvalidParameter, FreeQuotaExhausted, and InputContentBlocked. For a complete list of error codes and troubleshooting steps, see Error Codes.
Synchronous and asynchronous APIs
Type | Mode | Applicable APIs |
Synchronous | A single request that returns a result immediately. | Text Translation, Text Correction, Language Detection, Image Translation (Standard and Pro), Smart Matting, Smart Erase, Smart Crop, Smart Element Recognition, Size Chart Detection, Product Category Matching, Product Attribute Matching, Parcel DWS Review, and Copywriting Optimization |
Asynchronous | Submit a task, then poll for the result. | Document Translation, Smart Rendering, Size Chart Extraction, Product Media Optimization (Lite and Pro), Video Translation, and Video Erase |
For asynchronous APIs, call the submission API to obtain a TaskId. Then, use the unified asynchronous task query API to poll the task status until the Status is COMPLETED or FAILED.
For the full contract of the asynchronous task query API (POP Gateway API name: QueryAsyncTaskResult)—including request parameters, response parameters (Data.Status / Data.Result / Data.UsageMap / Data.extraInfo), response examples, and usage notes—see Asynchronous Task Query API.
Complete SKU list
The Aidge platform provides 20 API SKUs. These SKUs fall into the following three categories by capability:
Multimodal translation (7 SKUs)
Text Translation -- Over 400 language pairs, including pivotal languages.
Document Translation -- PDF and Word files, with layout preservation.
Image Translation Standard / Image Translation Pro -- Translates embedded text in images. The Pro version is powered by a large multimodal model, delivering higher translation quality and supporting editor layout information.
Video Translation -- End-to-end audio and video processing workflow.
Video Erase -- Removes text and content from specific areas in video frames.
Language Detection -- Identifies 31 languages for short queries and 35 languages for general scenarios.
Text Correction -- Spelling correction for 14 language pairs.
Material optimization (11 SKUs)
Product Media Optimization Lite -- The most cost-effective workflow.
Product Media Optimization Pro -- The best-performing workflow.
Smart Rendering -- Orchestrates seven atomic capabilities in an asynchronous workflow.
Smart Matting -- Synchronously removes backgrounds.
Smart Erase -- Synchronously erases text, specific names, transparent text blocks, and spam overlays.
Smart Crop -- Intelligently crops images to target dimensions.
Smart Element Recognition -- Recognizes text, logos, watermarks, and text-containing color blocks.
Size Chart Extraction -- Asynchronously extracts structured size chart tables from images.
Size Chart Detection -- Synchronously detects whether an image contains a size chart.
Product Category Matching -- Synchronously matches categories for distribution platforms.
Product Attribute Matching -- Synchronously fills in categories and attributes.
Other (2 SKUs)
Copywriting Optimization -- Generates and revises product titles, descriptions, and keywords.
Parcel DWS Review -- Intelligent verification for logistics parcels.
Rate limits
Each API has its own QPS limit. For details, see Rate Limits.