prompt | string | yes | - | Text description of the image to generate. |
task_type | enum | no | "TEXT_IMAGE" | TEXT_IMAGE | INPAINTING | OUTPAINTING | IMAGE_VARIATION | COLOR_GUIDED_GENERATION | BACKGROUND_REMOVAL | VIRTUAL_TRY_ON. · Allowed: TEXT_IMAGE, IMAGE_VARIATION, INPAINTING, OUTPAINTING, BACKGROUND_REMOVAL, COLOR_GUIDED_GENERATION, VIRTUAL_TRY_ON |
quality | enum | no | "standard" | standard | premium. Premium is slower but higher fidelity. · Allowed: standard, premium |
negative_prompt | string | no | "" | Text description of what to avoid in the image. |
number_of_images | number | no | 1 | How many images to generate (1-5). · Range: 1 – 5 |
aspect_ratio | enum | no | "1:1" | Output aspect ratio (1:1, 16:9, 9:16, 4:3, 3:2, etc.). · Allowed: 1:1, 3:4, 2:3, 9:16, 1:2, 1:3, 1:4, 4:3, 3:2, 16:9, 2:1, 3:1, 4:1 |
size_scale | enum | no | "small" | Output resolution scale. Higher = larger image, slower generation. · Allowed: small, large |
cfg_scale | number | no | 7.5 | Prompt adherence (1.1-10). Higher = closer to prompt but less creative. · Range: 1 – 20 |
seed | number | no | - | Random seed for reproducibility. Same seed + prompt = same output. |
image | string | no | - | Source image (URL or base64) for inpainting / outpainting / variation tasks. |
reference_image | string | no | - | Reference image for style or content matching. |
mask_image | string | no | - | Black/white mask defining the region to edit (white = edit, black = keep). |
mask_prompt | string | no | - | Natural-language description of the region to mask for inpainting. |
inpaint_mask_prompt | string | no | - | Same as mask_prompt, for inpainting tasks specifically. |
tryon_mask_prompt | string | no | - | Natural-language description of the garment region for virtual try-on. |
similarity_strength | number | no | 0.7 | How closely to match the reference image (0-1). Lower = looser interpretation. · Range: 0.2 – 1 |
outpainting_mode | enum | no | "DEFAULT" | DEFAULT | PRECISE. Precise preserves edges; default is more creative. · Allowed: DEFAULT, PRECISE |
color_palette | string | no | - | Predefined color palette name for color-guided generation. |
colors | string | no | - | Comma-separated hex codes (e.g. “#FF0000,#00FF00”) to constrain the palette. |
mask_type | enum | no | "GARMENT" | image | prompt. image = use mask_image, prompt = use mask_prompt to derive the mask. · Allowed: GARMENT, PROMPT |
garment_class | string | no | - | Garment category for virtual try-on (top, bottom, dress, etc.). |
response_format | enum | no | "url" | url (default) returns a signed URL; b64_json returns inline base64. · Allowed: url, b64_json |