Use B64 as Image input for Edits and Variations?

I’m working in an environment where I cannot upload images directly to the api and only have access to either an Image’s URL or Base64 encoded string.

Is it possible to use a URL or b64 string as input for the Image/Edits or Image/Variations endpoints?
If so, how can I do that? I’m using a simple Fetch request in Js.

If not, I suggest adding it as I’m sure many people would benefit from the flexibility there.

Thanks!

1 Like