> ## Documentation Index
> Fetch the complete documentation index at: https://docs.livepeer.org/llms.txt
> Use this file to discover all available pages before exploring further.

# About Livepeer Studio

> Developer platform for live streaming and video-on-demand on the Livepeer network.

export const studioSocials = [{
  icon: 'globe',
  href: 'https://livepeer.studio/',
  label: 'Livepeer Studio'
}, {
  icon: 'file-code',
  href: 'https://livepeer.studio/docs',
  label: 'Studio Docs'
}, {
  icon: 'github',
  href: 'https://github.com/livepeer/studio',
  label: 'Studio GitHub'
}, {
  icon: 'youtube',
  href: 'https://www.youtube.com/@livepeerstudio5404',
  label: 'Studio YouTube'
}, {
  icon: 'x-twitter',
  href: 'https://x.com/livepeerstudio',
  label: 'Studio X'
}, {
  icon: 'discord',
  href: 'https://discord.gg/livepeer',
  label: 'Livepeer Discord'
}];

export const studioInfra = [{
  icon: 'plug',
  label: 'api'
}, {
  icon: 'cloud',
  label: 'saas'
}, {
  icon: 'torii-gate',
  label: 'gateway'
}];

export const studioBadges = [{
  color: 'blue',
  label: 'Video'
}];

export const StyledStep = ({title, icon, titleSize = 'h3', iconColor = null, titleColor = null, children, className = '', style = {}, ...rest}) => {
  const styledTitle = titleColor ? <span style={{
    color: titleColor
  }}>{title}</span> : title;
  return <Step title={styledTitle} icon={icon} iconColor={iconColor || undefined} titleSize={titleSize} className={className} style={style} {...rest}>
      {children}
    </Step>;
};

export const StyledSteps = ({children, iconColor, titleColor, lineColor, iconSize = '24px', className = '', style = {}, ...rest}) => {
  const resolvedIconColor = iconColor || 'var(--accent-dark, #18794E)';
  const resolvedTitleColor = titleColor || 'var(--lp-color-accent)';
  const resolvedLineColor = lineColor || 'var(--lp-color-accent)';
  return <div className={['docs-styled-steps', className].filter(Boolean).join(' ')} style={style} {...rest}>
      <style>{`
        .docs-styled-steps .steps > div > div.absolute > div {
          background-color: ${resolvedIconColor};
        }
        .docs-styled-steps .steps > div > div.w-full > p {
          color: ${resolvedTitleColor};
        }
        .docs-styled-steps .steps > div > div.absolute.w-px {
          background-color: ${resolvedLineColor};
        }
        .docs-styled-steps .steps > div:last-child > div.absolute.w-px::after {
          content: '';
          position: absolute;
          bottom: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 6px;
          height: 6px;
          background-color: ${resolvedLineColor};
          transform: translateX(-50%) rotate(45deg);
        }
      `}</style>
      <div>
        <Steps>{children}</Steps>
      </div>
    </div>;
};

export const IconBadgeWrapper = ({items = [], iconColor, size = 14, gap = "var(--lp-spacing-3)", margin = '0.25rem 0 0.5rem', style = {}, className = '', ...rest}) => {
  const wrapperStyle = {
    display: 'flex',
    flexWrap: 'wrap',
    alignItems: 'center',
    gap,
    margin
  };
  const tagStyle = {
    display: 'inline-flex',
    alignItems: 'center',
    gap: "var(--lp-spacing-1)",
    fontSize: `${size}px`,
    color: 'var(--lp-color-text-primary)'
  };
  return <div className={className} style={{
    ...wrapperStyle,
    ...style
  }} {...rest}>
      {items.map((item, i) => <span key={i} style={tagStyle}>
          <Icon icon={item.icon} size={size} color={iconColor || 'currentColor'} />
          {item.label}
        </span>)}
    </div>;
};

export const BadgeWrapper = ({badges, children, gap = '0.4rem', margin = '0.5rem 0 1.5rem 0', style = {}, className = '', ...rest}) => {
  const defaultStyle = {
    display: 'flex',
    flexWrap: 'wrap',
    alignItems: 'center',
    gap,
    margin
  };
  return <div className={className} style={{
    ...defaultStyle,
    ...style
  }} {...rest}>
      {badges ? badges.map((b, i) => <Badge key={i} color={b.color}>
              {b.label}
            </Badge>) : children}
    </div>;
};

