Class ImageCreateVariationParams.Body.Builder
-
- All Implemented Interfaces:
public final class ImageCreateVariationParams.Body.Builder
A builder for Body.
-
-
Method Summary
-
-
Method Detail
-
image
final ImageCreateVariationParams.Body.Builder image(ByteArray image)
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
-
image
final ImageCreateVariationParams.Body.Builder image(MultipartField<ByteArray> image)
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
-
model
final ImageCreateVariationParams.Body.Builder model(ImageModel model)
The model to use for image generation. Only
dall-e-2
is supported at this time.
-
model
final ImageCreateVariationParams.Body.Builder model(Optional<ImageModel> model)
The model to use for image generation. Only
dall-e-2
is supported at this time.
-
model
final ImageCreateVariationParams.Body.Builder model(MultipartField<ImageModel> model)
The model to use for image generation. Only
dall-e-2
is supported at this time.
-
model
final ImageCreateVariationParams.Body.Builder model(String value)
The model to use for image generation. Only
dall-e-2
is supported at this time.
-
n
final ImageCreateVariationParams.Body.Builder n(Long n)
The number of images to generate. Must be between 1 and 10. For
dall-e-3
, onlyn=1
is supported.
-
n
final ImageCreateVariationParams.Body.Builder n(Long n)
The number of images to generate. Must be between 1 and 10. For
dall-e-3
, onlyn=1
is supported.
-
n
final ImageCreateVariationParams.Body.Builder n(Optional<Long> n)
The number of images to generate. Must be between 1 and 10. For
dall-e-3
, onlyn=1
is supported.
-
n
final ImageCreateVariationParams.Body.Builder n(MultipartField<Long> n)
The number of images to generate. Must be between 1 and 10. For
dall-e-3
, onlyn=1
is supported.
-
responseFormat
final ImageCreateVariationParams.Body.Builder responseFormat(ImageCreateVariationParams.ResponseFormat responseFormat)
The format in which the generated images are returned. Must be one of
url
orb64_json
. URLs are only valid for 60 minutes after the image has been generated.
-
responseFormat
final ImageCreateVariationParams.Body.Builder responseFormat(Optional<ImageCreateVariationParams.ResponseFormat> responseFormat)
The format in which the generated images are returned. Must be one of
url
orb64_json
. URLs are only valid for 60 minutes after the image has been generated.
-
responseFormat
final ImageCreateVariationParams.Body.Builder responseFormat(MultipartField<ImageCreateVariationParams.ResponseFormat> responseFormat)
The format in which the generated images are returned. Must be one of
url
orb64_json
. URLs are only valid for 60 minutes after the image has been generated.
-
size
final ImageCreateVariationParams.Body.Builder size(ImageCreateVariationParams.Size size)
The size of the generated images. Must be one of
256x256
,512x512
, or1024x1024
.
-
size
final ImageCreateVariationParams.Body.Builder size(Optional<ImageCreateVariationParams.Size> size)
The size of the generated images. Must be one of
256x256
,512x512
, or1024x1024
.
-
size
final ImageCreateVariationParams.Body.Builder size(MultipartField<ImageCreateVariationParams.Size> size)
The size of the generated images. Must be one of
256x256
,512x512
, or1024x1024
.
-
user
final ImageCreateVariationParams.Body.Builder user(String user)
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
-
user
final ImageCreateVariationParams.Body.Builder user(MultipartField<String> user)
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
-
build
final ImageCreateVariationParams.Body build()
-
-
-
-