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
-
Field Summary
Fields inherited from class bg.codexio.ai.openai.api.sdk.images.ImageConfigurationStage
builder, executor -
Method Summary
Modifier and TypeMethodDescriptionThe biggest square with dimensions 256x256 px.The medium square with dimensions 256x256 px.The smallest square with dimensions 256x256 px.
-
Method Details
-
smallSquare
The smallest square with dimensions 256x256 px.- Returns:
FormatStageto configure the response format of the images.
-
mediumSquare
The medium square with dimensions 256x256 px.- Returns:
FormatStageto configure the response format of the images.
-
bigSquare
The biggest square with dimensions 256x256 px.- Returns:
FormatStageto configure the response format of the images.
-