Guides: Mux Video API Quick Start (get started in 1 min)

0:00

Here's how you upload and play back a video

0:02

using Mux in 60 seconds.

0:04

First, log in to your Mux dashboard and create

0:06

a new access token.

0:08

This will allow you to make an authenticated

0:10

request to the Mux API.

0:12

Once you have the token, copy it and head on over to

0:14

an API Explorer application.

0:16

I'm using Bruno here.

0:18

The request should use basic authentication.

0:20

Set the username to your access token and the

0:22

password to the secret key to make the request.

0:25

You're going to make a POST request to the

0:27

Mux assets endpoint.

0:28

Set the body to include the public URL to the video that

0:31

you have stored somewhere.

0:32

S3, Google Drive, and so on.

0:34

Here, I'm also setting the playback policy to

0:36

public, and encoding tier to baseline for free encoding.

0:39

Now click Send.

0:40

We can see that the asset is already preparing.

0:43

Back in the Mux dashboard, click on Assets, and you'll

0:46

be able to see that your new video is now visible.

0:49

If you scroll down, you can find some embed code under

0:51

the Build tab that you can use to play this video back.

0:54

I'll just pop over to a code sandbox and add this embed

0:57

code so we can see that the video is ready to go.

0:59

And that's it!

1:00

You just uploaded and played back your

1:02

first video with Mux.

1:03

Wait, wait, wait.

1:04

That's cool and all, but why stream with

1:06

Mux in the first place?

1:07

Well, because we take care of all the annoying stuff

1:10

it takes to build video from scratch, ensuring

1:12

the best video performance while still providing the

1:15

flexibility developers need.

1:17

So you can do things like create a custom player

1:19

that fits your brand, build in automatic thumbnails

1:23

and GIFs, as well as scrollable storyboards

1:26

and AI powered captions.

1:28

Finally, get all the performance data

1:30

you could ever want.

1:32

We also provide flexible pricing to meet your needs.

1:36

Here are some of the companies who built video

1:38

integrations with Mux.

1:41

We researched a few different options and Mux was the

1:43

best as far as cost, and we realized, oh, it's actually

1:46

really developer friendly.

1:48

We've integrated it deeper into the platform, so

1:50

now all the video in the platform is powered by Mux.

1:52

Head over to our docs to learn more, or check out

1:55

some of the developer chats or customer stories on our

1:57

channel to get inspired.