export const YouTubeVideo = ({embedUrl, url, title = "", author = "", hint = "", caption, className = "", style = {}, ...rest}) => {
  const toEmbedUrl = value => {
    if (!value || typeof value !== "string") return "";
    const source = value.trim();
    if (!source) return "";
    try {
      const parsed = new URL(source);
      const host = parsed.hostname.replace(/^www\./, "");
      if (host === "youtube.com" || host === "youtube-nocookie.com") {
        if (parsed.pathname.startsWith("/embed/")) return source;
        const videoId = parsed.pathname.startsWith("/shorts/") ? parsed.pathname.split("/").filter(Boolean)[1] : parsed.searchParams.get("v");
        if (!videoId) return "";
        const params = new URLSearchParams(parsed.search);
        params.delete("v");
        const query = params.toString();
        return `https://www.youtube.com/embed/${videoId}${query ? `?${query}` : ""}`;
      }
      if (host === "youtu.be") {
        const videoId = parsed.pathname.split("/").filter(Boolean)[0];
        if (!videoId) return "";
        const query = parsed.searchParams.toString();
        return `https://www.youtube.com/embed/${videoId}${query ? `?${query}` : ""}`;
      }
    } catch (_err) {
      return "";
    }
    return "";
  };
  const resolvedEmbedUrl = toEmbedUrl(embedUrl || url);
  if (!resolvedEmbedUrl) {
    return null;
  }
  const isValidYouTubeUrl = resolvedEmbedUrl.includes("youtube.com/embed/");
  if (!isValidYouTubeUrl) {
    console.warn("Invalid YouTube embed URL:", embedUrl || url);
    return null;
  }
  const buildCaption = () => {
    if (caption) return caption;
    if (!author && !title) return null;
    return <span style={{
      display: "flex",
      flexDirection: "column",
      alignItems: "center",
      textAlign: "center",
      lineHeight: 1.2
    }}>
        <span>
          {author && <>
              <Icon icon="microphone" size={16} /> <strong>{author}</strong>
            </>}
          {author && title ? `${" "} • ${title}` : title}
        </span>
      </span>;
  };
  const captionContent = buildCaption();
  return <Frame className={className} style={style} {...hint ? {
    hint
  } : {}} {...captionContent ? {
    caption: captionContent
  } : {}} {...rest}>
      <iframe className="w-full aspect-video rounded-xl" src={resolvedEmbedUrl} title={title || author || "YouTube Video"} allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
    </Frame>;
};

export const Video = ({src, title = "", author = "", caption, href = "", controls = true, autoPlay = false, loop = false, muted = false, children, className = "", style = {}, ...rest}) => {
  const buildCaption = () => {
    if (!author && caption) return caption;
    if (!author && !title) return null;
    return <span style={{
      display: "flex",
      flexDirection: "column",
      alignItems: "center",
      textAlign: "center",
      lineHeight: 1.2
    }}>
        <span>
          {author && (href ? <span style={{
      display: "flex",
      width: "100%",
      height: "fit-content",
      gap: "var(--lp-spacing-2)"
    }}>
                <a href={href} target="_blank" rel="noopener noreferrer">
                  <Icon icon="microphone" size={16} />
                  <span style={{
      borderBottom: "2px solid var(--lp-color-accent)",
      marginLeft: "0.2rem"
    }}>
                    <strong>{author}</strong>
                  </span>
                  <span style={{
      alignSelf: "flex-end",
      marginLeft: "var(--lp-spacing-px-6)"
    }}>
                    <Icon icon="arrow-up-right" size={12} color="var(--lp-color-accent)" />
                  </span>
                </a>
              </span> : <>
                <Icon icon="microphone" size={16} /> <strong>{author}</strong>
              </>)}
          {author && title ? ` • ${title}` : title}
        </span>
        {caption && <span style={{
      marginTop: "var(--lp-spacing-2)",
      fontStyle: "italic"
    }}>
            {caption}
          </span>}
      </span>;
  };
  const captionContent = buildCaption();
  const [linkHovered, setLinkHovered] = useState(false);
  return <div style={{
    position: "relative",
    display: "block"
  }}>
      {href && <a href={href} target="_blank" rel="noopener noreferrer" aria-label={title || author || "External link"} onMouseEnter={() => setLinkHovered(true)} onMouseLeave={() => setLinkHovered(false)} style={{
    position: "absolute",
    top: "var(--lp-spacing-2)",
    right: "var(--lp-spacing-3)",
    zIndex: "2",
    display: "inline-flex",
    alignItems: "center",
    justifyContent: "center",
    padding: "var(--lp-spacing-px-6)",
    background: linkHovered ? "var(--lp-color-border-default)" : "transparent",
    border: `1.5px solid ${linkHovered ? "var(--lp-color-accent)" : "var(--lp-color-text-primary)"}`,
    borderRadius: "6px",
    textDecoration: "none",
    lineHeight: 0,
    cursor: "pointer",
    transition: "all 0.15s ease"
  }}>
          <Icon icon="arrow-up-right" size={14} color={linkHovered ? "var(--lp-color-accent)" : "var(--lp-color-text-primary)"} />
        </a>}
      <Frame className={className} style={style} {...captionContent ? {
    caption: captionContent
  } : {}} {...rest}>
        <video controls={controls} autoPlay={autoPlay} loop={loop} muted={muted} playsInline className="w-full aspect-video rounded-xl" src={src} title={title || author || "Video"} />
        {children}
      </Frame>
    </div>;
};

