IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Python class

ProviderOptions

ProviderOptions​

class max.pipelines.request.provider_options.ProviderOptions(*, max=None, image=None, video=None)

source

Bases: BaseModel

Container for all provider-specific options.

Includes both universal MAX options and modality-specific options. All options are validated at the API layer.

Example:

{
    "max": {"target_endpoint": "instance-123"},
    "image": {"width": 1024, "height": 768}
}

Parameters:

image​

image: ImageProviderOptions | None

source

max​

max: MaxProviderOptions | 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].

video​

video: VideoProviderOptions | None

source