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

StoredMediaAsset

StoredMediaAsset

class max.serve.media.StoredMediaAsset(asset_id, kind, path, media_type, filename, size_bytes, created_at, last_accessed_at)

source

Bases: object

Metadata for a generated media artifact stored on local disk.

Parameters:

  • asset_id (str)
  • kind (str)
  • path (Path)
  • media_type (str)
  • filename (str)
  • size_bytes (int)
  • created_at (float)
  • last_accessed_at (float)

asset_id

asset_id: str

source

Stable identifier used in MAX’s generated-media download routes.

created_at

created_at: float

source

Unix timestamp for when the asset metadata was created.

filename

filename: str

source

Basename exposed in the HTTP download response.

kind

kind: str

source

The media category of the stored asset, one of "image", "video", or "audio".

last_accessed_at

last_accessed_at: float

source

Unix timestamp of the most recent successful lookup.

media_type

media_type: str

source

MIME type returned when serving the file.

path

path: Path

source

Absolute path to the saved file on local disk.

size_bytes

size_bytes: int

source

File size in bytes used for cache accounting.