export const CenteredContainer = ({children, maxWidth = "800px", padding = "0", preset = "default", width = "", minWidth = "", marginRight = "", marginBottom = "", textAlign = "", style = {}, className = "", ...rest}) => {
  const presets = {
    default: {},
    fitContent: {
      width: "fit-content",
      minWidth: "fit-content"
    },
    readable70: {
      width: "70%",
      minWidth: "fit-content"
    },
    readable80: {
      width: "80%",
      minWidth: "fit-content"
    },
    readable90: {
      width: "90%"
    },
    wide900: {
      maxWidth: "900px"
    }
  };
  const presetStyle = presets[preset] || presets.default;
  return <div className={className} style={{
    maxWidth: presetStyle.maxWidth || maxWidth,
    margin: "0 auto",
    padding: padding,
    ...presetStyle.width ? {
      width: presetStyle.width
    } : {},
    ...presetStyle.minWidth ? {
      minWidth: presetStyle.minWidth
    } : {},
    ...width ? {
      width
    } : {},
    ...minWidth ? {
      minWidth
    } : {},
    ...marginRight ? {
      marginRight
    } : {},
    ...marginBottom ? {
      marginBottom
    } : {},
    ...textAlign ? {
      textAlign
    } : {},
    ...style
  }} {...rest}>
      {children}
    </div>;
};

export const BorderedBox = ({children, variant = "default", padding = "var(--lp-spacing-4)", borderRadius = "var(--lp-spacing-px-8)", margin = "", accentBar = "", style = {}, className = "", ...rest}) => {
  const variants = {
    default: {
      border: "1px solid var(--lp-color-border-default)",
      backgroundColor: "var(--lp-color-bg-card)"
    },
    accent: {
      border: "1px solid var(--lp-color-accent)",
      backgroundColor: "var(--lp-color-bg-card)"
    },
    muted: {
      border: "1px solid var(--lp-color-border-default)",
      backgroundColor: "transparent"
    }
  };
  const accentBarColors = {
    accent: "var(--lp-color-accent)",
    positive: "var(--green-9)"
  };
  return <div data-docs-bordered-box="" data-accent-bar={accentBarColors[accentBar] ? "" : undefined} className={className} style={{
    ...variants[variant],
    padding: padding,
    borderRadius: borderRadius,
    ...margin ? {
      margin
    } : {},
    ...accentBarColors[accentBar] ? {
      position: "relative",
      '--accent-bar-color': accentBarColors[accentBar]
    } : {},
    ...style
  }} {...rest}>
      {children}
    </div>;
};

