Interface ImageModelConfig
public interface ImageModelConfig
-
Method Summary
Modifier and TypeMethodDescriptionWhether image model requests should be loggedWhether image model responses should be loggedModel name to useint
number()
The number of images to generate.persist()
Configure whether the generated images will be saved to disk.The path where the generated images will be persisted to disk.quality()
The quality of the image that will be generated.The format in which the generated images are returned.size()
The size of the generated images.style()
The style of the generated images.user()
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
-
Method Details
-
modelName
Model name to use -
persist
Configure whether the generated images will be saved to disk. By default, persisting is disabled, but it is implicitly enabled whenquarkus.langchain4j.openai.image-mode.directory
is set and this property is not tofalse
-
persistDirectory
The path where the generated images will be persisted to disk. This only applies ofquarkus.langchain4j.openai.image-mode.persist
is not set tofalse
. -
responseFormat
The format in which the generated images are returned.Must be one of
url
orb64_json
-
size
The size of the generated images.Must be one of
1024x1024
,1792x1024
, or1024x1792
when the model isdall-e-3
.Must be one of
256x256
,512x512
, or1024x1024
when the model isdall-e-2
. -
quality
The quality of the image that will be generated.hd
creates images with finer details and greater consistency across the image.This param is only supported for when the model is
dall-e-3
. -
number
@WithDefault("1") int number()The number of images to generate.Must be between 1 and 10.
When the model is dall-e-3, only n=1 is supported.
-
style
The style of the generated images.Must be one of
vivid
ornatural
. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images.This param is only supported for when the model is
dall-e-3
. -
user
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. -
logRequests
Whether image model requests should be logged -
logResponses
Whether image model responses should be logged
-