Package org.springframework.ai.image
Interface ImageModel
- All Superinterfaces:
Model<ImagePrompt,ImageResponse>
- All Known Implementing Classes:
AzureOpenAiImageModel,OpenAiImageModel,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:ModelExecutes a method call to the AI model.- Specified by:
callin interfaceModel<ImagePrompt,ImageResponse> - Parameters:
request- the request object to be sent to the AI model- Returns:
- the response from the AI model
-