Package com.openai.models.images
Class ImageEditParams.Image
-
- All Implemented Interfaces:
public final class ImageEditParams.ImageThe image(s) to edit. Must be a supported image file or an array of images.
For
gpt-image-1, each image should be apng,webp, orjpgfile less than 50MB. You can provide up to 16 images.For
dall-e-2, you can only provide one image, and it should be a squarepngfile less than 4MB.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceImageEditParams.Image.VisitorAn interface that defines how to map each variant of Image to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<InputStream>inputStream()final Optional<List<InputStream>>inputStreams()final BooleanisInputStream()final BooleanisInputStreams()final InputStreamasInputStream()final List<InputStream>asInputStreams()final Optional<JsonValue>_json()final <T extends Any> Taccept(ImageEditParams.Image.Visitor<T> visitor)final ImageEditParams.Imagevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ImageEditParams.ImageofInputStream(InputStream inputStream)final static ImageEditParams.ImageofInputStreams(List<InputStream> inputStreams)-
-
Method Detail
-
inputStream
final Optional<InputStream> inputStream()
-
inputStreams
final Optional<List<InputStream>> inputStreams()
-
isInputStream
final Boolean isInputStream()
-
isInputStreams
final Boolean isInputStreams()
-
asInputStream
final InputStream asInputStream()
-
asInputStreams
final List<InputStream> asInputStreams()
-
accept
final <T extends Any> T accept(ImageEditParams.Image.Visitor<T> visitor)
-
validate
final ImageEditParams.Image validate()
-
ofInputStream
final static ImageEditParams.Image ofInputStream(InputStream inputStream)
-
ofInputStreams
final static ImageEditParams.Image ofInputStreams(List<InputStream> inputStreams)
-
-
-
-