Class VideoSynthesisParam.VideoSynthesisParamBuilder<C extends VideoSynthesisParam,B extends VideoSynthesisParam.VideoSynthesisParamBuilder<C,B>>

Enclosing class:
VideoSynthesisParam

public abstract static class VideoSynthesisParam.VideoSynthesisParamBuilder<C extends VideoSynthesisParam,B extends VideoSynthesisParam.VideoSynthesisParamBuilder<C,B>> extends HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
  • Constructor Details

    • VideoSynthesisParamBuilder

      public VideoSynthesisParamBuilder()
  • Method Details

    • inputChecks

      public B inputChecks(Map<String,String> inputChecks)
      Returns:
      this.
    • size

      public B size(String size)
      Returns:
      this.
    • steps

      public B steps(Integer steps)
      Returns:
      this.
    • seed

      public B seed(Integer seed)
      Returns:
      this.
    • prompt

      public B prompt(String prompt)
      Returns:
      this.
    • negative_prompt

      @Deprecated public B negative_prompt(String negative_prompt)
      Deprecated.
      The negative prompt is the opposite of the prompt meaning. use negativePrompt
      Returns:
      this.
    • negativePrompt

      public B negativePrompt(String negativePrompt)
      The negative prompt is the opposite of the prompt meaning.
      Returns:
      this.
    • template

      public B template(String template)
      LoRa input, such as gufeng, katong, etc.
      Returns:
      this.
    • extendPrompt

      @Deprecated public B extendPrompt(Boolean extendPrompt)
      Deprecated.
      use promptExtend in parameters
      Returns:
      this.
    • imgUrl

      public B imgUrl(String imgUrl)
      The input image url, Generate the URL of the image referenced by the video
      Returns:
      this.
    • audioUrl

      public B audioUrl(String audioUrl)
      The input audio url.
      Returns:
      this.
    • referenceVideoUrls

      public B referenceVideoUrls(List<String> referenceVideoUrls)
      list of character reference video file urls uploaded by the user
      Returns:
      this.
    • referenceUrls

      public B referenceUrls(List<String> referenceUrls)
      list of character reference file urls uploaded by the user
      Returns:
      this.
    • referenceUrl

      public B referenceUrl(String referenceUrl)
      list of character reference file url uploaded by the user
      Returns:
      this.
    • media

      public B media(List<VideoSynthesisParam.Media> media)
      list of media file urls uploaded by the user
      Returns:
      this.
    • referenceVideoDescription

      public B referenceVideoDescription(List<String> referenceVideoDescription)
      For the description information of the picture and sound of the reference video, corresponding to ref video, it needs to be in the order of the url. If the quantity is different, an error will be reported
      Returns:
      this.
    • extraInput

      public B extraInput(String extraInputKey, Object extraInputValue)
    • extraInputs

      public B extraInputs(Map<? extends String,? extends Object> extraInputs)
    • clearExtraInputs

      public B clearExtraInputs()
    • duration

      public B duration(Integer duration)
      Duration of video generation. The default value is 5, in seconds
      Returns:
      this.
    • firstFrameUrl

      public B firstFrameUrl(String firstFrameUrl)
      The URL of the first frame image for generating the video.
      Returns:
      this.
    • lastFrameUrl

      public B lastFrameUrl(String lastFrameUrl)
      The URL of the last frame image for generating the video.
      Returns:
      this.
    • headFrame

      public B headFrame(String headFrame)
      Returns:
      this.
    • tailFrame

      public B tailFrame(String tailFrame)
      Returns:
      this.
    • withAudio

      public B withAudio(Boolean withAudio)
      Returns:
      this.
    • resolution

      public B resolution(String resolution)
      The resolution of the generated video
      Returns:
      this.
    • promptExtend

      public B promptExtend(Boolean promptExtend)
      Returns:
      this.
    • watermark

      public B watermark(Boolean watermark)
      Returns:
      this.
    • audio

      public B audio(Boolean audio)
      Returns:
      this.
    • shotType

      public B shotType(String shotType)
      Returns:
      this.
    • enableOverlays

      public B enableOverlays(Boolean enableOverlays)
      The enable_overlays parameter.
      Returns:
      this.
    • ratio

      public B ratio(String ratio)
      Returns:
      this.
    • audioSetting

      public B audioSetting(String audioSetting)
      Returns:
      this.
    • enableThinking

      public B enableThinking(Boolean enableThinking)
      Returns:
      this.
    • self

      protected abstract B self()
      Specified by:
      self in class HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends VideoSynthesisParam,B extends VideoSynthesisParam.VideoSynthesisParamBuilder<C,B>>
    • build

      public abstract C build()
      Specified by:
      build in class HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends VideoSynthesisParam,B extends VideoSynthesisParam.VideoSynthesisParamBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends VideoSynthesisParam,B extends VideoSynthesisParam.VideoSynthesisParamBuilder<C,B>>