◆ Background
Allows to set transparency for the background of the generated image(s). This parameter is only supported for gpt-image-1. Must be one of transparent, opaque or auto (default value). When auto is used, the model will automatically determine the best background for the image. If transparent, the output format needs to support transparency, so it should be set to either png (default value) or webp.
◆ Image
| TArray<FString> FOpenAIImageEdit::Image |
The image(s) to edit. Must be a supported image file or an array of images. Each image should be a png, webp, or jpg file less than 25MB.
◆ Input_Fidelity
Controls fidelity to the original input image(s). Must be one of high or low. This parameter is only supported for GPT image models.
◆ Mask
| FString FOpenAIImageEdit::Mask |
An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where image should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as image.
◆ Model
| FString FOpenAIImageEdit::Model {"gpt-image-1"} |
The model to use for image editing. One of gpt-image-1.5, gpt-image-1, gpt-image-1-mini, or chatgpt-image-latest.
◆ Moderation
Control the content-moderation level. Must be either low or auto (default value). Only supported for GPT image models.
| int32 FOpenAIImageEdit::N {1} |
The number of images to generate. Must be between 1 and 10.
◆ Output_Compression
The compression level (0-100%) for the generated images. Only supported for GPT image models with webp or jpeg output formats.
◆ Output_Format
Output image format. Must be one of png, jpeg, or webp. Only supported for GPT image models.
◆ Partial_Images
The number of partial images to generate during streaming. Value must be between 0 and 3. Only supported for GPT image models.
◆ Prompt
| FString FOpenAIImageEdit::Prompt |
A text description of the desired image(s). The maximum length is 32000 characters.
◆ Quality
| FString FOpenAIImageEdit::Quality {"auto"} |
The quality of the image that will be generated. high, medium and low are supported for the GPT image models. Defaults to auto.
◆ Size
| FString FOpenAIImageEdit::Size {"1024x1024"} |
The size of the generated images. Must be one of 1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), or auto (default value).
◆ Stream
Stream partial image results as events. Only supported for GPT image models.
◆ User
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
The documentation for this struct was generated from the following file: