Hey guys,
Doing some tests, I think the error comes from an authentication problem in the API. When trying to upload the image, usually the WordPress API returns a rest_cannot_create
error.
The workflow below generates the image with OpenAI, compresses it to .webp
image format and uploads it to the test WordPress instance.
To solve the authentication problem discussed above, simply install this plugin on the WordPress installation where you want to upload the images so that the rest_cannot_create
error disappears.