Python class
PixelProviderOptionsBase
PixelProviderOptionsBaseβ
class max.pipelines.request.provider_options.PixelProviderOptionsBase(*, 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.b64_json)
Bases: BaseModel
Generation options shared by all pixel-output modalities (image, video).
Fields here apply to any text-to-pixels or pixels-to-pixels pipeline and
are read by the pixel tokenizer regardless of which modality block carries
them on the request. Modality-specific fields (e.g., num_frames for
video, secondary_prompt for image) live on the per-modality subclasses.
-
Parameters:
cfg_normalizationβ
cfg_normalization: bool
cfg_truncationβ
cfg_truncation: float
guidance_scaleβ
guidance_scale: float
heightβ
model_configβ
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
negative_promptβ
response_formatβ
response_format: GeneratedMediaResponseFormat
stepsβ
true_cfg_scaleβ
true_cfg_scale: float
widthβ
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!