Intelligent Inspection
Intelligent Inspection automates operational audits for e-commerce logistics, warehousing, and retail environments by using large models trained for the retail sector. Current capabilities include vacancy detection, display detection, floor display area inference, product hotspot recognition, material detection, package dimension and weight review, recapture and storefront auditing, price tag and display scene recognition, and similar product material generation.
To activate the service and start a trial, visit the console: https://ecoa.console.aliyun.com/inspect/home
Intelligent Inspection API list
Vacancy Detection -- Based on a multimodal large model, this API performs visual analysis of product display areas such as store shelves, display boxes, baskets, floor displays, and freezers. It identifies anomalies like empty front-row slots, underfilled displays, and collapsed products, and returns a normalized bounding box for each anomalous area. This is suitable for in-store display inspections, out-of-stock discovery, restock reminders, and display compliance checks. For details, see Vacancy Detection.
Display Detection (General SKU Recognition) -- Based on a multimodal large model and visual vector retrieval, this API identifies each product in an image of a store shelf or floor display, matches them against your custom SKU library, and returns structured, per-product results. This is suitable for display inventory counts, product distribution verification, and display compliance inspections. For details, see MerchandisePlacementDetection.
Floor Display Area Inference -- Based on a multimodal large model, this API calculates the side lengths and total floor area of a display. It uses an image of the floor display, the SKUs and bounding boxes of detected products, and product dimensions and reference images from a knowledge base. This is suitable for supermarket inspections, floor display verification, and brand display audits. For details, see Floor Display Area Inference.
Product Hotspot Recognition -- Based on a multimodal large model, this API uses a target scene image and a product reference image to identify a specified product and locate its visible area. It returns the product name and a normalized bounding box. This is suitable for generating hotspots, click-through links, and product associations on e-commerce marketing images, product combination photos, and outfit photos. For details, see Product Hotspot Recognition.
Material Detection -- Based on a multimodal large model, this API checks marketing materials (such as countertop signs, posters, and X-frame banners) in in-store photos for compliance with inspection rules. It returns structured conclusions and evidence in Chinese. For details, see Material Detection.
Package Dimension and Weight Review -- Performs a structured review of the "piece, weight, and dimension" measurement process for logistics packages. It checks the validity and tightness of the bounding box selection and identifies interference from foreign objects. For details, see Package Dimension and Weight Review.
Similar Product Material Generation -- Based on a multimodal large model with text and image structure extraction, this API locates and verifies identical products by using a main product image, title, and store name. It extracts size and attribute information to render size charts, attribute images, and category copy for product detail pages. This is suitable for populating missing product detail materials. For details, see Similar Product Material Generation.
Recapture Detection for Milk Powder Box Codes -- Based on recapture recognition and multimodal element localization, this API determines whether a photo of a milk powder outer box and its code is an original, a recapture, or a suspected recapture. It also locates individual milk powder products, the outer box, and the code area. This is suitable for auditing box code photos during channel inspections. For details, see Recapture Detection for Milk Powder Box Codes.
Recapture Detection for Milk Powder Can Bottom Codes -- Based on recapture recognition and multimodal element localization, this API determines whether a photo of a milk powder can bottom code is a recapture. It also locates the milk powder product, the can bottom, and the code area. This is suitable for channel inspections and auditing can bottom code photos. For details, see Recapture Detection for Milk Powder Can Bottom Codes.
General Recapture Detection -- Based on recapture recognition and multimodal element localization, this API determines whether a store inspection photo is a recapture. It locates physical products, screens, printed photos, and visible recapture clues. This is suitable for risk screening and manual review of inspection photos across multiple product categories. For details, see General Recapture Detection.
Storefront Scene Recognition -- Based on storefront scene recognition and multimodal element localization, this API distinguishes between storefront-related photos and other images. It locates the storefront, store sign, entrance, and business signage. This is suitable for store information collection, storefront photo classification, and inspection reviews. For details, see Storefront Scene Recognition.
Display Detection Lite -- Based on product SKU recognition and multimodal localization, this API aggregates location boxes by SKU for photos of shelves, freezers, and floor displays, and adds the short name for each visible product. This is suitable for display inventory counts, distribution checks, and single-item verification. For details, see Display Detection Lite.
Display Scene Detection -- Based on display scene recognition and multimodal localization, this API identifies display fixtures such as shelves, endcaps, floor displays, and refrigerated cases. It returns the location of these areas along with metrics such as area ratio, purity, and fullness. This is suitable for display fixture inspections and metric verification. For details, see Display Scene Detection.
Display Price Tag Detection -- Based on price tag recognition and multimodal localization, this API extracts product names, codes, sale prices, original prices, and locations from paper price tags, electronic shelf labels, and promotional signs. This is suitable for in-store price collection and price execution verification. For details, see Display Price Tag Detection.
Display Detection Pro -- Based on a dedicated vision model, this API directly identifies the location and name of visible products in an image. It supports default rules for Genki Forest and custom rules, returning a bounding box and name for each product. This is suitable for beverage display inspections and product location visualizations. For details, see Display Detection Pro.
Floor Display Area Inference Pro -- Based on product recognition, an SKU asset knowledge base, and a dedicated area inference model, this API automatically locates products in an image of a floor display. It then calculates the lengths of the two sides and the area of the enclosing rectangle based on real product dimensions and reference images. This is suitable for assessing the scale of in-store floor displays and for inspection reviews. For details, see Floor Display Area Inference Pro.
Intelligent Inspection API integration
1. Activate the service
Go to the Intelligent Inspection console and log in with the Alibaba Cloud account used for your business.
Follow the on-screen instructions to activate the inspection capabilities you need. Confirm that the service and your quota are available before you configure credentials.
Choose an access method. We recommend using an API key with HTTP. If you have an existing integration that uses an AccessKey or Security Token Service (STS), you can continue to use the official SDKs.
2. RAM users and permissions
Service activation and API authorization are configured separately. When a RAM user calls an API, ensure that the Alibaba Cloud account to which the RAM user belongs has activated the target capability.
To create an API key in the console: This process automatically creates an associated RAM user and grants the necessary permissions. Follow the steps in the next section.
To use an existing RAM user or RAM role, an administrator must grant the following permissions.
Log in to the RAM console and select the user or role that will be used to call the API.
In the "Add Permissions" panel, search for
aidgeand grant theAliyunAidgeFullAccesssystem policy.Use this identity's credentials for access. A RAM user can use an AccessKey. When using temporary STS credentials for a RAM role, you must also include the security token.
To restrict authorization to specific APIs, an administrator can configure a custom policy. The following table shows example permission actions. If you use a knowledge base, you must also have access permissions for the target knowledge base.
Purpose | Permission action |
MerchandisePlacementDetection |
|
Submit a VacancyDetection task |
|
Query an asynchronous task |
|
3. Create an API key (recommended)
Go to the Intelligent Inspection console. Then, navigate to "Quotas & API Keys → API key management → Create API key".

