luma_generate_video_from_image
Generate AI videos from reference images, using them as start or end frames to control motion and create smooth transitions between two images.
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 |
|---|---|---|---|
| loop | No | If true, generate a looping video. Default is false. | |
| prompt | Yes | Description of the video motion and content. Describe what should happen in the video, how objects should move, what transitions to include. | |
| timeout | No | Timeout in seconds for the API to return data. Default is 300. | |
| enhancement | No | If true, enable clarity enhancement. Default is true. | |
| aspect_ratio | No | Video aspect ratio. Usually should match your input image ratio. | 16:9 |
| callback_url | No | Webhook callback URL for asynchronous notifications. When provided, the API will call this URL when the video is generated. | |
| end_image_url | No | URL of the image to use as the last frame of the video. The video will animate towards this image. | |
| start_image_url | No | URL of the image to use as the first frame of the video. The video will animate from this image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |