What image type does inference text-to-image API return?

My POST request to a hugging face text-to-image model is returning a data string that starts with:

“����\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00��”

How do I convert to this to a Blob, base64 or File?

got it working by including a responseType param in the POST request to hugging face.

Outlined the Node.js request here.

Quite amazing that you are the only person to ever ask this question, and it’s not documented anywhere. What’s with the mystery around it?