Package com.azure.ai.openai.models
Class ImageGenerationQuality
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ImageGenerationQuality>
com.azure.ai.openai.models.ImageGenerationQuality
public final class ImageGenerationQuality
extends com.azure.core.util.ExpandableStringEnum<ImageGenerationQuality>
An image generation configuration that specifies how the model should prioritize quality, cost, and speed.
Only configurable with dall-e-3 models.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImageGenerationQualityRequests image generation with higher quality, higher cost and lower speed relative to standard.static final ImageGenerationQualityRequests image generation with standard, balanced characteristics of quality, cost, and speed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageGenerationQualityfromString(String name) Creates or finds a ImageGenerationQuality from its string representation.static Collection<ImageGenerationQuality>values()Gets known ImageGenerationQuality values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
STANDARD
Requests image generation with standard, balanced characteristics of quality, cost, and speed. -
HD
Requests image generation with higher quality, higher cost and lower speed relative to standard.
-
-
Constructor Details
-
ImageGenerationQuality
Deprecated.Use thefromString(String)factory method.Creates a new instance of ImageGenerationQuality value.
-
-
Method Details
-
fromString
Creates or finds a ImageGenerationQuality from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ImageGenerationQuality.
-
values
Gets known ImageGenerationQuality values.- Returns:
- known ImageGenerationQuality values.
-
fromString(String)factory method.