Prerequisites
Before you begin, make sure you have:- Node.js 18.0 or higher installed
- An OpenAI API key (get one here)
- Basic familiarity with React and npm
Installation
Install dependencies
Install all required packages:This installs the full Remotion stack including:
remotion- Core Remotion library@remotion/player- Embedded video player@remotion/transitions- Smooth scene transitions@remotion/shapes- Geometric shape primitivesnext- Next.js framework for the web interfaceai- Vercel AI SDK for streaming responses@ai-sdk/openai- OpenAI provider
Configure environment variables
Create a Edit
.env file in the root directory:.env and add your OpenAI API key:The system uses GPT-5.2 by default. You can select different models (including reasoning models with low/medium/high effort) from the UI dropdown.
Start the development server
Create your first animation
Enter a prompt
On the landing page, you’ll see a large text input that says “What do you want to create?”Try this example prompt:You can also click one of the example prompt pills to auto-fill the input.
Watch the code generate
After submitting, you’ll be redirected to
/generate where you’ll see:- Left sidebar: Chat history showing your prompt and AI responses
- Code tab: Monaco editor with syntax highlighting showing the generated code
- Preview tab: Live Remotion Player rendering your animation
Review the generated code
Once generation completes, switch to the Code tab to see the generated component:Notice the constants-first design: All colors, sizes, and timing values are declared as editable constants at the top.
Preview the animation
Switch to the Preview tab to see your animation render in real-time.Player controls:
- Play/pause button
- Timeline scrubber to jump to any frame
- Frame counter showing current position
- Settings button to adjust duration and FPS
The default duration is 150 frames at 30 FPS (5 seconds). You can change these values in the settings modal.
Make edits with follow-up prompts
The chat sidebar at the left lets you refine your animation with natural language:The AI will apply targeted edits to the existing code rather than regenerating from scratch. You’ll see which lines changed in the assistant’s response.You can also manually edit the code in the Monaco editor. The system tracks manual edits and preserves them during AI refinements.
Understanding the generated code
Every generated component follows consistent patterns:Component structure
Animation patterns
Spring physics for organic motion:Next steps
Installation guide
Learn about all dependencies, configuration options, and deployment
Prompting best practices
Master prompt engineering to get better results
Skills system
Understand how domain expertise is injected into generation
API reference
Explore the generation API and request/response schemas
Troubleshooting
Code doesn't compile
Code doesn't compile
The system includes automatic error correction with up to 3 retry attempts. If compilation fails:
- Check the error message in the Preview tab
- The AI will automatically attempt to fix syntax errors
- You can manually edit the code to fix issues
- Send a follow-up prompt describing the problem
Animation looks different than expected
Animation looks different than expected
Be more specific in your prompt:
- Include exact colors (hex codes)
- Specify timing (“fade in over 1 second” = 30 frames at 30fps)
- Describe layout precisely (“centered”, “top left corner”, “20px padding”)
- Mention animation feel (“bouncy”, “smooth”, “sharp”)
Generation is slow
Generation is slow
Generation speed depends on:
- Model selection (GPT-5.2 with reasoning effort is slower but higher quality)
- Prompt complexity (more skills detected = more context)
- OpenAI API response time
Follow-up edits fail
Follow-up edits fail
If targeted edits fail to apply:
- The AI will automatically retry with better context matching
- You can manually apply changes in the code editor
- Try rephrasing your edit request more specifically
- The system will fall back to full code replacement if edits keep failing