Video editing API

To edit video from code, install the HyperFrames video editing API, an open-source SDK, and change text, colors or timing. Change one value and the rest of the video stays as designed, free on your machine.

  • Free and open source under Apache 2.0
  • Headless SDK for text, timing and styles
  • Render locally, on Lambda or in HeyGen’s cloud
Install the SDK
npm install @hyperframes/sdk

or Download Studio and make it on your computer

  • 56,457,385 Videos rendered
  • 92,014 GitHub stars
  • 1,437,808 npm downloads a week
Used by people at
Key Features

Video editing API tools for developers

Change any text, color or timing from code, and render it free.

A headless editing engine

Open a composition and change its text, styles, timing, media, variables and animations from your code. Every edit emits JSON patches with undo and redo, and no browser UI is needed. See the SDK docs.

Templates with variables

Mark text, colors, images, fonts and sound as inputs, then render one video per data row. Feed it JSON on your machine or JSONL on Lambda. Template variables keep the design fixed.

Render from the CLI or HeyGen’s cloud

Render locally for free, or run hyperframes cloud render with an API key from CI. HeyGen packages the project, renders it and can send a webhook when the file is ready.

Run it in your own backend

Run the renderer as an HTTP service inside your backend, protected by a token. Split long renders across your own AWS Lambda or Google Cloud Run, or start from Vercel, Cloudflare or Modal templates.

The same input, the same video

Renders ask for each frame by number, freeze clocks and seed randomness, so reruns always match. A Docker image with pinned Chrome, fonts and FFmpeg gives byte-identical renders in your CI.

Examples

Videos made through the HyperFrames API

Frames from real videos rendered from HTML and code with HyperFrames.

Six welcome videos: a frame from a video made with HyperFrames

Six welcome videos

One template rendered for six customers, each with their own plan.

One design, five languages: a frame from a video made with HyperFrames

One design, five languages

The same welcome video rendered in five languages side by side.

Release videos from notes: a frame from a video made with HyperFrames

Release videos from notes

Three release videos built from real changelog entries and PR numbers.

Weekly report from data: a frame from a video made with HyperFrames

Weekly report from data

Real npm download numbers become a counter and a bar chart.

Product listing clips: a frame from a video made with HyperFrames

Product listing clips

Two vertical product clips from one template with different data.

Five hooks, one ad: a frame from a video made with HyperFrames

Five hooks, one ad

Five versions of one vertical ad, each with a different hook.

Use cases

Video editing API use cases for video automation

Personalized videos at scale

Personalized videos at scale

Send every customer their own video. One template renders once per row, with their name, plan and numbers.

Video features inside your product

Video features inside your product

Let your users edit videos in your app. The SDK changes the composition behind your own interface.

Automated social clips with captions

Automated social clips with captions

Post without opening an editor. Turn every new listing or product into a vertical clip, rendered in your pipeline.

Changelog and release videos

Changelog and release videos

Render a short video for each release from your pull requests, straight from CI with an API key.

Data reports as video

Data reports as video

Make the weekly report watchable. Your numbers become charts and counters, rendered fresh from the latest data.

Agents that edit video

Agents that edit video

Give your own AI agent structured edits, so it changes a video’s text and timing without driving a browser.

How it works

How to edit video with an API

Step 1

Install the SDK and CLI

Run npm install @hyperframes/sdk for edits, and use npx hyperframes to render videos.

Step 2

Open your composition

Load the video’s HTML with the SDK, from a file, from memory or from your own storage.

Step 3

Apply your edits

Change text, styles, timing or variables in code, with undo and JSON patches.

Step 4

Render the video

Run npx hyperframes render locally, or hyperframes cloud render with an API key.

Pricing

Video editing API for free

Free and open source, from the engine to the desktop app.

Open source · free

The CLI, the skills and the browser editor are free under Apache 2.0, with 90,000+ GitHub stars. Renders on your computer need no account.

Read the quickstart

Studio on the web · free

