← All posts

Tutorial

Remotion Explained: Create Videos With GPT and Claude

Learn what Remotion is, how React becomes a video, and how GPT, Codex and Claude help create animations, templates and reusable video workflows.

21 min read

Copy this article

Clipboard access is unavailable. Select the Markdown and copy it, then paste it into your chat.

Remotion lets you create videos using React. You describe the visuals in code, preview the animation, and render a video file. GPT and Claude can help write the script, plan scenes and generate the project code. A coding agent such as Codex or Claude Code can also work directly with the files and tools needed to build it.

That makes Remotion worth exploring if you want clear animated explanations, product walkthroughs or a consistent series of short videos. The useful question is what you want to show: a diagram, a changing number, a screen recording, or a presenter explaining an idea.

Quick answer

Give the AI a specific visual brief, use it to build a Remotion composition, inspect the preview, and export the result. Keep the project so you can change the text, timing or data for the next video. The setup and integration details below were checked against official documentation on October 10, 2026; follow the linked docs when commands or plugin screens change.

What is Remotion, and how does it work?

In Remotion, a React component describes what should appear at a particular frame. A composition connects that component to its video settings: width, height, frame rate and duration.

For example, a 12-second animation at 30 frames per second contains 360 frames. You might show a question for the first three seconds, animate a diagram for six, and finish with a three-second answer card.

The useCurrentFrame() hook tells the component where it is in the video. You can use that value to change an element’s position, size or opacity over time. useVideoConfig() gives you settings such as frame rate and dimensions. These are the core ideas in Remotion’s fundamentals guide.

The project stays editable. If the title needs another second on screen, you change the timing and render again. If the same layout needs different text, you update the content rather than rebuild the design from scratch.

What can you make with Remotion?

Start with a message that benefits from movement. Here are four project ideas for an AI-focused blog:

Video idea What viewers see Why the animation helps
Explain an agent workflow A request moves through search, draft and review Shows the order of operations and the human checkpoint
Introduce a model release A dated feature card and one task example Separates the announcement from its practical use
Explain structured output Messy text becomes a small labelled JSON object Makes an abstract format easier to understand
Demo a small game Captured gameplay with controls and bug-fix labels Shows whether the project actually works

These are proposed projects, not claims that they have already been built or tested. For examples that others have shared, Remotion’s community prompt showcase includes product demos, animated charts and map-based videos made with coding agents. Use those as inspiration for your own brief.

How Remotion works with GPT and ChatGPT

GPT can help at several stages: turn an article into a scene outline, shorten narration, write React code and explain an error. OpenAI’s code generation guide covers the coding part.

The interface matters. In a regular chat, you may receive code that you need to save and run yourself. In a coding-agent environment with project access, the agent can edit files and use development tools, subject to that environment’s permissions.

Remotion currently documents a plugin for Codex in the ChatGPT desktop app. Its plugin directory explains the supported integration and links to setup instructions. Check that specific surface instead of assuming every ChatGPT conversation has the same tools.

A useful division of work is:

  1. Ask GPT to help clarify the message and scene sequence.
  2. Ask the coding agent to implement that brief in a Remotion project.
  3. Review the preview and request specific changes.
  4. Render and inspect the exported file.

For this workflow, the model helps author the project. The animation can then run from its code and assets. A video does not need a fresh model response for every frame. Calling an AI API from your own application is a separate design choice.

How Remotion works with Claude and Claude Code

Claude can help develop the script and storyboard. Claude Code adds a workflow around local project files, where you can ask it to create or revise the implementation.

Remotion maintains an official Claude Code plugin that includes its agent skills. The current Claude Code plugin instructions give this terminal setup:

claude plugin marketplace add remotion-dev/claude-code-plugin
claude plugin install remotion@remotion

Restart Claude Code afterward. In a new session in your intended project folder, invoke the creation skill with your brief, for example:

/remotion:remotion-create Create a 12-second vertical animation
explaining an AI draft review workflow: request, draft, human check.
Use three readable cards, simple transitions and no narration.

The docs also provide a Claude desktop installation path through its plugin directory. These are alternative setup routes; you do not need to use both.

Remotion’s agent skills provide guidance for tasks such as creating compositions, animation and rendering. They help give the agent relevant instructions. You still need to judge whether the result explains the topic clearly.

Full tutorial: render your first Remotion video

This lesson builds the actual 12-second animation below: an opening message, three workflow cards, and a final review reminder. It is a landscape composition so the text is readable in a blog or YouTube video. The earlier vertical brief is an alternative project; do not reuse its dimensions without adjusting the layout.

The clip is silent. It displays an opening title for three seconds, reveals Request, AI draft and Human check during the middle six seconds, and ends with a three-second reminder. These are actual rendered frames from the source in this tutorial.

