lesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youlesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youlesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youlesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youlesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youlesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youlesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youlesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youlesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youlesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youlesson 3 of 3 · the cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts youthe cost math — when ai video is viable and when it bankrupts you
Write cost_per_minute(model, retake_rate) that takes:
model(str): one of the keys in thePRICESdict below.retake_rate(float): the retake multiplier (1.0 = no retakes, 10.0 = generate 10x the final length).
Return a float — dollars per minute of FINISHED video. The formula is:
cost_per_minute = price_per_sec × 60 × retake_rate
If the model name is not in the PRICES dict, raise
ValueError("unknown model: {model}").
Round the returned float to 2 decimal places using round(x, 2).
Five rows run. Expected output:
Veo 3.1 Lite (720p+audio) @ 1.0x = $ 3.00/min
Veo 3.1 Lite (720p+audio) @ 2.5x = $ 7.50/min
Omni 1.1 Flash (720p) @ 1.0x = $ 6.00/min
Veo 3.1 Standard (audio) @ 1.0x = $ 24.00/min
Sora 2 Pro (1024p) @ 1.0x = $ 30.00/min