Package dev.langchain4j.model.openai
Class OpenAiImageModel
java.lang.Object
dev.langchain4j.model.openai.OpenAiImageModel
- All Implemented Interfaces:
dev.langchain4j.model.image.ImageModel
Represents an OpenAI DALLĀ·E models to generate artistic images. Versions 2 and 3 (default) are supported.
Find the parameters description here.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.image.ImageModel
edit, edit
-
Constructor Details
-
OpenAiImageModel
-
-
Method Details
-
modelName
-
generate
public dev.langchain4j.model.output.Response<dev.langchain4j.data.image.Image> generate(String prompt) - Specified by:
generate
in interfacedev.langchain4j.model.image.ImageModel
-
generate
public dev.langchain4j.model.output.Response<List<dev.langchain4j.data.image.Image>> generate(String prompt, int n) - Specified by:
generate
in interfacedev.langchain4j.model.image.ImageModel
-
builder
-