How much does Remotion Lambda cost?
This page shows estimations to help you better expect how much Remotion Lambda will cost.
All renders are done with the following Lambda configuration:
- 2048 MB RAM (default)
- 10GB Disk size (default from Remotion 5.0)
- Default concurrency
us-east-1region- Remotion version 4.0.381
Prices may also vary based on the region, heaviness of your bundle, fluctuations in latency.
We always recommend to measure the cost of your composition yourself.
Rendering the Hello World project
Rendering the HelloWorld composition of our default template.
Warm Lambda: $0.001, 7.56sec
Cold Lambda: $0.001, 11.02sec
Rendering a 1 minute Video in the same S3 bucket
OffthreadRemoteVideo.tsxtsximportReact from 'react';import {Video } from '@remotion/media';import {CalculateMetadataFunction ,Composition ,staticFile } from 'remotion';// https://www.remotion.dev/docs/mediabunny/metadataimport {getMediaMetadata } from './get-media-metadata';constsrc =staticFile ('bigbuckbunny.mp4');export constcalculateMetadataFn :CalculateMetadataFunction <Record <string, unknown>> = async () => {const {durationInSeconds ,dimensions ,fps } = awaitgetMediaMetadata (src );return {durationInFrames :Math .round (durationInSeconds *fps !), // 1440fps :fps !,width :dimensions !.width ,height :dimensions !.height ,};};export constComponent = () => {return <Video src ={src } />;};export constVideoFromFileComp = () => {return <Composition component ={Component }id ="VideoFromFile"calculateMetadata ={calculateMetadataFn } />;};// In Root.tsx:// <VideoFromFileComp />
This is the video file used.
Warm Lambda: $0.017, 18.91sec
Cold Lambda: $0.021, 15.52sec
Rendering a video inside your video increases the cost significantly.
Rendering a 10 minute Remote HD Video
OffthreadRemoteVideo.tsxtsximportReact from 'react';import {Video } from '@remotion/media';import {CalculateMetadataFunction ,Composition } from 'remotion';// https://www.remotion.dev/docs/mediabunny/metadataimport {getMediaMetadata } from './get-media-metadata';constsrc = 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4';export constcalculateMetadataFn :CalculateMetadataFunction <Record <string, unknown>> = async () => {const {durationInSeconds ,dimensions ,fps } = awaitgetMediaMetadata (src );return {durationInFrames :Math .round (durationInSeconds *fps !), // 14315fps :fps !,width :dimensions !.width ,height :dimensions !.height ,};};export constComponent = () => {return <Video src ={src } />;};export constNewVideoComp = () => {return <Composition component ={Component }id ="NewVideo"calculateMetadata ={calculateMetadataFn } />;};// In Root.tsx:// <NewVideoComp />
Cold Lambda: $0.108, 60.98sec
Warm Lambda: $0.103, 56.09sec
Rendering a 10 second Remote 4K Video
OffthreadRemoteVideo.tsxtsximportReact from 'react';import {Video } from '@remotion/media';import {CalculateMetadataFunction ,Composition } from 'remotion';// https://www.remotion.dev/docs/mediabunny/metadataimport {getMediaMetadata } from './get-media-metadata';constsrc = 'https://videos.pexels.com/video-files/5530402/5530402-uhd_3840_2160_25fps.mp4';export constcalculateMetadataFn :CalculateMetadataFunction <Record <string, unknown>> = async () => {const {durationInSeconds ,dimensions ,fps } = awaitgetMediaMetadata (src );return {durationInFrames :Math .round (durationInSeconds *fps !),fps :fps !,width :dimensions !.width ,height :dimensions !.height ,};};export constComponent = () => {return <Video src ={src } />;};export constNewVideoComp = () => {return <Composition component ={Component }id ="NewVideo"calculateMetadata ={calculateMetadataFn } />;};// In Root.tsx:// <NewVideoComp />
Cold Lambda: $0.014, 53.09sec
Warm Lambda: $0.013, 45.28sec
Increasing the resolution to 4K does significantly increase the time to render and therefore the cost.
Additional cost
The calculation above only factors in Lambda computation cost.
This is usually the majority of the cost.
However, you also incur additional cost for:
- Bandwidth: Pulling in assets happens always over HTTP and incurs S3 egress cost.
- Storage: Storing the sites and renders in S3 incurs S3 storage.
- CloudWatch Logs: Renders are logged to CloudWatch by default.
- Remotion Licensing: Teams of 4+ people also need to acquire a Remotion Company License in addition to the AWS cost.