Model
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | - | Text description of the image to generate |
reference_mode | string | No | "restyle" | Reference strategy: "restyle", "portrait", "character", or "elements" |
image_url | string | Conditional | - | Source image URL. Required for restyle, portrait, and character modes |
aspect_ratio | string | No | "1:1" | "21:9", "16:9", "3:2", "4:3", "1:1", "3:4", "2:3", "9:16" |
fidelity | float | No | 0.5 | How closely to follow the reference image (0.0–1.0) |
human_fidelity | float | No | 0.65 | Face similarity preservation strength (0.0–1.0, portrait mode only) |
elements | string[] | Conditional | - | Element image/video URLs (2–4 required for elements mode) |
scene_url | string | No | - | Background scene image URL (elements mode only) |
style_url | string | No | - | Style reference image URL (elements mode only) |
Mode Requirements
restyle— requiresimage_url. Usesfidelityto control reference adherenceportrait— requiresimage_url. Usesfidelityandhuman_fidelityfor face controlcharacter— requiresimage_url. Usesfidelityonlyelements— requires 2–4elementsURLs. Optionally acceptsscene_urlandstyle_url
