POST /api/lambda/render
Triggers a video render job on AWS Lambda using Remotion’s serverless rendering capabilities. This endpoint initiates the rendering process and returns information needed to track the render progress.Request Body
Response
Returns aRenderMediaOnLambdaOutput object from Remotion Lambda with details about the initiated render job.
Unique identifier for this render job. Use this to check progress via the
/api/lambda/progress endpoint.The S3 bucket where the rendered video will be stored
URL to CloudWatch logs for debugging the render job
Direct link to the S3 folder containing render artifacts
Configuration
The endpoint uses settings fromconfig.mjs:
- Region: AWS region (default:
us-east-1) - RAM: Memory allocated to Lambda function (default: 3009 MB)
- DISK: Disk space for Lambda (default: 10240 MB)
- TIMEOUT: Maximum execution time (default: 240 seconds)
- Codec: Video codec (fixed to
h264) - Frames per Lambda: Number of frames rendered per Lambda invocation (fixed to 60)
Example Request
Example Response
The render is asynchronous. After receiving the
renderId, poll the /api/lambda/progress endpoint to track rendering progress and get the final video URL when complete.Error Responses
Missing AWS CredentialsRelated Endpoints
- Lambda Progress - Check render status and get video URL