Prefer not to code? Studio puts an agent beside a live preview, free to start, with unlimited exports on your computer.

Try Studio on the web

Free desktop app

Download Studio for Mac, Windows and Linux and open any project your code or your agent made.

Download free

Video editing API FAQs

What is a video editing API?

A video editing API is a programming interface that lets software edit and render videos without a person using an editor. Developers send instructions such as text changes, cuts, overlays and timing from code, and the service or library returns a finished video file.

How does the HyperFrames video editing API work?

A video is an HTML composition. The SDK opens it and applies edits from your code, and the CLI or the cloud renders it to MP4. The SDK quickstart walks through it.

Is it a hosted API or a library I run?

Both. The SDK and renderer run in your own code for free. HeyGen’s cloud render runs the same project on its servers when you sign in or pass an API key.

Are video editing APIs free?

Yes. The open-source engine, CLI and SDK are free under Apache 2.0, and renders on your computer need no account. Studio is free to start, and Pro is $25 a month when you want more. See HyperFrames pricing.

Which languages can I use?

The SDK is a JavaScript and TypeScript package for Node.js and the browser. Python, PHP or any other language can drive the CLI or call the render server’s HTTP endpoint.

Can I render one video per customer?

Yes. Mark the changing parts as variables and render once per data row, from JSON on your machine or JSONL on AWS Lambda.

How do I run renders in CI?

Sign in with an API key and run hyperframes cloud render, or render in the pinned Docker image for identical output. See the authentication guide.

Can AI agents use the API?

Yes. The SDK gives an agent structured edits without a browser, and nine free skills teach Claude Code, Codex and Cursor the whole workflow.

Which formats and sizes can I render?

MP4, transparent WebM, ProRes MOV, PNG sequences and GIF, at any size up to 4K and any frame rate from 1 to 240. Cloud renders take MP4, WebM or MOV at 1080p or 4K.

Is there a length limit?

Not on your machine. Only disk space limits a local render. Cloud projects upload up to 200 MB in one archive, with larger media sent separately.

Can I build my own editor on top of it?

Yes. The SDK is the engine behind custom editors, and the React components of the browser editor are open source too. See React video editor.

Can I turn HTML I already have into video?

Yes. Any HTML, CSS and JavaScript animation renders frame by frame, including GSAP, Lottie and Three.js. See HTML to video.

Can I add captions and transitions through the API?

Yes. Captions, transitions and effects are parts of the composition, so you add or change them from the SDK like any other element.

Can I edit videos made in the Studio app?

Yes. Every Studio project is a folder of plain HTML files, so the SDK opens and edits it like any other composition.

What is the difference between an editing API and a rendering API?

An editing API changes what is in the video, like text, clips, colors and timing. A rendering API turns a finished design into an MP4. This one does both. The SDK edits, and the CLI or the cloud renders.

Can I trim and join video clips with it?

Yes. Clips sit on tracks with their own start time and length, so trimming and joining are changes to those values. Render, and the cuts are baked into the MP4.

How do I pass my data into a template?

Mark the parts that change as variables, then render with your values, like a name, a price or a photo. One template becomes one video for every row of your data.

What do I need installed to render locally?

Node.js 22 or newer, npm and FFmpeg. Run npx hyperframes doctor to check your setup. Cloud renders need none of these on your machine.

How does it compare with hosted video APIs?

Hosted APIs bill per render and keep the engine on their servers. This SDK runs the same engine on your machine for free. See compare video APIs.

Who makes HyperFrames, and can I use it commercially?

Yes. HeyGen makes HyperFrames and uses it for its own videos. The framework is open source on GitHub under Apache 2.0, so you can use, change and sell work made with it.

See a video you love? Make it yours.

Or film it, or just describe it. Your footage, edited for you. Any motion graphic, format or style. Every word and shot stays yours to change. Edit your first video from code. HyperFrames is free and open source. Install the SDK and CLI in one command, or try Studio on the web with no code.