Activate OSS

更新时间:
复制 MD 格式

When you call a feature of the Visual Intelligence API, you must provide the URL of the file to be processed. You can use Alibaba Cloud Object Storage Service (OSS) to store and access your files and obtain their URLs.

Background information

Alibaba Cloud Object Storage Service (OSS) is a cloud storage service for storing and accessing data over the internet. You can use OSS to store and retrieve various unstructured data files, such as text, images, and audio and video files.

Note

If you have questions about API access, interface usage, or other issues related to the AI capabilities of the Visual Intelligence API, you can contact us by joining our DingTalk group (ID: 23109592).

Activate OSS

  1. Log on to the Alibaba Cloud website.

  2. Hover over Products and click Object Storage Service to go to the OSS product page.

  3. On the OSS product page, click Activate Now.

  4. After the service is activated, click Management Console on the OSS product page to go to the OSS console.

    Note

    For more information about OSS billing, see Billing overview.

Create a bucket

After you activate OSS, you must create a bucket to store your files. Perform the following steps in the OSS console.

  1. Log on to the OSS console.

  2. Click Buckets, and then click Create Bucket.

    Alternatively, you can click Overview, and then click Create Bucket on the right.

  3. On the Create Bucket page, configure the bucket parameters.

    Select the same region as your Visual Intelligence API service. Currently, the Visual Intelligence API is available in the China (Shanghai) region.

    For more information about how to configure bucket parameters, see Create a bucket in the console.

  4. Click Create.

Upload a file

After you create a bucket, you can upload files (objects) to it. Perform the following steps to upload a file using the OSS console.

  1. Log on to the OSS console.

  2. Click Buckets, and then click the name of the destination bucket.

  3. Click Files > Upload.

  4. On the Upload page, configure the upload parameters.

    For more information about upload parameters, see Upload a file from the console.

  5. On the Upload Jobs page, wait for the upload task to complete, and then close the dialog box.

View a file URL

After the file is uploaded, you can view its URL in OSS. To do so, perform the following steps.

  1. Log on to the OSS console.

  2. Click Buckets, and then click the name of the destination bucket.

  3. Click Files.

  4. In the file list, click Details in the row of the desired object file.

  5. On the Details page, you can view and copy the file URL.