prompt
string
Optional edit instructions. If omitted, the input image is returned after processing.
negative_prompt
string
Optional negative prompt for details you want the edit to avoid.
image
base64 | [...]
Required base64 image or image array. Data URI prefixes are accepted.
>
[...]
base64
Base64 image item.
resolution
[...]
Optional edit generation size. Omit to preserve input size.
>
[0]
number
Width in pixels.
[1]
number
Height in pixels.
post_resolution
[...]
Optional final output size after crop or resize. Defaults to resolution or input size.
>
[0]
number
Width in pixels.
[1]
number
Height in pixels.
steps
number
Optional diffusion step count. Defaults to 8.
guidance
number
Optional true CFG guidance scale. Defaults to 1.
crop
boolean
If true, centers and crops to aspect ratio instead of resizing.
remove_background
boolean
If true, attempts to remove background and return RGBA format.
safety_check
boolean
Runs text and output image safety classifiers. Also enabled when safety_input is provided.
safety_input
string
Optional instruction prepended to the prompt before text safety classification.
output_format
string
Allowed values: "Base64 PNG", "Base64 JPEG", "Base64 JPEG Progressive", "RGBA 2D", "RGBA 1D". Defaults to "Base64 PNG".
seed
number
Optional random seed. Defaults to a generated seed.