DALLE 3 and Firebase

I'm currently working on an app that utilizes the DALLE 3 API to generate images. Currently, the app can show the users the images via the url provided in the response (with the 2-hour expiration). I then have two buttons below the image, Save and Trash. When the user selects save I would like for the image to be uploaded to Firebase so later I can build a gallery for the user to view these image. How can I save these images to Firebase such that I can retrieve them later on. I have not been able to figure this out. I tried to use the AI custom action builder but ran into a ton of errors. I did configure Firebase Storage.

Thanks so much!

PS I might need a little more detail if it involves any custom code.

3
9 replies