This node allows you to generate or edit images using OpenAI's DALL-E 3 or GPT Image 1. GPT Image 1 also supports image editing, while DALL-E 3 does not.
To generate an image, provide a prompt and select the model you want to use. To edit images, provide an input table that contains image columns.
You can include multiple image columns in the table and choose which ones to use for editing. For example, one column could contain images of objects and another could contain backgrounds. After selecting both columns and providing a prompt, the model will generate a new image that combines the objects and backgrounds. Currently, the node only supports PNG images.
The use of GPT Image 1 may require your organization to be verified by OpenAI. To do so visit the OpenAI platform.
Generating images is significantly more expensive than text generation. Please refer to OpenAI Docs for more details on how the costs are calculated.
Note: If you use the Credentials Configuration node and do not select the "Save password in configuration (weakly encrypted)" option for passing the API key, the Credentials Configuration node will need to be reconfigured upon reopening the workflow, as the credentials flow variable was not saved and will therefore not be available to downstream nodes.
The model to use for image generation.
Available options:
The prompt the model uses to generate an image. A more descriptive prompt will usually generate a better image. The maximum length is 32000 characters for GPT Image 1 and 4000 characters for DALL-E 3.
The size of the image that will be generated by DALL-E-3. Generating images with higher resolution will increase the costs. Please refer to OpenAI Docs for more information about the pricing.
The quality of the produced image where hd creates images with finer details and greater consistency across the image. Generating higher quality images will increase the costs. Please refer to OpenAI Docs for more information about the pricing.
The quality of the produced image where vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images.
The size of the image that will be generated by GPT Image 1. Generating images with higher resolution will increase the costs. Please refer to OpenAI Docs for more information about the pricing.
Available options:
The quality of the produced image.
Generating higher quality images will increase the costs. Please refer to OpenAI Docs for more information about the pricing.
Available options:
Allows to set transparency for the background of the generated image.
Available options:
All prompts and generated images are filtered in accordance with OpenAI's content policy. This parameter sets the content moderation level for the generated image.
Available options:
Columns containing images to edit.
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension KNIME Python Extension Development (Labs) from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.