Hello, everyone! I am experimenting with DALLE-2 and Home Assistant and being able to generate a prompt through Node-RED.
I have a flow currently working to the point of a debug node reading a payload of "image_url" with the link. I am extracting this from "payload.data[0].url" from the API call to OpenAI. This is my first time doing anything quite like this in Node-RED.
What I am struggling with is how I can take the URL in that payload and save the image to /local/images/dalle2-output.jpg
Here is a sample output from the last debug of my flow:
msg.image_url : string[476]
"https://oaidalleapiprodscus.blob.core.windows.net/private/org-f1Nmwrij1YbgtY3Z3xDaAB3t/user-QuN2BD7Mys7OXmpMsDvKlF9j/img-4nGUXgyEFpItc2CQkqwHoEKK.png?st=2023-08-13T13%3A50%3A22Z&se=2023-08-13T15%3A50%3A22Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-08-12T17%3A31%3A47Z&ske=2023-08-13T17%3A31%3A47Z&sks=b&skv=2021-08-06&sig=7wxC44KDiEnF1Fly1LsELPLWs6eZ5/HU9%2BhL%2BOSkyt0%3D"
How can I save the image from that URL? Thank you so much, in advance!