Class OpenAiImageClient

java.lang.Object
org.springframework.ai.openai.OpenAiImageClient
All Implemented Interfaces:
ImageClient, ModelClient<ImagePrompt,ImageResponse>

public class OpenAiImageClient extends Object implements ImageClient
OpenAiImageClient is a class that implements the ImageClient interface. It provides a client for calling the OpenAI image generation API.
Since:
0.8.0
Author:
Mark Pollack, Christian Tzolov
  • Field Details

    • retryTemplate

      public final org.springframework.retry.support.RetryTemplate retryTemplate
  • Constructor Details

    • OpenAiImageClient

      public OpenAiImageClient(OpenAiImageApi openAiImageApi)
    • OpenAiImageClient

      public OpenAiImageClient(OpenAiImageApi openAiImageApi, OpenAiImageOptions defaultOptions, org.springframework.retry.support.RetryTemplate retryTemplate)
  • Method Details