Class QualityStage<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.QualityStage<R,E>
All Implemented Interfaces:
IntermediateStage

public class QualityStage<R extends bg.codexio.ai.openai.api.payload.images.request.ImageRequest,E extends RuntimeSelectionStage> extends ImageConfigurationStage<R> implements IntermediateStage
A stage to choose the quality of the images generated.

Currently, this is supported only by dall-e-3 model, therefore applicable only for creating images.

  • Method Details

    • highDefinitioned

      public Dalle3SizeStage<R,E> highDefinitioned()

      Sets the quality to HD. The images will be with finer details and greater consistency across the image. This might increase the tokens usage.

      Returns:
      Dalle3SizeStage to configure the dimensions of the images.
    • standardQuality

      public Dalle3SizeStage<R,E> standardQuality()

      Sets the quality to Standard. This might increase the tokens usage.

      Returns:
      Dalle3SizeStage to configure the dimensions of the images.