Actual rendered frame showing Request, AI draft and Human check in three lime-bordered cards.

1. Check prerequisites and download the project

Use Node.js 24 LTS (the version tested here). Node 26 becomes the newest LTS line on October 28, 2026; use it only after confirming the lockfile installs cleanly. You also need npm. If Node is not installed, get the Node 24 LTS installer from the official Node.js download page. On Windows, include npm during installation, then reopen your terminal. Run the following to check your setup:

node --version
npm --version

This example was rendered locally on Windows with Node 24.12.0, npm 11.6.2, Remotion 4.0.534 and React 19.2.0. These are the tested versions, not a promise that they will always be the newest releases. Internet access is needed to install dependencies; the first render can also download Chrome Headless Shell.

Download the complete Remotion starter project. Extract it, open a terminal in the extracted project folder, and run:

npm ci
npm run dev

The archive includes package.json, its lockfile and the three source files below. Follow the local URL printed by the preview command. Select DraftReview in Studio. Stop the preview with Ctrl+C when you finish. A regular HTML page or an AI API key is not required for this render-only example.

If you want to assemble it yourself, create an empty folder with a src subfolder. Save the following package.json at its root, create all three source files, then run npm install and npm run dev. Use npm ci only when you already have the supplied lockfile.

{
  "name": "draft-review-video",
  "private": true,
  "scripts": {
    "dev": "remotion studio src/index.jsx",
    "render": "remotion render src/index.jsx DraftReview out/draft-review.mp4",
    "still": "remotion still src/index.jsx DraftReview out/workflow.png --frame=180"
  },
  "dependencies": {
    "@remotion/cli": "4.0.534",
    "remotion": "4.0.534",
    "react": "19.2.0",
    "react-dom": "19.2.0"
  }
}

2. Register the project entry point

Create src/index.jsx. This tells Remotion which root component contains the available compositions. Keep registration separate from the composition file, as explained in the registerRoot documentation.

import {registerRoot} from 'remotion';
import {VideoRoot} from './Root';

registerRoot(VideoRoot);

3. Define dimensions, frame rate and duration

Create src/Root.jsx. The composition ID is DraftReview. At 30 frames per second, 360 frames gives twelve seconds. The default headline is a prop so you can reuse the layout with different text.

import React from 'react';
import {Composition} from 'remotion';
import {DraftReview} from './DraftReview';

export const VideoRoot = () => (
  <Composition
    id="DraftReview"
    component={DraftReview}
    width={1280}
    height={720}
    fps={30}
    durationInFrames={360}
    defaultProps={{headline: 'A useful draft needs a human check'}}
  />
);

Actual opening frame from the Remotion export, showing the default headline and the workflow subtitle.

4. Build the three scenes

Create src/DraftReview.jsx. The first scene uses frames 0 to 89, the middle scene uses 90 to 269, and the ending uses 270 to 359. Each card gets a different start frame. Its opacity and vertical position are calculated from the current frame, which makes seeking and rendering repeatable.

import React from 'react';
import {AbsoluteFill, interpolate, useCurrentFrame} from 'remotion';

const clamp = {extrapolateLeft: 'clamp', extrapolateRight: 'clamp'};
const steps = ['Request', 'AI draft', 'Human check'];

export const DraftReview = ({headline}) => {
  const frame = useCurrentFrame();
  const opening = frame < 90;
  const ending = frame >= 270;
  const title = opening ? headline : ending ? 'Check facts. Edit wording. Then share.' : 'From request to reviewed draft';

  return (
    <AbsoluteFill style={{backgroundColor: '#10131a', color: '#f4f5f7', fontFamily: 'Arial, sans-serif', padding: 70, justifyContent: 'center'}}>
      <div style={{color: '#c5f76d', fontSize: 24, letterSpacing: 4, marginBottom: 28}}>AI WORKFLOW / HUMAN REVIEW</div>
      <h1 style={{fontSize: 58, lineHeight: 1.15, margin: '0 0 45px', maxWidth: 1050}}>{title}</h1>
      {!opening && !ending && (
        <div style={{display: 'flex', gap: 24}}>
          {steps.map((label, index) => {
            const start = 90 + index * 25;
            const opacity = interpolate(frame, [start, start + 18], [0, 1], clamp);
            const y = interpolate(frame, [start, start + 18], [30, 0], clamp);
            return (
              <div key={label} style={{flex: 1, border: '2px solid #c5f76d', borderRadius: 20, padding: 28, opacity, transform: `translateY(${y}px)`}}>
                <div style={{fontSize: 24, color: '#c5f76d', marginBottom: 16}}>0{index + 1}</div>
                <div style={{fontSize: 35, fontWeight: 700}}>{label}</div>
              </div>
            );
          })}
        </div>
      )}
      {(opening || ending) && <p style={{fontSize: 30, color: '#b7beca', margin: 0}}>A clear request. An editable draft. A person who checks it.</p>}
      <div style={{position: 'absolute', bottom: 50, left: 70, right: 70, height: 6, background: '#262d39'}}>
        <div style={{width: `${((frame + 1) / 360) * 100}%`, height: '100%', background: '#c5f76d'}} />
      </div>
    </AbsoluteFill>
  );
};

