Effects Web
Effects / Guides / AR masks / Web

Add an AR face mask on Web with Nosmai Effects

Updated August 27, 2026

Select a Web-compatible AR face mask through Cloud Filters, apply it in the developer preview, and test its tracking behaviour.

Prerequisites

  • A working Web quickstart
  • A Web-compatible AR mask available through Cloud Filters

Download and apply the mask

Use the URL returned for the selected Web-compatible Cloud Filter:

const maskUrl = selectedCloudFilter.downloadUrl;
const result = await sdk.applyEffect(maskUrl);

if (!result.success) {
  throw new Error(result.error ?? 'AR mask could not be applied');
}

The mask handles face tracking and its configured trigger behaviour. The Web preview does not expose application-level raw face landmarks.

Verify it worked

Test face loss, return, head rotation, camera permission restart, and browser tab visibility changes.

Common errors

SymptomFix
Cloud Filter request failsCheck static path, HTTPS, CORS, and Content Security Policy
Mobile filter is rejectedUse a Cloud Filter marked as compatible with the Web preview
Camera does not restartStop previous tracks and request a new stream from a user gesture

Next steps

References

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved