By the end of this lesson you will know how an AI agent turns code into a real MP4, when that beats a normal video editor, and which tool (HyperFrames or Remotion) fits you, licence included.
You need: nothing installed yet, only curiosity and 7 minutes · Time: 7 minutes
Tools like HyperFrames (made by HeyGen) and Remotion make videos out of web pages. You don't write that code. An AI coding agent (Claude Code, Codex, OpenCode…) writes it from your brief, and you watch, judge and ask for changes.
Here is what happens behind the scenes:
- The agent writes the video as ordinary web files: text, colours, images and animation.
- A preview opens in your browser, so you can watch it like a video.
- When you approve it, the tool renders it: a hidden Chrome browser takes a picture of every frame (30 pictures per second), and FFmpeg (a free program that builds video files) joins those pictures and the sound into one MP4.
You write the brief and judge the preview. The agent and the render do the rest. Why?Because the video is code, the same files always give the same video. You can change one word, re-render, and nothing else moves. That is very hard in a normal editor.
Code-made videos shine when the video is designed, not filmed:
- Product and app videos: your real app screens, big text, smooth motion. Example: a 30-second promo for your Daily Routine app.
- Explainers: an idea, a process, a few numbers. Example: "How UPI AutoPay works" in 45 seconds.
- Many versions of one video: the same offer video for 5 cities, or 10 tuition batches with different dates and fees.
- Captions and titles on top of a clip you already recorded.
A phone editor (CapCut, InShot, the Instagram editor) is still faster when you are cutting a long vlog, following a trending Reel format with a licensed song inside the app, or making a quick one-off story.
Match them Match each job with the best tool
Tap an item on the left, then its meaning on the right.
Why?Picking the right tool saves you hours. Code is strong at clean, repeatable, designed videos; a phone editor is strong at fast, filmed, one-off clips.
Both open a real browser, draw each frame and encode the result. The difference is what the agent writes and the licence:
HyperFrames Remotion What the agent writes HTML, CSS and JavaScript (web pages) React and TypeScript components Edit by hand Browser editor or the free HyperFrames Studio app Remotion Studio Licence Apache 2.0: free, also for commercial work Free for individuals and companies of up to 3 people; paid company licence above that Age Newer Older, many more tutorials and templates In this course we use HyperFrames, because its files are plain web pages and the licence has no headcount rules. If you already know React or your team uses Remotion, the same ideas (brief, storyboard, captions, rights, render) work there too: Remotion's own start command is
npx create-video@latest.
Remotion's licence page. Read it before you use Remotion for a company or client.Source: Remotion · remotion.dev · Screenshot © Remotion, used for education · used for education (image credits) CarefulRemotion counts your whole company's headcount, not only the people who use it. An agency of 4 or more needs a Company License; if your client also works on the Remotion project, both teams' headcounts are added. A freelancer working alone who delivers only the finished MP4 stays on the free licence. Check the Remotion License FAQ for your case.
Why?Licences are where freelancers get into trouble months later. Knowing the rule before you take client work costs you nothing.
- HyperFrames itself: free and open source (Apache 2.0). Rendering on your own computer is free and needs no account.
- The AI agent: this is the real cost. Most agents need a paid plan or API credit.
- Optional extras: HeyGen voices, avatars and cloud rendering use a HeyGen account and its credits. The free HyperFrames Studio app (Mac, Windows, Linux) needs a free HeyGen account.
- Remotion: free for you as an individual; see the licence step above for companies.
You don't need the most expensive model to start. In HeyGen's own video benchmark, open models like DeepSeek, Qwen, Kimi and GLM came close to the top paid models, and their docs say an open model is often enough for a first draft or a social post. You can run Claude Code or OpenCode on those open models through AllModelAPI (Claude Code setup, OpenCode setup) and give the key a spend limit.
Before any setup, decide what your first video is. One short brief now saves many prompts later:
Do it now Write your video brief (in a notes app)
Why?The agent can design motion, but it can't know your product, your viewer or your message. Those three decide whether the video works.
- Code-made videos are web pages that a browser photographs frame by frame; FFmpeg joins the frames into an MP4.
- Use code for designed videos (product, explainer, many versions); use a phone editor for filmed, one-off clips.
- HyperFrames is Apache 2.0 (free, also for business). Remotion is free up to 3 people, then a paid company licence.
- The agent is the real cost; open models are often enough for first drafts.
- Next: set up HyperFrames and make a 10-second test.
Create a free account to save your progress and open every lesson. Create free account