The **Edit Image** block allows to use Open AI's API to edit an image via the URL given to the block.

*An API (Application Programming Interface) is a set of functionalities made available to a client/user via a library (methods of a programming language) or a web service.*

![](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBYXM9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e6cfe7ee16ebc7043e25a7007468aa9cf7494eb9/capture-decran-2025-04-30-1409_1yqlcq6.png?cw_image_width=517px)

This block has different settings : 
* the _size_ field allows to change to size the returned image
* the _prompt_ field allows to send the request to the AI
* the _URL_ field allows to send a link to the image that will be edited to the AI
* the _quality_ field allows to set the quality of the returned image

**Important:** using OpenAI's API can take some time (between 30 seconds to more than 1 minute): it is necessary to wait a few seconds to have a result.
**Note:** the URL returned by the **Edit Image** block is quite big (a few Mega bits). To get a visual of the image in Voltask, it is recommanded to use the **WriteToLog** block, or it possible to show it in the **HTML5** block of Celestory.

Here is an example of what the **Edit Image** block can to:

*the image used*

![](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBYk09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--66ac1f0361c3b98dcd9791de2e98732d8f0f392d/cottagehouseai_wb3jqd.png?cw_image_width=400px)

*after the edition*

![](https://chatwoot.fr.nocodespacelab.com/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBYlE9IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--845dc47d39aceab25e5a11fe505a0c42fb829b1b/cottagehouseaiedit_12wtoer.png?cw_image_width=400px)
