All Products
Document Center

Public Model Calling Method

Last Updated: Jun 01, 2020


Before you deploy an online model service, you must activate API Gateway. Alibaba Cloud API Gateway provides a hosting service for managing the lifecycle of APIs. For more information about pricing, see API Gateway pricing.

Call methods

After API Gateway is activated and Elastic Algorithm Service (EAS) deploys the service, the system automatically generates an endpoint for the service. You can send HTTP requests to this endpoint to call the service. To obtain the endpoint and the required authentication information, go to the Elastic Algorithm Service (EAS) page and then click the service name.

Advanced features based on API Gateway

1. View API information

  1. On the Alibaba Cloud site, select Console > Products<> > <>Application Services > <>API Gateway<> to log on to the API Gateway console.
    ! [] (
  2. Select the China (Shanghai) region to view the API information generated during the service deployment process.
    ! [] (
  3. Click Manage in the <>Actions<> column to view the API configuration.
    ! [] (

2. Authorize APPs for the API

Click Authorize in the Actions column to authorize users. These users are known as APPs in API Gateway. Only authorized APPs can call the API. This guarantees the security of the API.
! [] (

3. Bind the API group to a domain name

Every API belongs to an API group. You can create API groups to manage APIs.

  1. Log on to the API Gateway console, and select APIs.
  2. Select the target region. In this example, the China (Shanghai) region is selected. Click the API name to view the API group information.
    ! [] (

  3. Click the Back<> icon in the upper-left corner and then select API Groups<>. Click the name of the API group that contains your API to view the subdomain name.
    ! [] (
    By default, a subdomain name is bound to the API group. The subdomain name is only for testing purposes. It can be accessed for up to 1,000 times per day.

  4. If you have more requirements, Select API Groups > <>Bind Domain<> to bind a domain name to the API group.
    ! [] (

    For more information, see Bind domain name and certificate.