Where are images saved - Gpt-4-vision API

Hi team,

I would like to know if using Gpt-4-vision model for interpreting an image trough API from my own application, requires the image to be saved into OpenAI servers? Or just keeps on my local application?

If this is the case, can you tell me where exactly are those images saved? how can I access them with my OpenAI account? What type of retention time is set?..

Many thanks in advance

You can host the images in your own server or somewhere you have access to.

If you host it in your server, you can now do this…

{
  "type": "image_url",
  "image_url": {
    "url": "https://your-server.com/location/of/image.jpg",
  },
},

If the image is user uploaded or you do not want to save in the server, you can directly send the base64 image data.

{
    "type": "image_url",
    "image_url": {
      "url": f"data:image/jpeg;base64,{base64_image}"
    }
  }

OpenAI does not manage the image data.

After an image has been processed by the model, it is deleted from OpenAI servers and not retained. We do not use data uploaded via the OpenAI API to train our models.

1 Like