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-2Currently, 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormatStage<R,E>bigSquare()The biggest square with dimensions 256x256 px.FormatStage<R,E>mediumSquare()The medium square with dimensions 256x256 px.FormatStage<R,E>smallSquare()The smallest square with dimensions 256x256 px.
-
-
-
Method Detail
-
smallSquare
public FormatStage<R,E> smallSquare()
The smallest square with dimensions 256x256 px.- Returns:
FormatStageto configure the response format of the images.
-
mediumSquare
public FormatStage<R,E> mediumSquare()
The medium square with dimensions 256x256 px.- Returns:
FormatStageto configure the response format of the images.
-
bigSquare
public FormatStage<R,E> bigSquare()
The biggest square with dimensions 256x256 px.- Returns:
FormatStageto configure the response format of the images.
-
-