Guides: Mux Video API Quick Start (get started in 1 min)
Here's how you upload and play back a video
using Mux in 60 seconds.
First, log in to your Mux dashboard and create
a new access token.
This will allow you to make an authenticated
request to the Mux API.
Once you have the token, copy it and head on over to
an API Explorer application.
I'm using Bruno here.
The request should use basic authentication.
Set the username to your access token and the
password to the secret key to make the request.
You're going to make a POST request to the
Mux assets endpoint.
Set the body to include the public URL to the video that
you have stored somewhere.
S3, Google Drive, and so on.
Here, I'm also setting the playback policy to
public, and encoding tier to baseline for free encoding.
Now click Send.
We can see that the asset is already preparing.
Back in the Mux dashboard, click on Assets, and you'll
be able to see that your new video is now visible.
If you scroll down, you can find some embed code under
the Build tab that you can use to play this video back.
I'll just pop over to a code sandbox and add this embed
code so we can see that the video is ready to go.
And that's it!
You just uploaded and played back your
first video with Mux.
Wait, wait, wait.
That's cool and all, but why stream with
Mux in the first place?
Well, because we take care of all the annoying stuff
it takes to build video from scratch, ensuring
the best video performance while still providing the
flexibility developers need.
So you can do things like create a custom player
that fits your brand, build in automatic thumbnails
and GIFs, as well as scrollable storyboards
and AI powered captions.
Finally, get all the performance data
you could ever want.
We also provide flexible pricing to meet your needs.
Here are some of the companies who built video
integrations with Mux.
We researched a few different options and Mux was the
best as far as cost, and we realized, oh, it's actually
really developer friendly.
We've integrated it deeper into the platform, so
now all the video in the platform is powered by Mux.
Head over to our docs to learn more, or check out
some of the developer chats or customer stories on our
channel to get inspired.