AI Effects
On this page

Function Overview


The ZEGO SDK has a comprehensive network of nodes covering key areas globally, providing a rich set of APIs for multi-platforms to offer clear and stable real-time voice and video cloud services. Below is a brief introduction to the basic APIs.

Method NameDescription
createCreate a Zego Effects SDK based on authentication. The authentication is handled internally, and users only need to pass the appID and appSign. The creation status is returned, where a status of 0 indicates success, and any other status indicates failure.
destroyDestroy the Zego Effects SDK instance to release related resources.
enableImageProcessingEnable or disable custom image processing and effects.
getAuthInfoObtain the SDK authorization information. With the authorization information and appID, a license file can be applied for from the ZEGO server.
getResourcesFolderGet the resource path of the current device.
getVersionGet the current version of the Effects SDK.
initEnvInitialize the Zego Effects environment and set the desired resolution.
setResourcesSet local materials or models.
setResourcesPathSet materials or models at a specified path.
uninitEnvUninitialize the Zego Effects environment.

Beauty Interface Functions

Method NameDescription
enableAcneRemovingEnable the acne removal function.
enableBigEyesEnable the big eye function.
enableCheekboneSlimmingEnable the cheekbone slimming function.
enableDarkCirclesRemovingEnable the dark circles removal function.
enableChromaKeyEnable the chroma key function.
enableChromaKeyBackgroundEnable the chroma key background.
enableChromaKeyBackgroundBlurEnable the chroma key blurred background function.
enableChromaKeyBackgroundMosaicEnable the chroma key mosaic background.
enableEyesBrighteningEnable the eye brightening function.
enableFaceDetectionEnable the face detection function.
enableFaceLiftingEnable the face lifting function.
enableFaceShorteningEnable the face shortening function.
enableForeheadShorteningEnable the forehead shortening function.
enableLongChinEnable the long chin function.
enableMandibleSlimmingEnable the mandible slimming function.
enableNoseLengtheningEnable the nose lengthening function.
enableNoseNarrowingEnable the nose narrowing function.
enablePortraitSegmentationEnable or disable the portrait segmentation function.
enablePortraitSegmentationBackgroundEnable the portrait segmentation function.
enablePortraitSegmentationBackgroundBlurEnable the portrait segmentation function and set the background to a blurred effect.
enablePortraitSegmentationBackgroundMosaicEnable the portrait segmentation function and set the background to a mosaic effect.
enableRosyEnable the rosy function.
enableSharpenEnable the sharpening function.
enableSkinColorEnable the skin color adjustment function.
enableSmallMouthEnable the small mouth function.
enableSmoothEnable the smoothing function.
enableTeethWhiteningEnable the teeth whitening function.
enableWhitenEnable the whitening function.
enableWrinklesRemovingEnable the wrinkle removal function.
setAcneRemovingParamSet the parameters for the acne removal function.
setBigEyesParamSet the parameters for the big eye function.
setBlusherSet the blush function.
setBlusherParamSet the parameters for the blush function.
setBlusherPathSet the blush function using an absolute resource path.
setCheekboneSlimmingParamSet the parameters for the cheekbone slimming function.
setClarityParamSet the parameters for the clarity function.
setChromaKeyBackgroundBlurParamSet the parameters for the chroma key blurred background.
setChromaKeyBackgroundMosaicParamSet the parameters for the chroma key mosaic background.
setChromaKeyBackgroundPathSet the path for the custom chroma key background.
setChromaKeyForegroundPositionSet the position and size of the chroma key foreground.
setChromaKeyParamSet the parameters for the chroma key function.
setColoredcontactsSet the colored contact lenses function.
setColoredcontactsParamSet the parameters for the colored contact lenses function.
setColoredcontactsPathSet the colored contact lenses function using an absolute resource path.
setDarkCirclesRemovingParamSet the parameters for the dark circles removal function.
setEyesBrighteningParamSet the parameters for the eye brightening function.
setEyelashesSet the eyelashes function.
setEyelashesParamSet the parameters for the eyelashes function.
setEyelashesPathSet the eyelashes function using an absolute resource path.
setEyelinerSet the eyeliner function.
setEyelinerParamSet the parameters for the eyeliner function.
setEyelinerPathSet the eyeliner function using an absolute resource path.
setEyeshadowSet the eyeshadow function.
setEyeshadowParamSet the parameters for the eyeshadow function.
setEyeshadowPathSet the eyeshadow function using an absolute resource path.
setFaceLiftingParamSet the parameters for the face lifting function.
setFaceShorteningParamSet the parameters for the face shortening function.
setFilterSet the filter function.
setFilterParamSet the parameters for the filter function.
setFilterPathSet the filter function using an absolute resource path.
setForeheadShorteningParamSet the parameters for the forehead shortening function.
setLipstickSet the lipstick function.
setLipstickParamSet the parameters for the lipstick function.
setLipstickPathSet the lipstick function using an absolute resource path.
setLongChinParamSet the parameters for the long chin function.
setMakeupSet the makeup function.
setMakeupParamSet the parameters for the makeup function.
setMakeupPathSet the makeup function using an absolute resource path.
setMandibleSlimmingParamSet the parameters for the mandible slimming function.
setNoseLengtheningParamSet the parameters for the nose lengthening function.
setNoseNarrowingParamSet the parameters for the nose narrowing function.
setPendantSet the pendant resource.
setPendantPathSet the pendant resource at a specified path.
setPortraitSegmentationBackgroundBlurParamSet the parameters for the portrait segmentation background blur effect.
setPortraitSegmentationBackgroundMosaicParamSet the parameters for the portrait segmentation background mosaic effect.
setPortraitSegmentationBackgroundPathSet the path for the custom background image of portrait segmentation.
setPortraitSegmentationForegroundPositionSet the position and size of the portrait segmentation foreground.
setRosyParamSet the parameters for the rosy function.
setSharpenParamSet the parameters for the sharpening function.
setSkinColorSet the skin color adjustment function.
setSkinColorParamSet the parameters for the skin color adjustment function.
setSmallMouthParamSet the parameters for the small mouth function.
setSmoothParamSet the parameters for the smoothing function.
setTeethWhiteningParamSet the parameters for the teeth whitening function.
setWhitenParamSet the parameters for the whitening function.
setWrinklesRemovingParamSet the parameters for the wrinkle removal function.

Previous

Error Codes

On this page

Back to top