Class QianFanImageApi

java.lang.Object
org.springframework.ai.qianfan.api.auth.AuthApi
org.springframework.ai.qianfan.api.QianFanImageApi

public class QianFanImageApi extends AuthApi
QianFan Image API.
Since:
1.0
Author:
Geng Rong
  • Field Details

    • DEFAULT_IMAGE_MODEL

      public static final String DEFAULT_IMAGE_MODEL
  • Constructor Details

    • QianFanImageApi

      public QianFanImageApi(String apiKey, String secretKey)
      Create a new QianFan Image api with default base URL.
      Parameters:
      apiKey - QianFan api key.
      secretKey - QianFan secret key.
    • QianFanImageApi

      public QianFanImageApi(String baseUrl, String apiKey, String secretKey, org.springframework.web.client.RestClient.Builder restClientBuilder)
      Create a new QianFan Image API with the provided base URL.
      Parameters:
      baseUrl - the base URL for the QianFan API.
      apiKey - QianFan api key.
      secretKey - QianFan secret key.
      restClientBuilder - the rest client builder to use.
    • QianFanImageApi

      public QianFanImageApi(String baseUrl, String apiKey, String secretKey, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
      Create a new QianFan Image API with the provided base URL.
      Parameters:
      baseUrl - the base URL for the QianFan API.
      apiKey - QianFan api key.
      secretKey - QianFan secret key.
      restClientBuilder - the rest client builder to use.
      responseErrorHandler - the response error handler to use.
  • Method Details