Class ImageGenerationResponseFormat

java.lang.Object
com.azure.core.util.ExpandableStringEnum<ImageGenerationResponseFormat>
com.azure.ai.openai.models.ImageGenerationResponseFormat
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class ImageGenerationResponseFormat extends com.azure.core.util.ExpandableStringEnum<ImageGenerationResponseFormat>
The format in which the generated images are returned.
  • Field Details

    • URL

      public static final ImageGenerationResponseFormat URL
      Image generation response items should provide a URL from which the image may be retrieved.
    • BASE64

      public static final ImageGenerationResponseFormat BASE64
      Image generation response items should provide image data as a base64-encoded string.
  • Constructor Details

    • ImageGenerationResponseFormat

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

    • fromString

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

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