Package org.springframework.ai.image
Interface ImageModel
- All Superinterfaces:
Model<ImagePrompt,
ImageResponse>
- All Known Implementing Classes:
AzureOpenAiImageModel
,OpenAiImageModel
,QianFanImageModel
,StabilityAiImageModel
,ZhiPuAiImageModel
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptioncall
(ImagePrompt request) Executes a method call to the AI model.
-
Method Details
-
call
Description copied from interface:Model
Executes a method call to the AI model.- Specified by:
call
in interfaceModel<ImagePrompt,
ImageResponse> - Parameters:
request
- the request object to be sent to the AI model- Returns:
- the response from the AI model
-