Creates an image given a prompt.
Request body which must comply to the following JSON Schema:
{ "required" : [ "prompt" ], "type" : "object", "properties" : { "prompt" : { "type" : "string", "description" : "A text description of the desired image(s). The maximum length is 1000 characters for `dall-e-2` and 4000 characters for `dall-e-3`.", "example" : "A cute baby sea otter" }, "model" : { "description" : "The model to use for image generation.", "nullable" : true, "example" : "dall-e-3", "anyOf" : [ { "type" : "string" }, { "type" : "string", "enum" : [ "dall-e-2", "dall-e-3" ] } ], "default" : "dall-e-2", "x-oaiTypeLabel" : "string" }, "n" : { "maximum" : 10, "minimum" : 1, "type" : "integer", "description" : "The number of images to generate. Must be between 1 and 10. For `dall-e-3`, only `n=1` is supported.", "nullable" : true, "example" : 1, "default" : 1 }, "quality" : { "type" : "string", "description" : "The quality of the image that will be generated. `hd` creates images with finer details and greater consistency across the image. This param is only supported for `dall-e-3`.", "example" : "standard", "default" : "standard", "enum" : [ "standard", "hd" ] }, "response_format" : { "type" : "string", "description" : "The format in which the generated images are returned. Must be one of `url` or `b64_json`. URLs are only valid for 60 minutes after the image has been generated.", "nullable" : true, "example" : "url", "default" : "url", "enum" : [ "url", "b64_json" ] }, "size" : { "type" : "string", "description" : "The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`. Must be one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3` models.", "nullable" : true, "example" : "1024x1024", "default" : "1024x1024", "enum" : [ "256x256", "512x512", "1024x1024", "1792x1024", "1024x1792" ] }, "style" : { "type" : "string", "description" : "The style of the generated images. Must be one of `vivid` or `natural`. 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. This param is only supported for `dall-e-3`.", "nullable" : true, "example" : "vivid", "default" : "vivid", "enum" : [ "vivid", "natural" ] } } }
Specify how the response should be mapped to the table output. The following formats are available:
Raw Response: Returns the raw response in a single row with the following columns:
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 OpenAI Nodes 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, follow @NodePit on Twitter or botsin.space/@nodepit on Mastodon.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.