Edit Images

Edit images with prompts

post/images/edits

Request

  • Base URL
    https://api.electronhub.ai/v1
  • URL
    https://api.electronhub.ai/v1/images/edits
  • Auth
    HTTP bearer

Request body multipart/form-data

imagestring binary required

The image to edit

promptstring required

A text description of the desired image

modelstring required
ninteger
size'256x256' | '512x512' | '1024x1024'
response_format'url' | 'b64_json'

Example request

{
  "model": "flux-1-kontext-pro"
}

Response

Success

createdinteger required

Changes

No recorded changes to this operation across all 2 revisions of this API.