The interpolate reference describes mapping frame ranges to animated values. Clamping keeps a card at full opacity after its entrance has finished. Use frame-driven values for this example instead of timers or random values calculated during rendering.

5. Export the video and a still image

From the project directory, run:

npm run render
npm run still

The first command writes out/draft-review.mp4. The second writes out/workflow.png at frame 180, six seconds into the animation. Both scripts explicitly name the entry point and composition, so they work without depending on a template’s default entry path. The render CLI reference explains the arguments and export options.

Open the MP4 in a player. Check the title from 0 to 3 seconds, all three cards during 3 to 9 seconds, and the final reminder from 9 to 12 seconds. The supplied export is 1280 × 720, H.264, 30 fps and twelve seconds long. Preview a few frames around 90 and 270 to inspect the scene boundaries.

Actual end card from the rendered Remotion video with the reminder to check facts, edit wording and then share.

6. Change the content without rebuilding the layout

Create a file named headline.json at the project root:

{"headline": "An AI answer needs a source check"}

Render a second version using input props:

npx remotion render src/index.jsx DraftReview out/source-check.mp4 --props=./headline.json

The scene labels remain the same; only the opening headline changes. Open the new export and verify that specific change. Both the default render and this prop-based render succeeded locally. For a broader redesign, ask GPT or Claude to change one scene at a time, preserving the composition ID and output settings. Any edits you make need their own review.

Troubleshooting the Remotion project

Symptom What to check
Composition is missing Confirm src/index.jsx imports VideoRoot and calls registerRoot once; Root.jsx must export the DraftReview composition
A module cannot be found Run npm ci in the extracted project folder; all Remotion packages in this example use the same version
npm ci reports a missing lockfile Use the complete archive, or run npm install if you assembled the files manually
First export waits on a browser download Check the terminal and network access; let Chrome Headless Shell finish downloading
Text clips or wraps awkwardly Shorten the headline or adjust its font size and width; inspect the rendered file
A prop file fails to load Use valid JSON and a path relative to the project folder; the field is named headline
Preview looks different from export Check fonts, assets and any time-based or random code introduced by edits; render the corrected version again

No third-party fonts, images, narration or AI inference calls are included in this source. If you add those assets, account for their availability, timing and usage rights. Check Remotion’s licensing rules later in this article before using it for a team.

Reuse one video template for several articles

Remotion supports parameterized videos, where inputs change the content of a reusable composition. For a blog series, you could design a template around a headline, three steps and a final takeaway.

For example, the same scene structure could explain agent review, JSON validation or a game restart bug. Change the labels and illustrations, then check each version. Longer text may need more screen time or a different layout.

Keep your content inputs separate from the visual design. If an AI drafts those inputs, validate required fields and text lengths before rendering. The structured output and JSON schema guide covers that part of the workflow.

Where Remotion fits in a HeyGen workflow

For this site’s article-and-video format, a useful production approach is to let a presenter introduce the problem, show a short animation that explains it, and close with the next step.

HeyGen’s AI Studio script guide covers scene scripts and narration previews. Remotion can supply a separately rendered visual segment. Assemble the final video in an editor that supports your chosen assets, and check the timing between spoken words and on-screen changes.

Treat this as an editorial recommendation. A presenter-only clip may already explain a simple tip clearly. Add an animation when seeing the process helps the viewer understand it.

Build a reusable graphics layer around the narration

For a 1 to 4 minute tutorial, plan the spoken explanation first. Identify the moments where a visual helps: the original input, a transformation, a failed check and the corrected result. Remotion can supply title cards, a small workflow diagram and labels around genuine screen recordings. HeyGen can supply the presenter segment. Keep those components separate so a source correction does not require rebuilding the whole production.

For example, a three-minute CSV-cleanup walkthrough could start with a presenter showing the duplicate-record problem, cut to a short animation of the review queue, show the actual output files and return to the presenter for the limitation. Our existing 12-second composition demonstrates the graphics approach.

Use an asset manifest before assembling the video:

Asset Check before assembly
Verified narration Product claims and demonstration results match the article
Presenter export Correct voice, readable captions and measured duration
Screen recording Captures the real example; no private data or simulated success
Remotion segment Correct dimensions, stable fonts and readable labels
Final export Audio synchronization, scene boundaries and 1 to 4 minute runtime

