Edit image
POST/v2/style-dna/edit
Edit an image with a prompt that describes the change you want. Use this when you need to alter a generation without re-running the full Style DNA pipeline.
Request
- application/json
Body
required
Default value: cat
Limited to 256 words; additional content will be truncated.
Default value:
Limited to 64 words; additional content will be truncated.
Possible values: [1, 2, 3]
When image guidance is set to low size of image can be set as parameter otherwise the input image size is taken as reference
Possible values: [1, 2, 3, 4, 5]
Possible values: [1, 2, 3, 4, 5]
Possible values: [1, 2, 3, 4, 5]
Possible values: [1:1, 2:3, 3:4, 4:3, 9:16, 3:2, 16:9]
Has effect only if image Guidance is set to low. Can not be used at the same time with width and height provide only aspect ratio or image size.
Possible values: >= 512 and <= 2048
Use aspectRatio instead of custom width and height for better quality. If defined, the total area (width × height) must not exceed 1,763,584 pixels.
Possible values: >= 512 and <= 2048
Use aspectRatio instead of custom width and height for better quality. If defined, the total area (width × height) must not exceed 1,763,584 pixels.
Possible values: [png, webp]
Default value: png
Specify the format of the output image: png or webp
Optional webhook URL. When provided, the server will POST the final artwork result to this URL upon completion.
Responses
- 202
- 400
- 401
- 403
- 429
- 500
Artwork accepted; webhook fires on completion.
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}