Generate Motion Using Generated Images
Example for generating a video (motion) from images generated on Leonardo.Ai
Follow this recipe to generate motion using generated images:
π¦
Generate Motion Using Generated Images
Open Recipe
The guide will recreate the following functionality in the Web UI via API.
Tip
Be sure to use the
id
from the Get Single Generation API call as theimageId
in your request, instead of thegenerationId
from the Create Generation of Images API call. This way, you'll apply Motion to the exact image you're aiming for, and avoid any errors if applied to the generation of images.
Sample Request
curl --request POST \
--url https://cloud.leonardo.ai/api/rest/v1/generations-motion-svd \
--header 'accept: application/json' \
--header 'authorization: Bearer <YOUR_API_KEY>' \
--header 'content-type: application/json' \
--data '
{
"imageId": "<YOUR_GENERATED_IMAGE_ID>",
"motionStrength": 3,
"isPublic": true
}
'
Updated 9 months ago