Transform yourself into any character in realtime with AI-powered video editing at 720p
Lucy 2 is our most advanced realtime video editing model. Upload a reference image and watch yourself transform into that character live. It builds on everything in our original Lucy realtime model and adds character reference: provide any face, and Lucy 2 maps your movements and expressions onto that identity in real time.
Use Lucy 2 as your default realtime editing model. It supports character reference and text-only editing in the same integration.
Lucy 2 uses your reference image as a visual identity target. Your live video provides the motion, expressions, and pose — the model blends the two so the output looks like the reference character performing your movements.
1
Connect with your camera
Establish a WebRTC connection with your camera stream, just like any other realtime model.
2
Upload a reference image
Provide any portrait photo — a character, a celebrity, or a generated face. The model extracts the visual identity from this image.
3
See yourself transformed
Your movements, expressions, and gestures are mapped onto the reference character in realtime. The output stream shows the character performing your actions.
You can change the character at any time without reconnecting. Use the set() method to atomically update the prompt and image together:
Copy
Ask AI
// Change to a new characterawait realtimeClient.set({ prompt: "Transform into this character", image: newCharacterImage, enhance: true,});// Update just the imageawait realtimeClient.set({ image: newCharacterImage });// Update just the promptawait realtimeClient.set({ prompt: "Add sunglasses to the character" });// Clear the reference image (fall back to text-only editing)await realtimeClient.set({ image: null });
Always use set() when updating both the prompt and image. This applies both changes atomically, avoiding intermediate states where only one value has changed.
Lucy 2 works without a reference image too. Use text prompts to add, modify, or remove elements in your live video:
Copy
Ask AI
// No reference image needed for text-only editsawait realtimeClient.set({ prompt: "Add a small dog running around" });await realtimeClient.set({ prompt: "Change the background to a beach" });await realtimeClient.set({ prompt: "Make the person's hair blonde" });