Topview Logo
  • Create viral videos with
    GPT-4o + Ads library
    Use GPT-4o to edit video empowered by Youtube & Tiktok & Facebook ads library. Turns your links or media assets into viral videos in one click.
    Try it free
    gpt video

    OpenAI API: Working with the Image APIs (DALL-E), Part 2 -- Saving, Editing, & Variants

    blog thumbnail

    Introduction

    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.

    Saving Images

    URL Method

    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:

    One more thing

    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.

    You may also like