POST
/
v1
/
images
/
edits

Authorizations

Authorization
string
headerrequired

Bearer authentication header.

example value: Bearer Galadriel-API-key

Get API key from Galadriel dashboard.

Body

multipart/form-data
image
file
required

The image to be edited.

prompt
string
required

A text description of the desired image(s).

model
string
required

The model to use for image editing.

n
integer
default: 1

The number of images to generate. Must be between 1 and 10.

Required range: 1 < x < 10
response_format
enum<string>
default: url

The format in which the generated images are returned.

Available options:
url,
b64_json
size
enum<string>
default: 1024x1024

The size of the generated images.

Available options:
256x256,
512x512,
1024x1024
user
string | null

A unique identifier representing your end-user

Response

200 - application/json
created
integer
required
data
object[]
required