Package com.azure.ai.openai.models
Class ImageSize
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ImageSize>
com.azure.ai.openai.models.ImageSize
The desired size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageSizefromString(String name) Creates or finds a ImageSize from its string representation.static Collection<ImageSize>values()Gets known ImageSize values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
SIZE256X256
Image size of 256x256. -
SIZE512X512
Image size of 512x512. -
SIZE1024X1024
Image size of 1024x1024.
-
-
Constructor Details
-
ImageSize
Deprecated.Use thefromString(String)factory method.Creates a new instance of ImageSize value.
-
-
Method Details
-
fromString
Creates or finds a ImageSize from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ImageSize.
-
values
Gets known ImageSize values.- Returns:
- known ImageSize values.
-
fromString(String)factory method.