Create Transparent Avatar Videos in WebM Format
This use case shows how to generate an avatar video with a transparent background in WebM format (alpha channel) using Creatifyβs API.Perfect for overlaying an avatar on webpages, product demos, games, or editors without a background box. Hereβs an example of a generated transparent WebM avatar video:
πͺ Step 1: Create a Transparent Avatar Video
Send the script, choose an avatar, set your aspect ratio, and turn on transparency.POST /api/lipsyncs/
β The generated WebM includes an alpha channel, so the background is fully transparent.
β³ Step 2: Check Video Generation Status
After submitting a video generation request, use the returned task ID to monitor progress and retrieve the completed video when itβs ready.GET /api/lipsyncs/{id}/
β³ Once the status isdone, download your video from theoutputfield. You can embed or download the file and overlay the avatar on any background in your app or editor.
π‘ Tips
- Player support: Ensure your player/environment supports WebM with alpha so transparency appears correctly.
- Overlay use: Place the WebM on top of other UI layers for dynamic, background-free avatars.
- Sizing: Match
aspect_ratioto your target layout (e.g.,9:16for vertical,16:9for landscape).
β Summary of Endpoints
| Step | Endpoint | Description |
|---|---|---|
| 1 | /api/lipsyncs/ | Create transparent avatar video |
| 2 | /api/lipsyncs/{id}/ | Check video generation status |

