POST
/
images
/
edits
Create image edits
curl --request POST \
  --url https://api.anyapi.ai/v1/images/edits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form model=gpt-image-1 \
  --form image=@example-file \
  --form 'prompt=Create a lovely gift basket with these four items in it' \
  --form mask=@example-file
{
  "created": 123,
  "data": [
    {
      "url": "<string>",
      "b64_json": "<string>",
      "revised_prompt": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Body

multipart/form-data

Response

200
application/json

Successful response

The response is of type object.