
OpenAI CreateImage
CertifiedGenerate images with OpenAI
OpenAI CreateImage
Generate images with OpenAI
Creates one or more images from a prompt using OpenAI Images. Default size is 1024x1024; optionally download Base64 content into Kestra internal storage or return remote URLs. See the Images API docs.
type: io.kestra.plugin.openai.CreateImageExamples
id: openai
namespace: company.team
tasks:
- id: create_image
type: io.kestra.plugin.openai.CreateImage
prompt: A funny cat in a black suit
apiKey: "{{ secret('OPENAI_API_KEY') }}"
download: true
n: 5
Properties
apiKey *Requiredstring
OpenAI API key
prompt *Requiredstring
Image prompt
Required text sent to the Images API.
clientTimeout Non-dynamicinteger
10The maximum number of seconds to wait for a response
download booleanstring
falseDownload generated images
Default false. When true, saves Base64 output to Kestra internal storage; when false, returns image URLs.
model string
gpt-image-1OpenAI image model
Model used to generate images. Defaults to gpt-image-1. Any image model accepted by the OpenAI API can be set, e.g. gpt-image-1-mini.
n Non-dynamicinteger
Number of images
Between 1 and 10; OpenAI defaults to 1 when unset.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
quality string
AUTOLOWMEDIUMHIGHImage quality
One of auto, low, medium, high.
size string
LARGESMALLMEDIUMLARGEImage size
Defaults to 1024x1024; choose 256x256, 512x512, or 1024x1024.
user string
A unique identifier representing your end-user
Outputs
images array
Generated images
List of internal storage URIs or remote URLs depending on download.