Skip to main content

Options

model
string
required
The name of the image AI model.Example:
gpt-image-1
openAIApiKey
string
The OpenAI API key.
openAIOrgKey
string
The organization key for the OpenAI API.
openAIProjectKey
string
The project key for the OpenAI API.
endpointUrl
string
The endpoint URL for the OpenAI API.
azureAPIKey
string
The API key for the Azure API.
azureAPIVersion
string
The API version for the Azure API.
inputTokenTextCost
float
required
Cost per text token.
inputTokenImageCost
float
required
Cost per image input token.
outputTokenImageCost
float
required
Cost per image output token.

Arguments

prompt
string
required
The prompt for the LLM to populate the argument for image generation. Example:
The prompt to generate or edit an image from
size
string
The image size. Possible values:
  • 1024x1024
  • 1536x1024
  • 1024x1536
  • auto
Example:
The size of the requested image. Use 1024x1024 (square) as the default, 1536x1024 if the user requests a wide image, and 1024x1536 for full-body portraits. As default use ‘auto‘
quality
string
The quality level. Possible values:
  • auto
  • high
  • medium
  • low
Example:
The quality of the requested image. Use ‘high‘, ‘medium‘, ‘low‘ or ‘auto‘. As default use ‘auto‘
lastImagesCount
string
Number of the most recently generated images to be returned.Example:
The count of last images which should be edited or used. 0 for unlimited or zero images. Default is 0.