Class Dalle2SizeStage<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest,E extends RuntimeSelectionStage>

java.lang.Object
bg.codexio.ai.openai.api.sdk.images.ImageConfigurationStage<R>
bg.codexio.ai.openai.api.sdk.images.Dalle2SizeStage<R,E>
All Implemented Interfaces:
IntermediateStage

public class Dalle2SizeStage<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest,E extends RuntimeSelectionStage> extends ImageConfigurationStage<R> implements IntermediateStage
A stage to choose the dimensions of the image generated supported by dall-e-2

Currently, dall-e-2 supports only square sizes with 3 dimensions options

  • 256x256
  • 512x512
  • 1024x1024

  • Method Details

    • smallSquare

      public FormatStage<R,E> smallSquare()
      The smallest square with dimensions 256x256 px.
      Returns:
      FormatStage to configure the response format of the images.
    • mediumSquare

      public FormatStage<R,E> mediumSquare()
      The medium square with dimensions 256x256 px.
      Returns:
      FormatStage to configure the response format of the images.
    • bigSquare

      public FormatStage<R,E> bigSquare()
      The biggest square with dimensions 256x256 px.
      Returns:
      FormatStage to configure the response format of the images.