Remotion’s OffthreadVideo documentation covers one way to bring recorded footage into a composition; the page itself points new projects to the newer <Video> component from @remotion/media. Start with short, owned recordings and inspect the rendered result. Rendering an asset is not proof that the software action shown in it succeeded.

You can keep scripts, props and composition changes in version control. A code diff makes text and layout edits visible, but review the MP4 too: a correct-looking diff can still produce clipped text, an unreadable screen or mistimed audio. Likewise, a preview does not guarantee an identical final export when fonts, assets or nondeterministic code differ.

This workflow scales through reusable layouts and explicit inputs, not a promise that every AI-generated composition needs no manual work. Validate each new headline and asset, then watch the export. Paid narration services, media rights, licensing and rendering infrastructure remain separate production considerations.

Common questions about Remotion and AI

Do I need to know React?

Some React knowledge helps you understand the generated project and make corrections. An agent can handle much of the initial implementation, but start with a small composition and ask it to explain the files. Expand after you can preview and export that project successfully.

Does Remotion generate footage from a text prompt?

The workflow described here turns a prompt into an editable code project that renders a video. If your brief needs recorded footage, generated images or narration, plan where those assets will come from and how they will be used. Include them deliberately rather than leaving the agent to choose.

Is Remotion free?

Remotion has license conditions that depend on your situation. Remotion’s license FAQ says the free license covers individuals, for-profit teams of up to three people, non-profits and people evaluating the software, and that everyone else needs a Company License. Headcount can combine with a client’s when the client runs the project. Check the current license and pricing rules before adopting it for a team. AI subscriptions, asset services and rendering infrastructure can have separate costs.

FAQ

How do you get started making videos with Remotion and AI?

Give the AI a specific visual brief, use it to build a Remotion composition, inspect the preview and export the result. For a hands-on start, use Node.js 24 LTS and npm, download the complete Remotion starter project, extract it, and run npm ci and npm run dev. Then select DraftReview in Studio, and keep the project so you can change the text, timing or data for the next video.

How do you install the Remotion plugin for Claude Code?

Remotion’s Claude Code plugin instructions give two terminal commands: claude plugin marketplace add remotion-dev/claude-code-plugin and claude plugin install remotion@remotion. Restart Claude Code, then invoke the creation skill with your brief in a new session in your project folder. The docs also provide a Claude desktop installation path, and these are alternative setup routes, so you don’t need both. This post checked the setup details against official documentation on October 10, 2026, so follow the linked docs when commands or plugin screens change.

Can ChatGPT or Codex create a Remotion video?

GPT can help turn an article into a scene outline, shorten narration, write React code and explain an error. In a regular chat you may receive code that you need to save and run yourself, while a coding agent with project access can edit files and use development tools within that environment’s limits. Remotion currently documents a plugin for Codex in the ChatGPT desktop app, so check that specific surface instead of assuming every ChatGPT conversation has the same tools.

Does an AI model have to generate every frame of a Remotion video?

No. The model helps author the project, and the animation then runs from its code and assets, so a video doesn’t need a fresh model response for every frame. In the tutorial, each card’s opacity and position are calculated from the current frame, which makes seeking and rendering repeatable. The starter project includes no AI inference calls and needs no AI API key, and calling an AI API from your own application is a separate design choice.

How do you change the text in a Remotion video without rebuilding it?

Pass the content in as a prop. The tutorial’s composition takes a headline prop, so you can put a value in headline.json and render with npx remotion render src/index.jsx DraftReview out/source-check.mp4 --props=./headline.json. Only the opening headline changes while the scene labels stay the same, so open the new export and verify that change. Longer text may need more screen time or a different layout.

What are the limits of making videos with Remotion and AI?

The example in this post was rendered locally on Windows with Node 24.12.0, npm 11.6.2, Remotion 4.0.534 and React 19.2.0, and those are the tested versions rather than a promise about the newest releases. The workflow doesn’t mean every AI-generated composition needs no manual work, so watch the export for clipped text, unreadable screens or mistimed audio, because a correct-looking diff or a preview doesn’t guarantee an identical final export. Fonts, images, narration and media rights have their own availability and usage considerations. Remotion’s license conditions depend on your situation, so check the current license rules before adopting it for a team.

Where to go next

Choose one paragraph from a useful article and turn it into a 12-second, three-scene brief. Build the composition, inspect it, export it, and change one input to see how well the template holds up.

For help defining a manageable project, read shipping small AI projects. For the video implementation, keep the Remotion getting-started guide open alongside the project. The first milestone is a clear explanation that survives both a preview and a rendered export.

  • #remotion
  • #ai-video
  • #claude-code
  • #chatgpt
  • #react