Stable Diffusion into Wordpress featured Image


I have made an Post request via HTTP to Stable Diffusion and getting the image back. It is via an Link.png File. This Works. But now i have the Problem how to upload it to my Wordpress Site s an featured Image.

Uploading via Link seems not to work.

Does anyone have a suggestion how i could make it work?