POST
/
v1
/
images
/
edits
curl --request POST \
  --url https://api.galadriel.com/v1/images/edits \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'prompt=<string>' \
  --form 'model=<string>' \
  --form n=1 \
  --form response_format=url \
  --form size=1024x1024 \
  --form 'user=<string>'
{
    "created": 1,
    "data": [
        {
            "b64_json": null,
            "revised_prompt": null,
            "url": "https://example.com/image"
        }
    ]
}
{
    "created": 1,
    "data": [
        {
            "b64_json": null,
            "revised_prompt": null,
            "url": "https://example.com/image"
        }
    ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header.

example value: Bearer Galadriel-API-key

Get API key from Galadriel dashboard.

Body

multipart/form-data

Response

200
application/json

Returns a list of image objects.

The response is of type object.