> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# Upload an asset

> Upload video files to Livepeer Studio with TUS resumable uploads or PUT.

Upload videos via the Livepeer Studio API. **TUS resumable upload** is recommended; **PUT** is also supported.

> [!NOTE]
>
> TUS supports resumable uploads and is recommended for all uploads, especially large files.

## Create upload with the SDK

From your backend, create an asset to get an upload URL (TUS or PUT):

```javascript icon="terminal" theme={null}
const { data } = await livepeer.asset.create({ name: "my-video.mp4" });
// data.tusUploadUrl for TUS client on frontend
// data.asset has asset id
```

Use the **TUS upload URL** with a [TUS client](https://github.com/TUS/TUS-js-client) on the frontend to upload the file. When processing finishes, use the asset **playback ID** to play it. See [Play an asset](/v2/solutions/livepeer-studio/docs/video-on-demand/playback-asset.md) and [Listen to events](/v2/solutions/livepeer-studio/docs/analytics/listen-to-events.md).

## Next steps

* [Play an asset](/v2/solutions/livepeer-studio/docs/video-on-demand/playback-asset.md)
* [Encrypted assets](/v2/solutions/livepeer-studio/docs/video-on-demand/encrypted-assets.md)
* [Thumbnails (VOD)](/v2/solutions/livepeer-studio/docs/video-on-demand/thumbnails-vod.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.