export const SocialLinks = ({links, size = 20, gap = "var(--lp-spacing-3)", justify = "center", iconColor, color, className = "", style = {}, ...rest}) => {
  const resolvedIconColor = iconColor || color;
  const linkStyle = {
    border: "none",
    borderBottom: "none",
    textDecoration: "none",
    display: "inline-flex"
  };
  const colors = {
    discord: resolvedIconColor || "var(--lp-color-brand-discord)",
    twitter: resolvedIconColor || "var(--lp-color-text-primary)",
    github: resolvedIconColor || "var(--lp-color-brand-github)",
    forum: resolvedIconColor || "var(--lp-color-brand-forum)",
    website: resolvedIconColor || "var(--lp-color-accent)",
    blog: resolvedIconColor || "var(--lp-color-accent)",
    globe: resolvedIconColor || "var(--lp-color-brand-globe)",
    twitch: resolvedIconColor || "var(--lp-color-brand-twitch)",
    youtube: resolvedIconColor || "var(--lp-color-brand-youtube)",
    instagram: resolvedIconColor || "var(--lp-color-brand-instagram)",
    linkedin: resolvedIconColor || "var(--lp-color-brand-linkedin)"
  };
  const iconColorMap = {
    discord: "discord",
    "x-twitter": "twitter",
    github: "github",
    "comment-pen": "forum",
    "pen-line": "blog",
    "pencil-line": "blog",
    globe: "globe",
    "book-open": "website",
    twitch: "twitch",
    youtube: "youtube",
    instagram: "instagram",
    linkedin: "linkedin"
  };
  const defaultLinks = [{
    icon: "discord",
    href: "https://discord.com/invite/livepeer",
    label: "Livepeer Discord"
  }, {
    icon: "globe",
    href: "https://livepeer.org",
    label: "Livepeer Website"
  }, {
    icon: "github",
    href: "https://github.com/livepeer",
    label: "Livepeer GitHub"
  }, {
    icon: "comment-pen",
    href: "https://forum.livepeer.org",
    label: "Livepeer Forum"
  }, {
    icon: "pen-line",
    href: "https://livepeer.org/blog",
    label: "Livepeer Blog"
  }, {
    icon: "x-twitter",
    href: "https://x.com/livepeer",
    label: "Livepeer X"
  }];
  const items = links || defaultLinks;
  return <div className={className} style={style} {...rest}>
      <style>{`
        .social-links a {
          border: none;
          border-bottom: none;
        }
      `}</style>
      <span className="social-links" style={{
    display: "flex",
    justifyContent: justify,
    gap: gap,
    marginTop: "var(--lp-spacing-2)"
  }}>
        {items.map((item, i) => <a key={i} href={item.href} target="_blank" rel="noopener noreferrer" aria-label={item.label} style={linkStyle}>
            <Tooltip headline={item.label}>
              <Icon icon={item.icon} size={size} color={colors[iconColorMap[item.icon] || "website"] || "var(--lp-color-accent)"} aria-hidden="true" />
            </Tooltip>
          </a>)}
      </span>
    </div>;
};

export const CustomCardTitle = ({icon, title, variant = "card", iconSize, style = {}, className = "", ...rest}) => {
  const variants = {
    card: {
      display: 'flex',
      alignItems: 'center',
      gap: "var(--lp-spacing-2)",
      marginBottom: "var(--lp-spacing-3)",
      color: 'var(--lp-color-text-primary)',
      fontSize: '1rem',
      fontWeight: 600
    },
    accordion: {
      display: 'inline-flex',
      alignItems: 'center',
      gap: "var(--lp-spacing-2)"
    },
    tab: {
      display: 'inline-flex',
      alignItems: 'center',
      gap: '0.4rem',
      fontSize: '0.875rem'
    }
  };
  const sizes = {
    card: 20,
    accordion: 18,
    tab: 14
  };
  const size = iconSize || sizes[variant] || 20;
  const baseStyle = variants[variant] || variants.card;
  return variant === 'card' ? <div className={className} style={{
    ...baseStyle,
    ...style
  }} {...rest}>
      {typeof icon === 'string' ? <Icon icon={icon} size={size} color="var(--lp-color-accent)" /> : icon}
      {title}
    </div> : <span className={className} style={{
    ...baseStyle,
    ...style
  }} {...rest}>
      {typeof icon === 'string' ? <Icon icon={icon} size={size} color="var(--lp-color-accent)" /> : icon}
      {title}
    </span>;
};

