Breaking: Now you can turn images into video with ChatGPT!

 

How to do it? Use the new feature called Code Interpreter. See the steps below 👇

Step #1

We will be using the ChatGPT Code Interpreter model.

To enable it, go to Settings -> Beta Features -> Code Interpreter

It will be available to all ChatGPT plus users this week.

Image

Step #2

Select the “Code Interpreter” option from the dropdown menu.
Then, upload the image that you want to animate.
Image

Step #3

Let’s say you want to showcase some food for a luxurious restaurant.
Therefore, I will ask GPT to animate this food image from left to right. By modifying my GPT prompt (see below), you can create your own animations.
Image

Step #4

Here is the prompt that I used to animate the food:
This image is a panoramic shot. Help me turn it into a video with aspect ratio 3:2, with the image filling the entire video (so the sides are cut off). The video should be centered in the middle of the image. Then, pan the video smoothly (with no sudden jumps) as follows: Start: Center --> Right --> Center --> Left --> Center: End Use the imageio library to help you. Save the frames directly to a video file instead of into a list. Use a frame step of 8 pixels. If necessary, crop the edges of the image so that the size of the image is divisible by the frame step.

Prompt:

This image is a panoramic shot.

Help me turn it into a video with aspect ratio 3:2, with the image filling the entire video (so the sides are cut off). The video should be centered in the middle of the image.

Then, pan the video smoothly (with no sudden jumps) as follows:

Start: Center –> Right –> Center –> Left –> Center: End

Use the imageio library to help you. Save the frames directly to a video file instead of into a list.

Use a frame step of 8 pixels. If necessary, crop the edges of the image so that the size of the image is divisible by the frame step.

Step #5

Hit Enter. After 30 seconds, ChatGPT will give you a download link for the video.

Image

And that’s it!

How to modify the prompt:  

  1. To make the image smaller, tell GPT to resize it by 50%.  
  2. To pan the video from bottom to top, change the prompt to “Start: Bottom -> Center -> Top: End”  
  3. To make the video 2x faster, change the frame step from 8 to 16 pixels.

Image