Package com.openai.models.images
Class ImageEditParams.Image
-
- All Implemented Interfaces:
public final class ImageEditParams.Image
The 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
, orjpg
file less than 25MB. You can provide up to 16 images.For
dall-e-2
, you can only provide one image, and it should be a squarepng
file less than 4MB.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ImageEditParams.Image.Visitor
An 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 Boolean
isInputStream()
final Boolean
isInputStreams()
final InputStream
asInputStream()
final List<InputStream>
asInputStreams()
final Optional<JsonValue>
_json()
final <T extends Any> T
accept(ImageEditParams.Image.Visitor<T> visitor)
final ImageEditParams.Image
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ImageEditParams.Image
ofInputStream(InputStream inputStream)
final static ImageEditParams.Image
ofInputStreams(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)
-
-
-
-