v1.6-pro/effects
A specialized video model that generates short clips based on reference images of people, applying one of several preset scenarios: two people hugging, kissing, or making a heart shape with their hands (requires 2 reference images), or a single person being humorously squished like clay or inflated like a balloon (requires 1 reference image).
Setup your API Key
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
Code Example
In this example, we'll try to make two people from different photos (provided via URLs) form a romantic heart shape with their hands. No prompt is required — the effect is selected by setting the appropriate value for the effect_scene parameter.
The code below creates a video generation task, then automatically polls the server every 10 seconds until it finally receives the video URL.
API Schemas
Generating a video using this model involves sequentially calling two endpoints:
The first one is for creating and sending a video generation task to the server (returns a generation ID).
The second one is for requesting the generated video from the server using the generation ID received from the first endpoint.
Below, you can find two corresponding API schemas and an example with both endpoint calls.
Create a video generation task and send it to the server
Bearer key
Video effect scene type
For hug, kiss, and heart_gesture effects, pass an array containing exactly two image URLs. For squish or expansion, only one image URL is required.
The length of the output video in seconds.
Successfully generated video
Successfully generated video
Retrieve the generated video from the server
After sending a request for video generation, this task is added to the queue. Based on the service's load, the generation can be completed in seconds or take a bit more.
Bearer key
Successfully generated video
Successfully generated video
Last updated
Was this helpful?









