Calculate the API cost of generating AI video clips based on duration and resolution.
AI video generation tools (like Runway, Pika, or Sora-style models) typically bill based on the number of frames rendered, which is a function of clip duration and frame rate. This calculator multiplies duration × fps to get total frames, then applies a per-frame cost to estimate total spend across a batch of videos. Higher frame rates and longer clips increase cost linearly with frame count.
total_cost = (duration_sec × fps) × cost_per_frame × num_videos
Most generative video models render and bill per output frame, so a 30fps clip costs 25% more than the same duration at 24fps.
Yes, in practice — higher resolution increases the per-frame compute cost. Adjust the cost-per-frame input upward to model higher-resolution outputs.
Divide that provider's advertised price for a sample clip by its total frame count (duration × fps) to back into a per-frame rate.