Create an ARTC application

Updated at:
Copy as MD

Activate ApsaraVideo Live, create an ARTC application, and obtain the AppId and AppKey required for API calls.

Prerequisites

An Alibaba Cloud account is created and identity verification is complete. To create an Alibaba Cloud account, visit the Alibaba Cloud official website. For more information, see Create an Alibaba Cloud account.

Activate service

  1. Log in to the ApsaraVideo Live product page and click Buy Now to go to the activation page.

  2. Click Activate to go to the ApsaraVideo Live purchase page.

    This page compares Standard live streaming and Real-Time Streaming (RTS). Standard live streaming has a latency of ≥3s, supports the RTMP, HLS, and FLV protocols, and is enabled by default after activation. Real-Time Streaming (RTS) has a latency of ≤1s, supports the ARTC (WebRTC) protocol, and requires you to add and configure a streaming domain after you activate ApsaraVideo Live.

  3. On the ApsaraVideo Live purchase page, select a billing method: pay-by-data-transfer. For more information, see Standard live streaming pricing.

  4. Read and agree to the Terms of Service and Service Level Agreement, then click Activate Now to finish the activation.

    截屏2025-07-07 11

Create an application

  1. In the ApsaraVideo Live console, navigate to ApsaraVideo Live > Live+ > ApsaraVideo Real-time Communication > Application Management, and click Create Application.

  2. Enter an instance name (which can include both Chinese and English characters), select the Terms of Service checkbox, and click Buy Now.

    Note

    Creating an application is free. You pay based on actual usage. For billing details, see ARTC billing.

    Set Service Type to ApsaraVideo Real-time Communication and Billing Method to Pay-By-Duration.

  3. After the success message, return to the Applications page and refresh to view your ARTC application.

    The application appears with an Enabled status. Available actions: Manage, usage query, quality tracking, disable, and delete.

Get development parameters

Click Manage next to the application to access its AppId and AppKey, which are required for API calls such as joining a channel.

On the Basic Information tab, find the Application ID and AppKey. Click the copy icon next to each value to copy it.

Token

A token is a signature-based credential that prevents unauthorized access to your Alibaba Cloud services.

During development, generate tokens client-side without a token server. Before releasing, deploy your own token server. For more information, see token-based authentication.