vc i mux/muxMux Video API
Add powerful, reliable video experiences to your application in minutes with Mux. As an API-first platform, Mux simplifies everything from upload and storage to live streaming and on-demand playback.
Forget complex setups. Manage your entire video workflow via API, get full observability with webhooks, and leverage our open-source player with best-in-class analytics built right in – for free. It's ready for web, native iOS, and Android.
Built for Next.js: Integrate Mux seamlessly using next-video. Our React component enhances the standard <video> tag, making it incredibly easy to add optimized video upload, storage, and playback to your Next.js projects on Vercel.
git clone git@github.com:muxinc/next-video-starter.git
cd next-video-starter
npm install
Using the Vercel CLI, make sure you're logged in first:
vercel login
Next, add your new project to Vercel:
vercel link
Select one of our templates and press "Deploy".
Manual Setup
MUX_TOKEN_ID and MUX_TOKEN_SECRET credentials. Keep these in your project’s .env file and treat them like a password; you’ll need them when you interact with the Mux API.Get started for free with no credit card required. You get up to 10 on-demand video or audio assets, 100,000 minutes/month of delivery, and 100,000 units/month of Mux Robots (AI workflows).
Or add your credit card to unlock live video, higher resolutions, unlimited assets, and $20 of usage per month for $0. That's like uploading 2,000 one-minute videos, storing them, and delivering 250 hours of those videos each month. Learn more
Install Mux to your Vercel project.
Press the connect button on the right and search for your newly added project to add the Mux integration.
Pull the Mux environment variables down to your local project:
vercel env pull
npm run dev
Next, go to http://localhost:3000.
Finally, have fun building and shipping video.