export const CustomDivider = ({color = "var(--lp-color-border-default)", middleText = "", spacing = "default", style = {}, className = "", ...rest}) => {
  const spacingPresets = {
    default: {
      margin: "24px 0"
    },
    overlap: {
      margin: "-1rem 0 -1rem 0"
    },
    tight: {
      margin: "0 0 -1rem 0"
    },
    section: {
      margin: "0 0 -2rem 0"
    },
    sectionOverlap: {
      margin: "-1rem 0 -2rem 0"
    },
    deepOverlap: {
      margin: "-1rem 0 -1.5rem 0"
    }
  };
  const spacingStyle = spacingPresets[spacing] || spacingPresets.default;
  return <div role="separator" aria-orientation="horizontal" className={className} style={{
    display: "flex",
    alignItems: "center",
    ...spacingStyle,
    fontSize: style?.fontSize || "16px",
    height: "fit-content",
    ...style
  }} {...rest}>
      <span style={{
    marginRight: "var(--lp-spacing-px-8)",
    opacity: 0.2
  }}>
        <Icon icon="/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg" />
      </span>
      <div style={{
    flex: 1,
    height: "1px",
    background: "var(--lp-color-border-default)",
    opacity: 0.4
  }}></div>
      {middleText && <>
          <Icon icon="circle" size={2} />
          <span style={{
    margin: "0 8px",
    fontWeight: "bold",
    color: color,
    opacity: 0.7
  }}>
            {middleText}
          </span>
          <Icon icon="circle" size={2} />
        </>}
      <div style={{
    flex: 1,
    height: "1px",
    background: "var(--lp-color-border-default)",
    opacity: 0.4
  }}></div>
      <span style={{
    marginLeft: "var(--lp-spacing-px-8)",
    opacity: 0.2
  }}>
        <span style={{
    display: "inline-block",
    transform: "scaleX(-1)"
  }}>
          <Icon icon="/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg" />
        </span>
      </span>
    </div>;
};

<IconBadgeWrapper margin="-1rem 0 1rem 0" iconColor="var(--accent)" size={16} items={studioInfra} />

<BadgeWrapper margin="0 0 1rem 0" badges={studioBadges} />

<CenteredContainer maxWidth="fit-content">
  <BorderedBox margin="0" padding="0.5rem 1rem 1rem 1rem" variant="accent">
    <SocialLinks iconColor="var(--text)" links={studioSocials} />
  </BorderedBox>
</CenteredContainer>

<Info>
  This page is maintained by the Livepeer Studio Team. Help & support available via the [Livepeer Discord]('https://discord.gg/livepeer').
</Info>

<Video src="https://raw.githubusercontent.com/livepeer/docs/docs-v2-assets/snippets/assets/media/videos/studio-hero-video.mp4" alt="Livepeer Studio" href="https://livepeer.studio/" />

Livepeer Studio is a hosted API platform for building **live streaming** and **video-on-demand** applications. It provides a REST API, TypeScript, Go, and Python SDKs, a React player and Broadcast component, and a dashboard for managing streams, assets, and billing.

Studio operates as a Gateway on the Livepeer Network, routing transcoding and delivery workloads to the decentralised Orchestrator pool.

<CustomDivider style={{margin: "-0.5rem 0 -2.5rem 0"}} />

## Key Features

* **Livestream** - Create streams, ingest via RTMP or WebRTC, play back with low-latency WebRTC or HLS, record sessions, and multistream to other platforms.
* **Video on demand** - Upload assets (TUS or PUT), transcode, and play back with the Livepeer Player or any HLS/MP4 player.
* **Access control** - Gate playback with webhooks or JWTs for subscriptions or token-gating.
* **Events and analytics** - Webhooks for stream and asset events, and a viewership API for engagement and performance metrics.
* **SDKs** - TypeScript, Go, and Python server SDKs, plus a React Player and Broadcast component.

<YouTubeVideo embedUrl="https://www.youtube.com/embed/Q4xIbubnqRI" title="Livepeer Studio  -  developer platform for live and on-demand video" />

<CustomDivider style={{margin: "0 0 -2.5rem 0"}} />

## Try Livepeer Studio

