Video API for developers | Mux Skip to content Mux Logo Toggle Mux Brand Popover Toggle navigation menu Product Solutions Developers Pricing Blog Talk to us Talk to us Log in Log in Mux Robots Beta Video for developers Mux helps teams do more with video. Stream it, moderate it, search it, analyze it, transform it. Build cost-effectively in minutes, not months. Get started Get started Read our docs Read our docs Trusted by top brands Features Unlock the data in your video More than just content, video contains a boatload of data for you to build with. Select a video to see Mux in action. Try another video Show the code Embedding a video with Mux is simple React component Web component Iframe embed import MuxPlayer from '@mux/mux-player-react' ; < MuxPlayer playbackId = " 61zK4LlhV9P00tpGpsH7Fc00T58eR7m63b " metadata = { { "video_title" : "Training video" , "video_user_id" : "user-1138" } } /> Turn video files into video features We give you the building blocks to create live and on-demand video exactly how you want. See all Mux Video features Transcript Thumbnails GIFs Clipping Storyboards Transcript Loading Still loading This is taking a while, huh This is a little awkward Still loading Reticulating splines Calculating the meaning of life Locating the required gigapixels Aligning the data streams Loading additional loading messages Waking up kittens Optimizing the optimizations Feeding the kittens Collating the pixels Reversing the polarity of the neutron flow Cuddling the kittens Dividing by zero Bending the spoon Still loading Show the code // create an asset with auto-generated subtitles await muxClient . video . assets . create ( { "inputs" : [ { "url" : "https://public.example.com/path/to/file.mp4" } , { generated_subtitles : [ { name : "English CC" , "language_code" : "en" } ] } ] , "playback_policies" : [ "public" ] , "video_quality" : "basic" } ) ; // get subtitles const playbackId = "61zK4LlhV9P00tpGpsH7Fc00T58eR7m63b" ; const trackId = "OAuM02dcFlV3xvQg6L98Ggu0100JcbZ01tmoAwC1xsR1t2OqyIO6IZeO00g" ; await fetch ( ` https://stream.mux.com/ ${ playbackId } /text/ ${ trackId } .vtt ` ) How much will this video cost? Uploading this 1m 40s video : Free Storing this video for 1 month : $0.004 Streaming 72,319 times : $16 Running 10 Mux Robots jobs : $0.08294 Mux Data analytics : Included Free monthly usage credit : -$20 Total : $0 Estimate your video costs Use our calculator Use our calculator Understand video analytics at a glance Track key engagement and video intelligence metrics: views, playing time, viewer retention, top performing content, and more. Mux Robots Integrate Mux's pre-built AI workflows or build your own. Our platform is built for humans and robots, from streaming to analysis and everything in between. Caption translation const assetId = "ERAR8Tf5UDH4IMZhwpiA6NElgqr02PK3A" ; const captionTrackId = "OAuM02dcFlV3xvQg6L98Ggu0100JcbZ01tmoAwC1xsR1t2OqyIO6IZeO00g" ; const job = await muxClient . robotsPreview . jobs . translateCaptions . create ( { parameters : { asset_id : assetId , track_id : captionTrackId , to_language_code : "es" } } ) ; const result = await muxClient . robotsPreview . jobs . translateCaptions . retrieve ( job . id ) ; console . log ( result . outputs . uploaded_track_id ) ; Show the code Ask questions Is this video a cartoon? yes no 100% certainty Does this video feature cats? yes no 100% certainty Was this video mostly shot outdoors? yes no 100% certainty const assetId = "ERAR8Tf5UDH4IMZhwpiA6NElgqr02PK3A" ; const job = await muxClient . robotsPreview . jobs . askQuestions . create ( { parameters : { asset_id : assetId , questions : [ { question : "Is this video a cartoon?" } , { question : "Does this video feature cats?" } , { question : "Was this video mostly shot outdoors?" } ] } } ) ; const result = await muxClient . robotsPreview . jobs . askQuestions . retrieve ( job . id ) ; console . log ( result . outputs . answers ) ; Show the code Summarization | Tone: Neutral Professional Playful const assetId = "ERAR8Tf5UDH4IMZhwpiA6NElgqr02PK3A" ; const job = await muxClient . robotsPreview . jobs . summarize . create ( { parameters : { asset_id : assetId , tone : "neutral" } } ) ; const result = await muxClient . robotsPreview . jobs . summarize . retrieve ( job . id ) ; console . log ( result . outputs . title ) ; console . log ( result . outputs . description ) ; console . log ( result . outputs . tags ) ; Show the code Content moderation NSFW: Violent: const assetId = "ERAR8Tf5UDH4IMZhwpiA6NElgqr02PK3A" ; const job = await muxClient . robotsPreview . jobs . moderate . create ( { parameters : { asset_id : assetId , thresholds : { sexual : 0.7 , // Flag content with 70%+ confidence violence : 0.8 // Flag content with 80%+ confidence } } } ) ; const result = await muxClient . robotsPreview . jobs . moderate . retrieve ( job . id ) ; console . log ( result . outputs . exceeds_threshold ) ; console . log ( result . outputs . max_scores . sexual ) ; console . log ( result . outputs . max_scores . violence ) ; Show the code Chaptering Analyze your video to identify natural breakpoints, create descriptive chapter titles, and add timestamps const assetId = "ERAR8Tf5UDH4IMZhwpiA6NElgqr02PK3A" ; const job = await muxClient . robotsPreview . jobs . generateChapters . create ( { parameters : { asset_id : assetId } } ) ; const result = await muxClient . robotsPreview . jobs . generateChapters . retrieve ( job . id ) ; console . log ( result . outputs . chapters ) ; Show the code The video infrastructure for your website From background videos to simple player embeds, we’ve got you covered. Commerce-UI built Lady Gaga’s immersive website with video front and center. After launch, they saw a 128% increase in add-to-cart rate and 55% increase in average order value. While you perfect your AI models, we take care of encoding, delivery, and scaling your video output reliably and cost-effectively. Synthesia built their AI video platform on Mux enabling them to affordably scale video generation while focusing on AI innovation rather than building video from scratch. With videos ready for playback in an average of under 2 seconds you can build what you need for your community. Glassdoor launched user-generated video and created a new form of content-moderated community engagement in their app in 5 months. Whether it’s on-demand or live, build video that scales to support your users. Patreon built native video for a more consistent creator and fan experience, going from limited control with third-party solutions to a fully customized, seamless platform.. Go from MVP to launch in no time with API and docs that are designed for developers to build video quickly. Typeform integrated video questions and answers into their forms, achieving 24% adoption among Growth plan users and contributing over 2.5% of ARR within six months of launch. With latency as low as 4 seconds and support for SRT (with HEVC) and RTMP, you can stream live, at scale, and without worry. Maestro helps creators like Billie Eilish create and monetize interactive live experiences at scale. They enable creators to stream and connect to hundreds of thousands of fans. We speak your language You don’t have to reinvent your stack to get great video. We’re compatible with your favorite languages and frameworks. Mux is available on the Vercel Marketplace . Python Go Elixir Node Ruby PHP iOS Icon Android Icon Mux love from around the world Working with the Mux team felt like we were all working together, as opposed to the typical vendor/client relationship. Mux was with us every step of the way, from ideation to delivery. Lucas Kacher Staff Software Engineer + Engineering Lead for Video Ran our first live stream via @MuxHQ today after some horrible experiences with a well known alternative who shall remain nameless. Super simple, reliable and looked great! Will Wilson @theMojoWill I could have created a custom solution like Amazon S3 to host my video, but it was extr