# Use B64 as Image input for Edits and Variations?

**URL:** <https://community.openai.com/t/use-b64-as-image-input-for-edits-and-variations/127260>\
**Category:** API\
**Created:** [March 29, 2023, 3:41pm UTC](https://community.openai.com/t/use-b64-as-image-input-for-edits-and-variations/127260 "2023-03-29T15:41:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ygmantell](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ygmantell/32/44820_2.png) [@ygmantell](https://community.openai.com/u/ygmantell)\
**Post date:** [March 29, 2023, 3:41pm UTC](https://community.openai.com/t/use-b64-as-image-input-for-edits-and-variations/127260/1 "2023-03-29T15:41:01Z")

</div>

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!
