Image AI Edit Options

Learn how to control AI Edit generation.

Prompt

The prompt is a text description that guides the AI on how to edit the image. It tells the AI what new elements to add or what changes to make.

"options": {
  "prompt": "add a duck"
}

Inference Steps

Inference steps controls the number of steps the AI takes to refine the image. A higher number of steps can produce more detailed and higher-quality images but will also increase the processing time.

"options": {
  "prompt": "add a duck",
  "inference_steps": 50
}

Guidance Scale

The guidance scale determines how closely the AI should follow the instructions in your prompt. A higher value means the AI will stick more strictly to your prompt, while a lower value allows the AI to be more creative and generate a more diverse result.

"options": {
  "prompt": "add a duck",
  "guidance_scale": 4.0
}

Aspect Ratio

The aspect ratio defines the final dimensions of the edited image. This parameter is used to crop and resize the output to a specific width-to-height ratio. The API supports various common aspect ratios.

By default, the aspect ratio is the same as an input image. But you can change it to any of the following values:

Aspect ratio
Output size

1:1

1024x1024px

2:3

832x1248px

3:2

1248x832px

3:4

880x1168px

4:3

1168x880px

9:16

768x1360px

16:9

1360x768px

9:21

656x1552px

21:9

1552x656px

Possible values

Parameter
Type
Range
Default value

prompt

string

3-5000

required

inference_steps

integer

1-50

50

guidance_scale

float

1.0-10.0

4.0

aspect_ratio

string

"1:1".."21:9"

same as input

Last updated