Class ImageGenerationStyle

java.lang.Object
com.azure.core.util.ExpandableStringEnum<ImageGenerationStyle>
com.azure.ai.openai.models.ImageGenerationStyle

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 Details

    • NATURAL

      public static final ImageGenerationStyle NATURAL
      Requests image generation in a natural style with less preference for dramatic and hyper-realistic characteristics.
    • VIVID

      public static final ImageGenerationStyle VIVID
      Requests image generation in a vivid style with a higher preference for dramatic and hyper-realistic characteristics.
  • Constructor Details

    • ImageGenerationStyle

      @Deprecated public ImageGenerationStyle()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of ImageGenerationStyle value.
  • Method Details

    • fromString

      public static ImageGenerationStyle fromString(String name)
      Creates or finds a ImageGenerationStyle from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding ImageGenerationStyle.
    • values

      public static Collection<ImageGenerationStyle> values()
      Gets known ImageGenerationStyle values.
      Returns:
      known ImageGenerationStyle values.