Python class
ImageProviderOptions
ImageProviderOptionsβ
class max.pipelines.request.provider_options.ImageProviderOptions(*, 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, secondary_prompt=None, secondary_negative_prompt=None, num_images=1, strength=0.6, output_format='jpeg')
Bases: PixelProviderOptionsBase
Options specific to image generation pipelines.
Inherits all generation options shared with other pixel modalities from
PixelProviderOptionsBase; adds image-specific fields (secondary
text-encoder prompts, num_images, strength, output_format) and
tightens the dimension constraints to image-specific limits.
-
Parameters:
-
- negative_prompt (str | None)
- guidance_scale (float)
- true_cfg_scale (float)
- width (int | None)
- height (int | None)
- steps (int | None)
- cfg_normalization (bool)
- cfg_truncation (float)
- response_format (GeneratedMediaResponseFormat)
- secondary_prompt (str | None)
- secondary_negative_prompt (str | None)
- num_images (int)
- strength (float)
- output_format (str)
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].
num_imagesβ
num_images: int
output_formatβ
output_format: str
secondary_negative_promptβ
secondary_promptβ
strengthβ
strength: float
widthβ
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!