<CardGroup cols={2}>
  <Card title={<CustomCardTitle icon="bolt-lightning" title="Quickstart" />} href="/solutions/livepeer-studio/docs/quickstart" img="https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Quickstart.png?fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=a2393d4bcf5e29c919b679d6bc9e0c46" data-og-width="800" width="800" data-og-height="450" height="450" data-path="snippets/assets/media/heros/solutions/studio/Studio_Hero_Quickstart.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Quickstart.png?w=280&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=e45a4bbe5f784edf8d06839e7b49673a 280w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Quickstart.png?w=560&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=1f0865fbecb0553d390e478d06582c8a 560w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Quickstart.png?w=840&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=795e51b9b6f2a6ec88b099d8660eaf97 840w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Quickstart.png?w=1100&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=94f1d939330e27acd8f193b999d52106 1100w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Quickstart.png?w=1650&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=c1449b7d0fa6a19889790d0ecd7cc4b2 1650w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Quickstart.png?w=2500&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=c8ab5cc45e79348348ba648b42f9dd8c 2500w">
    Create an account, get an API key, and stream or upload your first asset.
  </Card>

  <Card title={<CustomCardTitle icon="rectangle-terminal" title="Studio CLI" />} href="/solutions/livepeer-studio/docs/get-started/studio-cli" img="https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-CLI.png?fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=bcd4421fba9be822cf946b2e8b65d561" data-og-width="800" width="800" data-og-height="450" height="450" data-path="snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-CLI.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-CLI.png?w=280&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=adaabb681d9195c84c85452f4c046f93 280w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-CLI.png?w=560&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=c0b4140be5bade58a90ed94a0614db35 560w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-CLI.png?w=840&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=87bf1d199a3ce36e9b15a81a4d5cc5f5 840w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-CLI.png?w=1100&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=15c7dfaef5a8398557ddaf3c193fdd79 1100w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-CLI.png?w=1650&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=6ac355e85f3d52fc98a9889f15e26463 1650w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-CLI.png?w=2500&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=9274b79fa2377da6568aaf595c422eba 2500w">
    Scaffold a new Livepeer app with `npx @livepeer/create`.
  </Card>

  <Card title={<CustomCardTitle icon="grid" title="Studio dashboard" />} href="https://livepeer.studio/dashboard" img="https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Dashboard.png?fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=2933dda168a77a2f8f304ebc23e95703" data-og-width="800" width="800" data-og-height="450" height="450" data-path="snippets/assets/media/heros/solutions/studio/Studio_Hero_Dashboard.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Dashboard.png?w=280&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=c90a5e6548b1840e963397be63087b39 280w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Dashboard.png?w=560&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=dbcbcee3821b23d50af89a69dda59cb4 560w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Dashboard.png?w=840&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=df4702968599d8e42fdf82c8208d679b 840w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Dashboard.png?w=1100&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=a774c87f4204ecf3d78376356b0dd70b 1100w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Dashboard.png?w=1650&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=2994e44f971142623e6dbb272ef86828 1650w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Dashboard.png?w=2500&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=1040b4221a27a2fc10a335c489c6d16d 2500w">
    Manage streams, assets, API keys, and billing.
  </Card>

  <Card title={<CustomCardTitle icon="code" title="API reference" />} href="/solutions/livepeer-studio/docs/reference/api" img="https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-API.png?fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=9d02acb405f0b2b393f47fc6dfc29bb4" data-og-width="800" width="800" data-og-height="450" height="450" data-path="snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-API.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-API.png?w=280&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=f82d4997ad0e520eed5ee47e168abb5e 280w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-API.png?w=560&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=405ca023ea049cec94da523fdae94060 560w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-API.png?w=840&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=19476afae458a84505344071f0fddf84 840w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-API.png?w=1100&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=fa0acaf35c9daa42d4994e313c1cf6d6 1100w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-API.png?w=1650&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=7bcf019929a671796dd6752079fb44ec 1650w, https://mintcdn.com/na-36/O-FYjjV6ev2CVZh-/snippets/assets/media/heros/solutions/studio/Studio_Hero_Studio-API.png?w=2500&fit=max&auto=format&n=O-FYjjV6ev2CVZh-&q=85&s=ffac6d589f0eb838a4303f8089dd556e 2500w">
    REST API for streams, assets, playback, webhooks, and more.
  </Card>
</CardGroup>

<CustomDivider style={{margin: "-0.5rem 0 -2.5rem 0"}} />

## Get Started

Get started with Livepeer Studio by creating an account, an API key, and then using the SDK to play a video (e.g. An asset you uploaded in the dashboard).

