Generate with Motion 1.0 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 with Motion 1.0 Using Generated Images
Open Recipe
The guide will recreate the following functionality in the Web UI via API.

TipBe sure to use the
idfrom the Get Single Generation API call as theimageIdin your request, instead of thegenerationIdfrom 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 about 2 months ago
