Skip to main content
Moonshine accepts both local files and publicly-reachable URLs. Supported formats live here: Filetypes

Direct Upload

To upload a local video:
Every upload returns a globally unique file_id. Store it for future queries. File IDs are listed when getting the content of an index.

Remote Upload

To upload a remote video:
Every upload returns a globally unique file_id. Store it for future queries. File IDs are listed when getting the content of an index.
Remote files must be publicly accessible.
Need secure cloud-to-cloud transfers? Reach out: team@usemoonshine.com

Optional progress callback

This is an optional parameter that provides upload and indexing progress updates. The complete script to upload with callback looks like:

Complete Example


string
required
Local file path or remote URL to upload.
string
required
Name/ID of the destination index.
Callable[[dict], None
Optional. Receives granular progress updates (see keys above).