Skip to main content
POST
/
v1
/
images
/
edits
Image Editing
curl --request POST \
  --url https://www.anyfast.ai/v1/images/edits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form model=flux-1-kontext-pro \
  --form image='@example-file' \
  --form 'prompt=<string>' \
  --form n=1 \
  --form 'size=<string>'
{
  "created": 1774002799,
  "data": [
    {
      "b64_json": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
model
enum<string>
required

Model ID

Available options:
flux-1-kontext-pro
image
file
required

Image file to edit.

prompt
string
required

Editing instructions. Must be in English.

n
integer
default:1

Number of images to generate. Only 1 is supported.

Required range: 1 <= x <= 1
size
string

Output image size, e.g. 1024x1024.

Response

Image edited successfully

created
integer

Unix timestamp

Example:

1774002799

data
object[]