Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.comfy.org/llms.txt

Use this file to discover all available pages before exploring further.

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
This node modifies an existing image based on a text prompt and strength parameter. It uses the Recraft API to transform the input image according to the provided description while maintaining some similarity to the original image based on the strength setting.

Inputs

ParameterData TypeRequiredRangeDescription
imageIMAGEYes-The input image to be modified
promptSTRINGYes-Prompt for the image generation (default: "", max length: 1000 characters)
nINTYes1-6The number of images to generate (default: 1)
strengthFLOATYes0.0-1.0Defines the difference with the original image, should lie in [0, 1], where 0 means almost identical, and 1 means miserable similarity (default: 0.5)
seedINTYes0-18446744073709551615Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0)
recraft_styleSTYLEV3No-Optional style selection for the image generation. If not provided, defaults to realistic_image
negative_promptSTRINGNo-An optional text description of undesired elements on an image (default: "")
recraft_controlsCONTROLSNo-Optional additional controls over the generation via the Recraft Controls node
Note: The seed parameter only triggers re-execution of the node but does not guarantee deterministic results. The strength parameter is rounded to 2 decimal places internally. The prompt is validated and must not exceed 1000 characters. If recraft_style is not provided, the node defaults to the realistic_image style. If you use a style_id from the Infinite Style Library, ensure it is not a Vector art style, as this may cause the node to receive SVG data instead of an image, resulting in an error.

Outputs

Output NameData TypeDescription
imageIMAGEThe generated image(s) based on the input image and prompt

Source fingerprint (SHA-256): 15f0f42a1c217abcffeff3836ec77d8a94b37143fdff45d69e1a645f5ffac939