Class VideoGenerateParams

java.lang.Object
com.alibaba.dashscope.types.videos.VideoGenerateParams

public final class VideoGenerateParams extends Object
Parameters for videos().generate / videos().jobs().create (design §3). One service, two input protocols, picked by model name prefix (MEDIA_MODEL_PREFIXES): legacy models take img_url first-frame input (the public name is imageUrl; prompt-only works too); media-protocol models take a media list of typed assets ( first_frame / last_frame / driving_audio / first_clip), with imageUrl accepted as shorthand for a lone first_frame asset.

Media items are wire-shaped maps ({type, url} plus any per-model extras); local paths and file:///oss:// values anywhere in the inputs are uploaded/resolved before the call.

  • Field Details

    • MEDIA_MODEL_PREFIXES

      public static final String[] MEDIA_MODEL_PREFIXES
      Models that only answer on the media-based input protocol (prefix match, so dated variants route the same way).
  • Method Details

    • builder

      public static VideoGenerateParams.Builder builder()
    • usesMediaProtocol

      public static boolean usesMediaProtocol(String model)
      true when model routes to the media-based input protocol.
    • getModel

      public String getModel()
    • getPrompt

      public String getPrompt()
    • getImageUrl

      public String getImageUrl()
    • getMedia

      public List<Map<String,Object>> getMedia()
    • getExtraInput

      public Map<String,Object> getExtraInput()
    • getFunction

      public String getFunction()
    • getSeed

      public Integer getSeed()
    • getSize

      public String getSize()
    • getDuration

      public Integer getDuration()
    • getResolution

      public String getResolution()
    • getRatio

      public String getRatio()
    • getPromptExtend

      public Boolean getPromptExtend()
    • getWatermark

      public Boolean getWatermark()
    • getParameters

      public Map<String,Object> getParameters()