Image Generation - download image

I need to convert URL returned by the Dalletool into an image file (image generated from the prompt in my crew) but could not find any documentation.

The object returned by the crew has URL but it’s failing to request image data from that url.

Any pointers?

Any pointer on this query?

I’m stuck on this too…would love to figure it it.

What does the response object with the URL look like? If you have the URL you could then download it using python

import requests

with open('file.png', 'wb') as f:
    f.write(requests.get(url).content)

It’s easier is your crew returns a Pydantic object or JSON so that extracting the URL is easy