API Overview

Updated at:

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

aidge.cn-beijing.aliyuncs.com

International site

aidge.ap-sourtheast-1.aliyuncs.com

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)

Other (2 SKUs)

Rate limits

Each API has its own QPS limit. For details, see Rate Limits.