ImageEditRequestSchema
ID of the image-to-image model to use, such as FLUX.1-Kontext-dev. Use the model_name from List base models; the model must support the image-to-image modality.
Text description of the edit to apply to the source image.
URL or S3 filename of the source image to edit. Pass the filename returned by Get image upload URL after uploading, or a publicly reachable image URL.
Multiple source images to edit, as URLs or S3 filenames returned by Get image upload URL. Use instead of image_url when the model accepts several inputs.
Text describing what to exclude from the result.
Output image size, as an aspect-ratio preset or an explicit WIDTHxHEIGHT value.
| Enum Value | Description |
|---|---|
square_hd | Square output, high resolution. |
square | Square output (1:1). |
portrait_4_3 | Portrait output, 3:4 aspect ratio. |
portrait_16_9 | Portrait output, 9:16 aspect ratio. |
landscape_4_3 | Landscape output, 4:3 aspect ratio. |
landscape_16_9 | Landscape output, 16:9 aspect ratio. |
Number of images to generate.
Number of denoising steps. Higher values can improve quality at the cost of speed.
How closely the result follows the prompt. Higher values follow the prompt more strictly.
Format of the returned image.
| Enum Value | Description |
|---|---|
png | Returns a lossless PNG image. |
jpeg | Returns a smaller, lossy JPEG image. |
webp | Returns a compact WebP image. |
Named quality or style preset, when supported by the model.
{
"model": "string",
"prompt": "string",
"image_url": null,
"image_urls": [
"string"
],
"negative_prompt": null,
"image_size": "square_hd",
"num_images": 1,
"num_inference_steps": null,
"guidance_scale": null,
"output_format": "png",
"preset": null
}