Package com.azure.ai.openai.models
Class ImageGenerationStyle
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ImageGenerationStyle>
com.azure.ai.openai.models.ImageGenerationStyle
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ImageGenerationStyle
extends com.azure.core.util.ExpandableStringEnum<ImageGenerationStyle>
An image generation configuration that specifies how the model should incorporate realism and other visual
characteristics.
Only configurable with dall-e-3 models.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImageGenerationStyleRequests image generation in a natural style with less preference for dramatic and hyper-realistic characteristics.static final ImageGenerationStyleRequests image generation in a vivid style with a higher preference for dramatic and hyper-realistic characteristics. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageGenerationStylefromString(String name) Creates or finds a ImageGenerationStyle from its string representation.static Collection<ImageGenerationStyle> values()Gets known ImageGenerationStyle values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
NATURAL
Requests image generation in a natural style with less preference for dramatic and hyper-realistic characteristics. -
VIVID
Requests image generation in a vivid style with a higher preference for dramatic and hyper-realistic characteristics.
-
-
Constructor Details
-
ImageGenerationStyle
Deprecated.Use thefromString(String)factory method.Creates a new instance of ImageGenerationStyle value.
-
-
Method Details
-
fromString
Creates or finds a ImageGenerationStyle from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ImageGenerationStyle.
-
values
Gets known ImageGenerationStyle values.- Returns:
- known ImageGenerationStyle values.
-
fromString(String)factory method.