Class ZhiPuAiImageModel

java.lang.Object
org.springframework.ai.zhipuai.ZhiPuAiImageModel
All Implemented Interfaces:
org.springframework.ai.image.ImageModel, org.springframework.ai.model.Model<org.springframework.ai.image.ImagePrompt,org.springframework.ai.image.ImageResponse>

public class ZhiPuAiImageModel extends Object implements org.springframework.ai.image.ImageModel
ZhiPuAiImageModel is a class that implements the ImageModel interface. It provides a client for calling the ZhiPuAI image generation API.
Since:
1.0.0 M1
Author:
Geng Rong
  • Field Details

    • retryTemplate

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

    • ZhiPuAiImageModel

      public ZhiPuAiImageModel(ZhiPuAiImageApi zhiPuAiImageApi)
    • ZhiPuAiImageModel

      public ZhiPuAiImageModel(ZhiPuAiImageApi zhiPuAiImageApi, ZhiPuAiImageOptions defaultOptions, org.springframework.retry.support.RetryTemplate retryTemplate)
  • Method Details

    • getDefaultOptions

      public ZhiPuAiImageOptions getDefaultOptions()
    • call

      public org.springframework.ai.image.ImageResponse call(org.springframework.ai.image.ImagePrompt imagePrompt)
      Specified by:
      call in interface org.springframework.ai.image.ImageModel
      Specified by:
      call in interface org.springframework.ai.model.Model<org.springframework.ai.image.ImagePrompt,org.springframework.ai.image.ImageResponse>