<StyledSteps>
  <StyledStep title="Create an account and API key" icon="key">
    1. Go to [Livepeer Studio](https://livepeer.studio) and create an account.
    2. Open the **Developers** area and click **Create API Key**.
    3. Store the API key securely (e.g. In environment variables). Use it from your **backend** when calling the Livepeer Studio API.

    <Warning>
      **CORS-enabled API keys** are not recommended and will be deprecated. Make requests to the Livepeer Studio API from your backend and never expose your secret API key in the browser.
    </Warning>

    <Info>
      Use separate accounts or [projects](/solutions/livepeer-studio/docs/reference/managing-projects) for development and production to keep environments isolated.
    </Info>
  </StyledStep>

  <StyledStep title="Install the SDK" icon="download">
    This example uses the JavaScript SDK and the Livepeer React library:

    ```bash icon="terminal" theme={"theme":{"light":"github-light","dark":"dark-plus"}}
    npm install livepeer @livepeer/react
    ```
  </StyledStep>

  <StyledStep title="Set up the client" icon="gear">
    Add your API key to environment variables, then create the Livepeer client (e.g. In a backend or server context):

    ```tsx icon="terminal" theme={"theme":{"light":"github-light","dark":"dark-plus"}}
    import Livepeer from "livepeer";

    const livepeer = new Livepeer({
      apiKey: process.env.LIVEPEER_API_KEY,
    });
    ```
  </StyledStep>

  <StyledStep title="Get playback info" icon="circle-info">
    Use the client to fetch playback info for an asset (for example, one you uploaded in the dashboard). You need the asset’s **playback ID**:

    ```ts icon="terminal" theme={"theme":{"light":"github-light","dark":"dark-plus"}}
    import { getSrc } from "@livepeer/react/external";

    const playbackId = "f5eese9wwl88k4g8"; // replace with your playback ID

    export async function getPlaybackSource() {
      const playbackInfo = await livepeer.playback.get(playbackId);
      return getSrc(playbackInfo.playbackInfo);
    }
    ```
  </StyledStep>

  <StyledStep title="Play the asset" icon="play">
    Use the Livepeer Player to play the video. Fetch the source on the server (e.g. In a React Server Component or API route), then pass it to the Player:

    ```tsx icon="terminal" theme={"theme":{"light":"github-light","dark":"dark-plus"}}
    import { PauseIcon, PlayIcon } from "@livepeer/react/assets";
    import { getSrc } from "@livepeer/react/external";
    import * as Player from "@livepeer/react/player";

    export function DemoPlayer({ src }: { src: Src[] | null }) {
      return (
        <Player.Root src={src}>
          <Player.Container>
            <Player.Video title="Video" />
            <Player.Controls className="flex items-center justify-center">
              <Player.PlayPauseTrigger className="w-10 h-10">
                <Player.PlayingIndicator asChild matcher={false}>
                  <PlayIcon />
                </Player.PlayingIndicator>
                <Player.PlayingIndicator asChild>
                  <PauseIcon />
                </Player.PlayingIndicator>
              </Player.PlayPauseTrigger>
            </Player.Controls>
          </Player.Container>
        </Player.Root>
      );
    }
    ```
  </StyledStep>
</StyledSteps>

<CustomDivider style={{margin: "-0.5rem 0 -2.5rem 0"}} />

## Livepeer Studio Resources

<CenteredContainer maxWidth="fit-content">
  <BorderedBox margin="0 0 1rem 0" padding="0.5rem 1rem 1rem 1rem" variant="accent">
    <SocialLinks iconColor="var(--text)" links={studioSocials} />
  </BorderedBox>
</CenteredContainer>

<CardGroup cols={2}>
  <Card title={<CustomCardTitle title="Studio docs" icon="newspaper"/>} href="https://livepeer.studio/docs" arrow>
    Full documentation: API reference, SDKs, and product guides.
  </Card>

  <Card title={<CustomCardTitle title="GitHub" icon="github"/>} href="https://github.com/livepeer/studio" arrow>
    Open-source Studio platform and SDK code.
  </Card>

  <Card title={<CustomCardTitle title="Discord" icon="discord"/>} href="https://discord.gg/livepeer" arrow>
    Livepeer community: builders, operators, and ecosystem contributors.
  </Card>

  <Card title={<CustomCardTitle title="Client use cases" icon="diagram-project"/>} href="/v2/solutions/livepeer-studio/overview" arrow>
    Platforms and products built on Livepeer Studio.
  </Card>
</CardGroup>
