ImageGenerationRequest schema

FieldType and description
model
Required
string

Image generation model identifier.

prompt
Required
string

Text description of the desired image.

negative_promptstring

Text description of what to avoid in the image.

sizestring

Image dimensions (e.g., 1024x1024, 512x512).

default: "1024x1024"

ninteger

Number of images to generate.

default: 1; minimum: 1; maximum: 10

widthinteger

Image width in pixels (alternative to size).

heightinteger

Image height in pixels (alternative to size).

num_inference_stepsinteger

Number of diffusion steps.

guidance_scalenumber

Classifier-free guidance scale.

seedinteger

Random seed for reproducibility.