Class Image.Builder

java.lang.Object
dev.langchain4j.data.image.Image.Builder
Enclosing class:
Image

public static class Image.Builder extends Object
Builder for Image.
  • Constructor Details

  • Method Details

    • url

      public Image.Builder url(URI url)
      Set the url of the image.
      Parameters:
      url - the url of the image.
      Returns:
      this
    • url

      public Image.Builder url(String url)
      Set the url of the image.
      Parameters:
      url - the url of the image.
      Returns:
      this
    • base64Data

      public Image.Builder base64Data(String base64Data)
      Set the base64 data of the image.
      Parameters:
      base64Data - the base64 data of the image.
      Returns:
      this
    • mimeType

      public Image.Builder mimeType(String mimeType)
      Set the mime type of the image.
      Parameters:
      mimeType - the mime type of the image.
      Returns:
      this
    • revisedPrompt

      public Image.Builder revisedPrompt(String revisedPrompt)
      Set the revised prompt of the image.
      Parameters:
      revisedPrompt - the revised prompt of the image.
      Returns:
      this
    • build

      public Image build()
      Build the Image.
      Returns:
      the Image.