Edit image

Edit or inpaint an image from one or more reference images. Unsupported fields and unsupported file field names are rejected.

post/images/edits

Request

  • Base URL
    https://api.llm7.io/v1
  • URL
    https://api.llm7.io/v1/images/edits
  • Auth
    HTTP bearer

Request body multipart/form-data

modelstring required

Image model ID.

promptstring required

Edit or inpaint instruction.

sizestring

Requested output size. Support depends on the selected model.

imagestring[] required

Reference images. Send each file with the repeated field name image.

Example request

{
  "model": "gpt-image-2",
  "size": "1024x1024"
}

Response

Edited image response

Example response

{
  "usage": {
    "cost_usd": "0.01200000"
  }
}

Changes

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