Mux

mux.com
Developer Tools

The most cost-effective video infrastructure for businesses of all scale. From startups to the World Cup, modern software teams use Mux products to stream billions of minutes of video every day.

llms.txt

Mux Documentation for LLMs

Mux is how developers build online video. Mux provides a complete video platform that includes:

  • Video hosting, encoding, and streaming infrastructure
  • A modern, responsive video player with adaptive controls
  • Video analytics and performance monitoring
  • all with a great developer experience and surprisingly affordable pricing

Quick start: What are you trying to do?

  • Upload and stream a video file → Start with /docs/core.txt, then /docs/guides/video.txt
  • Build a video player → /docs/guides/player.txt
  • Handle file uploads from users → /docs/guides/uploader.txt
  • Track playback metrics and analytics → /docs/guides/data.txt
  • Set up a live stream → /docs/core.txt (live streams section) + /docs/guides/video.txt
  • Integrate with a web framework (Next.js, Rails, etc.) → /docs/integrations.txt
  • Need the full API reference → /api-spec.json

Common mistakes to avoid

  • Never expose Mux API credentials in client-side code. All API calls must come from a server. Use direct uploads or signed URLs for client-side operations.
  • Don't poll the assets endpoint to check status. Use webhooks instead. The video.asset.ready event tells you when an asset is ready for playback.
  • Don't confuse Asset IDs with Playback IDs. Asset IDs (used with api.mux.com) are for managing assets. Playback IDs (used with stream.mux.com) are for streaming to viewers.
  • Don't expose stream keys in public code. Treat stream keys like passwords. Anyone with the key can broadcast to your live stream.
  • Don't hardcode playback URLs. Playback IDs can change. Store the asset ID and look up playback IDs when needed, or store playback IDs separately.

For AI agents

If you're an AI agent that can use MCP (Model Context Protocol) tools, the Mux MCP server provides direct API access for video uploads, live streaming, and analytics queries.

Notes

  • All documentation is automatically generated from the same source as our official documentation
  • API specifications include detailed endpoint descriptions, request/response formats, and examples following the OpenAPI specification
  • The documentation is regularly updated to reflect the latest features and capabilities
  • API version: v1 (stable)
  • Player version: @mux/mux-player 3.x, @mux/mux-player-react 3.x

Guide collections

API references

External API references

All guides

Related

The AI Toolkit for TypeScript, from the creators of Next.js.

/llms.txt
136,985 tokens
Developer Tools

Meet the modern standard for public facing documentation. Beautiful out of the box, easy to maintain, and optimized for user engagement.

/llms.txt
5,436 tokens
/llms-full.txt
181,290 tokens
Developer Tools

Web development for the rest of us.

/llms.txt
602 tokens
/llms-full.txt
453,623 tokens
Developer Tools

Search through billions of items for similar matches to any object, in milliseconds. It’s the next generation of search, an API call away.

/llms.txt
15,715 tokens
/llms-full.txt
588,629 tokens
Developer Tools

Build and deploy reliable background jobs with no timeouts and no infrastructure to manage.

/llms.txt
12,202 tokens
/llms-full.txt
387,586 tokens
Developer Tools

Get the simple developer experience of SQLite in production, and scale your multi-tenant backend with unlimited databases.

/llms.txt
10,006 tokens
/llms-full.txt
163,317 tokens
Developer Tools

Upstash is a serverless data platform providing low latency and high scalability for real-time applications.

/llms.txt
52,307 tokens
/llms-full.txt
1,200,134 tokens
Developer Tools

One-click deployments built for teams, tuned for Laravel, loaded with tools and goodies you're going to love.

/llms.txt
565 tokens
/llms-full.txt
11,330 tokens
Developer Tools