Every week an AI agent renders our video podcast. An episode is 384 lip-synced video clips, and each clip needs a GPU. We moved that job to Lambda Managed Instances (LMI), the Lambda capacity type that gained GPU support in November.
The first version ran on an NVIDIA L4 and held the GPU for about 5.2 hours, roughly $4.60 an episode. After a day of measuring and tuning, the same episode projects to about 1.1 hours and $2.20. This post covers how the pipeline is built, what surprised us, and how we stopped the agent from starting the GPU on its own.
Watch: Video Podcast Generator Demo on YouTube
Metric Value
GPU time per episode, first version 5.2 h
projected now ~1.1 h
per clip, g5 to tuned g6e 30 s → 9.9 s
How it fits together
LMI runs your function on EC2 instances in your own account, so it needs a network. You give the capacity provider a VPC: subnets and a security group.…