luma_generate_video_from_image
Generate AI video from a start image, end image, or both. Describe motion in a prompt to animate between images with controlled transitions.
Instructions
Generate AI video using reference images as start and/or end frames.
This allows you to control the video by specifying what the first frame
and/or last frame should look like. Luma will generate smooth motion between them.
Use this when:
- You have a specific image you want to animate
- You want to create a video transition between two images
- You need precise control over the video's visual content
At least one of start_image_url or end_image_url must be provided.
Returns:
Task ID and generated video information including URLs, dimensions, and thumbnail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the video motion and content. Describe what should happen in the video, how objects should move, what transitions to include. | |
| start_image_url | No | URL of the image to use as the first frame of the video. The video will animate from this image. | |
| end_image_url | No | URL of the image to use as the last frame of the video. The video will animate towards this image. | |
| aspect_ratio | No | Video aspect ratio. Usually should match your input image ratio. | 16:9 |
| loop | No | If true, generate a looping video. Default is false. | |
| enhancement | No | If true, enable clarity enhancement. Default is true. | |
| timeout | No | Timeout in seconds for the API to return data. Default is 300. | |
| callback_url | No | Webhook callback URL for asynchronous notifications. When provided, the API will call this URL when the video is generated. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |