BUILT FOR WEB

Beauty AR SDK for Web

Add live retouching, face effects, and virtual backgrounds to your browser camera with the Beauty AR SDK for Web.

DEVELOPER RESOURCES

Beauty AR SDK for Web Docs & Examples

Makeup, tried on in the browser

Let users preview lip shades and makeup effects through their camera.

WEB BEAUTY AR CAPABILITIES

Build the camera experience your app needs

Camera inputs

  • Built-in camera capture
  • Custom streams and images

Real-time appearance

  • Adjustable skin retouching
  • Filters and makeup effects

Background controls

  • Background blur
  • Image and video backgrounds

Explore the Beauty AR SDK for Web

Connect the APIs to your camera, controls, and effect assets.

Camera input

Start with a browser preview

Use the Beauty AR SDK for Web to capture camera input and preview the processed stream.

Read the Documentation
preview.js
sdk.on('ready', async () => {
  const player = await sdk.initLocalPlayer('preview');
  await player.play();
});

CUSTOMIZATION

Your interface. Your look.

Keep the experience consistent with your application.

Make the camera experience yours

Build a sidebar or a bottom toolbar around the Beauty AR SDK for Web. Your application owns the controls.

Read the Documentation

GET STARTED

Get started with the Beauty AR SDK for Web

  1. 01

    Prepare your license

    Match your license to your web domain.

    Open Beauty AR Console
  2. 02

    Add the Beauty AR SDK for Web

    Follow the platform guide to connect your project.

    Follow the Integration Guide
  3. 03

    Process your first frame

    Initialize the Beauty AR SDK for Web, wait for ready, and preview the processed camera stream.

    Configure the License
Web Beauty AR SDK
Terminal
npm install tencentcloud-webar
camera-preview.js
import { ArSdk } from 'tencentcloud-webar';

// Start after the user chooses to enable the camera.
const sdk = new ArSdk({
  auth: { appId, licenseKey, authFunc },
  module: { beautify: true, segmentation: true },
  camera: { width: 1280, height: 720 },
});
sdk.on('ready', async () => {
  const player = await sdk.initLocalPlayer('preview');
  await player.play();
});

Beauty AR SDK for Web FAQs

Does the Beauty AR SDK for Web include a complete video calling app?

No. It processes camera media and provides preview APIs. Add your own application interface and a separate RTC or streaming SDK to publish the output.

How do I authorize the Beauty AR SDK for Web?

Bind your web license to the correct domain. Provide the App ID, license key, and a server-backed signature callback; keep the license token on your server.

Can I use the Beauty AR SDK for Web with an existing camera stream?

Yes. Choose custom input mode for an existing stream, or use built-in camera capture. Handle camera permissions and resource cleanup in your application.

Which browsers should I test?

Check the current compatibility guide and test your target devices. Transparent backgrounds work locally on supported browsers, but WebRTC publishing does not preserve their alpha channel.

How is the Beauty AR SDK for Web licensed?

Choose a Web license with the effects your application needs. Review the current trial conditions and package coverage before enabling production use.

How do I integrate beauty AR SDK for web with a browser application?

Follow the browser setup and supported environment requirements. Test permissions where used, navigation and cleanup in the actual browsers you intend to support.

How do I test beauty AR SDK for web before releasing my app?

Test your licensed input and effect processing, including camera permission when used and cleanup after preview exit.

How do I customize the interface for beauty AR SDK for web?

Connect supported effects to your own preview and selectors. Assets, feature support and license scope must match the target platform.

Web Beauty AR Integration Support

Talk about your application

Discuss your product, expected usage, and integration needs.

Contact Sales

Put your camera experience in motion

Start building with the Beauty AR SDK for Web and a license matched to your application.