Alright everyone, Zan from Really Easy AI here. Welcome back to part two of our series on using the OpenAI API to generate images with DALL-E 2 and DALL-E 3. In this article, we'll talk about saving, editing, and creating variants of the images.
We've already covered generating images. Now, let’s dive into the details of saving the generated images. When you generate an image, it can be returned either as a URL or as base64 encoding. Each format has its use, but using URLs is more common because they are easier to work with and display. In this guide, we'll cover both methods.
When an image URL is generated, it is only valid for one hour. So, if you want to keep the image, you must download it within this timeframe. Below is the code to download an image using the URL method:
In addition to the incredible tools mentioned above, for those looking to elevate their video creation process even further, Topview.ai stands out as a revolutionary online AI video editor.
TopView.ai provides two powerful tools to help you make ads video in one click.
Materials to Video: you can upload your raw footage or pictures, TopView.ai will edit video based on media you uploaded for you.
Link to Video: you can paste an E-Commerce product link, TopView.ai will generate a video for you.