Follow the on-screen instructions to create the key. Copy the API key secret and save it in your server-side credential configuration. The secret is displayed in plaintext only once upon successful creation. Save it securely before closing the page.

An API key is called a ServiceCredential in OpenAPI and is bound to a specific cloud service. When making a call, use the API key secret from the creation result, not its ID or name. If you create an API key manually in RAM, ensure it is bound to the Aidge service and that the necessary permissions are configured for the associated RAM user.
Official documentation: Service credential management (API key).
4. Call the API
1. Common configuration
Item | Configuration |
Endpoint for China (Beijing) |
|
API version |
|
Request method | HTTPS, POST |
API key authentication |
|
API action | Specified in the |
Business parameters | Encoded into URL query parameters according to the specific API requirements. |
Response format | The examples specify JSON by using |
Clients, such as those written in Java, can use a standard HTTP client. The Java SDK for VacancyDetection is currently unavailable; we recommend calling the API using an API key. For SDK support for other APIs and languages, see the documentation for the specific API.
2. General cURL example
The following example sets the key using a server-side environment variable. Replace the image URL, knowledge base ID, and other parameters with your own resources.
export AIDGE_API_KEY='Replace with the API key secret created in the console'
export IMAGE_URL='https://example.com/shelf.jpg'
aidge_call() {
local action="$1"
shift
curl --silent --show-error --get --request POST \
'https://aidge.cn-beijing.aliyuncs.com/' \
--connect-timeout 15 --max-time 60 \
--data-urlencode 'Format=JSON' \
--header "Authorization: Bearer ${AIDGE_API_KEY}" \
--header "x-acs-action: ${action}" \
--header 'x-acs-version: 2026-04-28' \
--header "x-acs-date: $(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--header "x-acs-signature-nonce: $(uuidgen)" \
--header 'x-acs-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' \
--header 'Accept: application/json' \
"$@"
}
# Example: Submit an image for vacancy detection
aidge_call VacancyDetection --data-urlencode "ImageUrl=${IMAGE_URL}"The --get option appends parameters to the URL, while --request POST keeps the actual method as POST with an empty request body. The timestamp, nonce, and request body hash in the example are common request headers; you do not need to use them to calculate a signature. The example client timeout is 60 seconds. For server-side timeouts and long-running task handling, refer to the documentation for the specific API.
3. Synchronous and asynchronous processing
Call type | Example | Processing method |
Synchronous | Display Detection ( | The response contains the detection result. For general-purpose use, you typically pass |
Asynchronous Submission | Vacancy Detection ( | Typically, only |
Asynchronous Query |
| Pass the |
After defining the function above, you can query an asynchronous task using the same API key:
export TASK_ID='Replace with the TaskId returned by the submission API call'
aidge_call QueryAsyncTaskResult --data-urlencode "TaskId=${TASK_ID}"If a task has not completed, wait at least 1 second before querying again. After the task completes, read the result. If the task fails, read the error message. Do not resubmit the image to check the task status.
4. Use an official SDK
If you have an existing integration that uses an AccessKey or STS, you can use an official SDK or an OpenAPI tool to handle signatures and parameter serialization. For installation instructions, parameters, and code examples for different languages, go to the Aidge OpenAPI Developer Portal and select the relevant API. If you are accessing the service directly over HTTP, we recommend using the API key method described in this document.
5. Manage knowledge bases and process results
If you need to match items against your own SKUs, first create a knowledge base in the Product Knowledge Base management console. Select the general-purpose pipeline and the corresponding general model. We recommend that you download the template, fill in the product information, and upload the file. After the knowledge base becomes available, get the RagId. For scenario-specific custom training, contact the Intelligent Inspection team before selecting a pipeline or model.
You must create your first knowledge base in the product console. You can use APIs to add, delete, modify, and query content in an existing knowledge base. For more information, see MerchandisePlacementDetection knowledge base content management API. APIs that do not require SKU retrieval do not need a knowledge base. For specific requirements, see the API parameters.
When you integrate the API, follow these guidelines:
Ensure the image URL is accessible and returns valid image content while the request is queued and being processed.
Even after receiving an HTTP 200 status code, check the top-level
Success,Code, andMessagefields in the response. For asynchronous tasks, you must also check the task status and the final business result.Parse coordinates, SKUs, and similarity scores according to the specific API. An empty result can mean "no target or anomaly found" and does not indicate a call failure.
Save the
RequestId. For asynchronous tasks, also save theTaskId. If you encounter rate limiting, reduce the call frequency and retry with an exponential backoff. If you receive a parameter or permission error, correct the issue before calling the API again.Confirm your call volume, QPS, quota, and billing details based on the capabilities you have activated. Test with a small number of samples before you start batch processing.
6. Quick links
Purpose | Link |
Console, service activation, and API key creation | |
RAM user and role authorization | |
Official documentation for API keys | |
Parameters, code, and online debugging for MerchandisePlacementDetection | |
Parameters, code, and online debugging for VacancyDetection | |
Asynchronous result query |