OpenAIImage

Description

The OpenAIImage component is a component that collaborates with the AI functions provided by OpenAI. OpenAIImage can invoke a function to generate images from the entered prompts.

※To use this OpenAIImage component, you need to obtain an API Key in advance to call OpenAI's AI functions. For how to obtain an API Key on the OpenAI site, please refer to OpenAI API Key Setup.

openai3-en

Component Properties

Property NameDescriptionExample
Basic PropertiesSpecifies the basic properties of the 'OpenAI' category
API KeyAPI Key ※1
Organization IdOrganization ID ※1
UserUser name
OperationSelect the operation from Image Creation, Image Editing, Similar Image GenerationCreate Image Edit Image Make Image Variation
PromptPrompt (only for Image Creation or Image Editing operations)
Image FileImage PNG file (only for Image Editing or Similar Image Generation operations)
Mask FileMask PNG file less than 4MB, use an image of the same size as the Image File (only for Image Editing operations)
nNumber of responses generated per prompt
Image SizeSize of the image to be generated1024px by 1024px 512px by 512px 256px by 256px
Response FormatGenerated data format File URL Base64File URL Base64
FilenameOutput filename (only for File format data)
File OverwriteOverwrite output file (only for File format data) If you do not overwrite the file and a file with the same name exists, it will be saved with "-N" appended to the end

※ For details of each property related to OpenAI, please refer to OpenAI API Reference.

※1 To use the OpenAIImage component, you need to obtain an API key. For how to obtain an API key, please refer to OpenAI API Key Setup.

Operation Property

・When specifying Create Image

Use a square image less than 4MB for the Image File

・When specifying Edit Image

Use a square image less than 4MB for the Image File, if specifying a Mask File, use an image of the same size as the Image File.

Output Payload

Output PayloadDescription
cv.PayloadIf the Response Format property is a file, the filepath of the written file is stored, if URL, the URL is stored, if Base64, the generated data encoded in Base64 is stored