IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Python class

GeneratedMediaResponseFormat

GeneratedMediaResponseFormatโ€‹

class max.pipelines.request.provider_options.GeneratedMediaResponseFormat(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

source

Bases: str, Enum

Response transport format for generated image/video outputs.

b64_jsonโ€‹

b64_json = 'b64_json'

source

The response embeds the base64-encoded media bytes in a JSON field.

urlโ€‹

url = 'url'

source

The response carries a URL pointing at the generated media.