comfyui_generate_asset
Generate or edit a transparent PNG asset from a text prompt or reference image, with optional upscaling and trimming.
Instructions
Generate or edit a single asset (object, sprite, icon, character cut-out) as a PNG with a
transparent background, using the default asset workflow (preset "asset").
Describe only the subject; the workflow adds the transparency instructions itself.
Size is exact pixels: width/height (default 1024x1024, rounded to multiples of 16). With
images and no width/height, the size of is used (scaled down if very large).
Refer to the images as , ... in the prompt; transparent input images are
flattened onto white first. transparent=false keeps a normal background. upscale
toggles the extra upscaled output; trim (default on) also returns copies cropped to the
object. Each output file has a label ("base", "upscale", "base_trimmed"...). Previews
show transparency as a checkerboard.
extra sets more workflow params or raw "." overrides; workflow swaps the
preset for another workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| trim | No | ||
| wait | No | ||
| extra | No | ||
| width | No | ||
| height | No | ||
| images | No | ||
| prompt | Yes | ||
| preview | No | ||
| timeout | No | ||
| upscale | No | ||
| workflow | No | ||
| transparent | No |