Class OpenAiImageApi

java.lang.Object
org.springframework.ai.openai.api.OpenAiImageApi

public class OpenAiImageApi extends Object
OpenAI Image API.
See Also:
  • Field Details

  • Constructor Details

    • OpenAiImageApi

      public OpenAiImageApi(String openAiToken)
      Create a new OpenAI Image api with base URL set to https://api.openai.com
      Parameters:
      openAiToken - OpenAI apiKey.
    • OpenAiImageApi

      public OpenAiImageApi(String baseUrl, String openAiToken, org.springframework.web.client.RestClient.Builder restClientBuilder)
  • Method Details