Package org.springframework.ai.image
Interface ImageClient
- All Superinterfaces:
ModelClient<ImagePrompt,
ImageResponse>
- All Known Implementing Classes:
OpenAiImageClient
,StabilityAiImageClient
- 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:ModelClient
Executes a method call to the AI model.- Specified by:
call
in interfaceModelClient<ImagePrompt,
ImageResponse> - Parameters:
request
- the request object to be sent to the AI model- Returns:
- the response from the AI model
-