Skip to main content

AI Video Generation

Image to Video

Image to video converts an image into a 5-second video. Provide a URL to an image to generate an mp4 video file. The video file can be used inside of your Edit or as a standalone asset.

{
"asset": {
"type": "image-to-video",
"src": "https://shotstack-assets.s3.amazonaws.com/images/handbag-flower-peaches.jpg",
"prompt": "Slowly zoom out and orbit left around the object.",
"aspectRatio": "16:9"
},
"start": 0,
"length": "auto"
}

This will generate a 16:9 video clip of the supplied image.

The generated video will automatically be cropped to fit the output dimensions of your video. You can change the fit property of the clip to change this behaviour.

Info

Videos will always be 720p, 24fps and 5 seconds in length.

Aspect Ratios

You can create 720p videos in the following aspect ratios:

  • 1:1
  • 16:9
  • 9:16
  • 4:3
  • 3:4
  • 21:9
  • 9:21

Camera angles

You can use the following camera movements in your prompts:

  • Static
  • Move Left
  • Move Right
  • Move Up
  • Move Down
  • Push In
  • Pull Out
  • Zoom In
  • Zoom Out
  • Pan Left
  • Pan Right
  • Orbit Left
  • Orbit Right
  • Crane Up
  • Crane Down