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.
-
-
Field Summary
-
Fields inherited from class bg.codexio.ai.openai.api.sdk.images.ImageConfigurationStage
builder, executor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dalle3SizeStage<R,E>highDefinitioned()Sets the quality to HD.Dalle3SizeStage<R,E>standardQuality()Sets the quality to Standard.
-
-
-
Method Detail
-
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:
Dalle3SizeStageto configure the dimensions of the images.
-
standardQuality
public Dalle3SizeStage<R,E> standardQuality()
Sets the quality to Standard. This might increase the tokens usage.
- Returns:
Dalle3SizeStageto configure the dimensions of the images.
-
-