Upload Image to Wordpress from Stability AI

I’ve searched everywhere on this forum and have found nothing that is helping me solve this. I have successfully integrated with Stability AI and this is the response I get in binary. I am unable to pass this as the featured image for the wordpress create a post.

this is wordpress

Hey @Aaron1

welcome to the make community

First you have to create a media item like this

and map the “media item ID”

Screenshot 2024-02-05 230756

you can not map data directly.

3 Likes

Thanks for the response. I am still having trouble basically being able to pass images from stability AI to wordpress. is there a way to convert the binary to a valid image URL? Chat gpt allows this data format, but i can’t seem to figure out how to do this for my custom http request to stability AI.
Screenshot 2024-02-05 at 1.00.50 PM

You’ll have to use the Wordpress “Create a Media Item” first with your image binary data, before you can map the newly created media’s ID into “Create a Post” module.

I don’t think you can’t directly upload to Wordpress with an (image) URL. Just upload the image binary data using the “Create a Media Item” module.

2 Likes

@Aaron1

I use Google Drive to convert binary data into a link


“Create Media Item” can accept binary , allowing you to directly upload your image to WordPress, “Create a Media Item”, and use the “Media Item ID” for further purposes.

3 Likes