Skip to main content
Media asset endpoints let you upload images or videos to managed storage before using them as world-generation inputs.

Prepare media asset upload

POST /marble/v1/media-assets:prepare_uploadCreate a media asset record and receive the signed upload URL and required headers.

Get media asset

GET /marble/v1/media-assets/{media_asset_id}Retrieve metadata for an uploaded media asset.

Upload flow

1

Prepare the upload

Call Prepare media asset upload with the file name, extension, and media kind.
2

Upload bytes

Send the file to the returned signed URL with the required headers from the response.
3

Reference the asset

Use the returned media_asset_id in Generate a world.