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
StoredMediaAsset
StoredMediaAsset
class max.serve.media.StoredMediaAsset(asset_id, kind, path, media_type, filename, size_bytes, created_at, last_accessed_at)
Bases: object
Metadata for a generated media artifact stored on local disk.
-
Parameters:
asset_id
asset_id: str
Stable identifier used in MAX’s generated-media download routes.
created_at
created_at: float
Unix timestamp for when the asset metadata was created.
filename
filename: str
Basename exposed in the HTTP download response.
kind
kind: str
The media category of the stored asset, one of "image",
"video", or "audio".
last_accessed_at
last_accessed_at: float
Unix timestamp of the most recent successful lookup.
media_type
media_type: str
MIME type returned when serving the file.
path
path: Path
Absolute path to the saved file on local disk.
size_bytes
size_bytes: int
File size in bytes used for cache accounting.