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.
How to Make a Call
API Schemas
Now, all of our API schemas for video models use our new universal short URL — https://api.aimlapi.com/v2/video/generations.
However, you can still call this model using the legacy URL that includes the vendor name.
Create a video generation task and send it to the server
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.
Video effect scene type
The length of the output video in seconds.
5Possible values: 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.
Successfully generated video
Successfully generated video
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.
Last updated
Was this helpful?









