Class ImageSize

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

public final class ImageSize extends com.azure.core.util.ExpandableStringEnum<ImageSize>
The desired size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
  • Field Details

    • SIZE256X256

      public static final ImageSize SIZE256X256
      Image size of 256x256.
    • SIZE512X512

      public static final ImageSize SIZE512X512
      Image size of 512x512.
    • SIZE1024X1024

      public static final ImageSize SIZE1024X1024
      Image size of 1024x1024.
  • Constructor Details

  • Method Details

    • fromString

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

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