Skip to main content

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)

source

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:

frames_per_second​

frames_per_second: int | None

source

guidance_scale_2​

guidance_scale_2: float | None

source

model_config​

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}

source

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

num_frames​

num_frames: int | None

source

response_format​

response_format: GeneratedMediaResponseFormat

source