Is there any way to integrate the image with chagpt photo editor plugin using code

Hi, I am working on a product to generate ad images using Dalle Api. I need to use an image editor plugin to make some changes to the image using API only. I don’t want to use UI for this.

Let me know any option or suggestion to do this.