Integration overview

更新时间:
复制 MD 格式

Vision AI Platform provides a visual console and multiple integration methods, including OpenAPI online debugging and the Alibaba Cloud SDK. To improve your development efficiency, choose the integration method that best suits your needs.

OpenAPI

To help you learn and use cloud product APIs efficiently, Alibaba Cloud provides the OpenAPI Explorer. This tool integrates API search, documentation, online debugging, SDK access, code samples, error diagnostics, and call statistics. You can use the OpenAPI Explorer to call the APIs of Alibaba Cloud products and view the requests and responses. The explorer also automatically generates SDK code samples to help you get started quickly. For more information, see What is OpenAPI?.

Versions

Alibaba Cloud OpenAPI uses version numbers to manage the API lists for major versions of cloud products. For example, Vision Intelligence Platform currently supports the API list for version 2024-01-11. The string 2024-01-11 is an API version number, not a date. The list shows the latest public API data, and the version number does not mean that the data has remained unchanged since that date.

Version

Description

2024-01-11 (API overview)

Recommended

Online debugging

The OpenAPI portal provides features such as API debugging for Vision AI Platform. Before making a call, familiarize yourself with the versions, endpoints, and integration methods provided by Vision AI Platform.

On the API debugging page in the OpenAPI Explorer, the left pane lists the available APIs. In the central configuration area, you can select a service region, such as China (Shanghai), and fill in required parameters like ImageURL by uploading a file or entering a URL. Click Initiate Call to start online debugging. The right-side panel provides reference information, including Documentation, Call Result, SDK Example, and CLI Example.

Debugging entry point

An example entry point for API debugging is: https://next.api.aliyun.com/api/facebody/2019-12-30/AddFaceEntity

Endpoints

Select an endpoint based on the region where your resources are located for the lowest latency. For example, for Optical Character Recognition (OCR) in the China (Shanghai) region, the public endpoint is ocr.cn-shanghai.aliyuncs.com and the VPC endpoint is ocr-vpc.cn-shanghai.aliyuncs.com.

  • Public endpoints are globally accessible.

  • VPC endpoints are accessible only from within the corresponding Alibaba Cloud region and VPC network. VPC endpoints offer the following advantages:

    • High security: Access is restricted to your VPC, providing enhanced security and privacy.

    • Faster response: Because they operate on the internal VPC network, VPC endpoints offer faster response times than public endpoints and avoid issues like public network latency.

    • Lower cost: VPC endpoints use internal network communication.

For more information, see Endpoints.

Supported identities

Note

This product supports API calls by using the following user identities. We recommend using a RAM user or RAM role with minimum necessary permissions for API calls.

Logging in to the OpenAPI Explorer with your Alibaba Cloud account grants full API access, posing a high security risk. For better security, we strongly recommend using a RAM user with the minimum necessary permissions for API calls and daily O&M. For more information, see Create a RAM user to manage Vision AI Platform.

Identity

Supported

Alibaba Cloud account

Yes

RAM user (Recommended)

Yes

RAM role (Recommended)

Yes

More information

Integration methods

Note

Using the SDK is the recommended way to call APIs because it offers the easiest integration and best support.

Usage notes

If a call to the Vision AI Platform API returns an error, you need to check whether the input request parameters and their values are correct based on the returned error code. For more information, see the common error codes for each feature in the API Reference. For example, see Common error codes for object detection for Object detection.

You can also record the RequestID from the response or the error message from the SDK and use the Alibaba Cloud OpenAPI Diagnostic Platform to diagnose the issue.

FAQ