AI multiple binary files

Hi! I'm tried out the AI image generator, and it retrurns the image as a binary data. How can I send 2 image files (+ some extra data) to the frontend in the same request? I tried converting to base64, but that's not possible is ts. I tried putting them in an array, but that returns [[Object object], [Object object]] Thank you for your help!
2 Replies
Chaika
Chaika8mo ago
You can base64 anything, you'd just have to handle decoding it client-side
Chika-chika Slim Shady
I already solved it by using multiple endpoints in my worker, but still thank you for your help
Want results from more Discord servers?
Add your server