Skip to main content

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