Dall-E API b64_json how to convert it to real image using javascript

Hello guys, I am facing a problem when I try to decode b64_json data received from Dall-E API. But when I put it in a image can’t be loaded.I am using Javascript. Is there any way to decode it correctly.

Welcome to the forum!

I asked GPT-4 to read your mind and show us your code, but alas, that did not work.

Without seeing your code, it’s hard to see where you might be messing up. :wink:


Hi Paul, thank you for replying. Acctualy I don’t have a code, the problem is that I don’t know how to decode it and show it to the user (I am making a website that generate imgages using dall-e)