Python class
VideoProviderOptions
VideoProviderOptionsβ
class max.pipelines.request.provider_options.VideoProviderOptions(*, negative_prompt=None, guidance_scale=3.5, true_cfg_scale=1.0, width=None, height=None, steps=None, cfg_normalization=False, cfg_truncation=1.0, response_format=GeneratedMediaResponseFormat.url, frames_per_second=None, num_frames=None, guidance_scale_2=None)
Bases: PixelProviderOptionsBase
Options specific to video generation pipelines.
Inherits all generation options shared with other pixel modalities from
PixelProviderOptionsBase; adds video-specific fields
(frames_per_second, num_frames, guidance_scale_2) and
overrides the default response format.
-
Parameters:
-
- negative_prompt (str | None)
- guidance_scale (Annotated[float, Ge(ge=0)])
- true_cfg_scale (Annotated[float, Gt(gt=0)])
- width (Annotated[int | None, Gt(gt=0)])
- height (Annotated[int | None, Gt(gt=0)])
- steps (Annotated[int | None, Gt(gt=0)])
- cfg_normalization (bool)
- cfg_truncation (Annotated[float, Gt(gt=0)])
- response_format (GeneratedMediaResponseFormat)
- frames_per_second (Annotated[int | None, Gt(gt=0)])
- num_frames (Annotated[int | None, Gt(gt=0)])
- guidance_scale_2 (Annotated[float | None, Gt(gt=0.0)])
frames_per_secondβ
guidance_scale_2β
model_configβ
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
num_framesβ
response_formatβ
response_format: GeneratedMediaResponseFormat
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!