---
title: "Comment by Jason Lin on \"Vibe Coding hit a wall: How I fixed $0.30/error OOMs and cut AI costs by 70%\" | Hashnode"
description: "OP here. 👋 Just wanted to share a quick post-mortem on my recent \"Vibe Coding\" experiment. I built a wrapper around Replicate's ProPainter model, but I didn't"
url: "https://hashnode.com/posts/vibe-coding-hit-a-wall-how-i-fixed-030error-ooms-and-cut-ai-costs-by-70/693fe84a32a7814f2b6443d8/comment/693fe9dc3b892d069baaa409"
---

[Discussion](https://hashnode.com/posts/vibe-coding-hit-a-wall-how-i-fixed-030error-ooms-and-cut-ai-costs-by-70/693fe84a32a7814f2b6443d8)

Comment [Vibe Coding hit a wall: How I fixed $0.30/error OOMs and cut AI costs by 70%](https://hashnode.com/posts/vibe-coding-hit-a-wall-how-i-fixed-030error-ooms-and-cut-ai-costs-by-70/693fe84a32a7814f2b6443d8)

[Jason Lin](https://hashnode.com/@renming)

[Dec 15, 2025](https://hashnode.com/posts/vibe-coding-hit-a-wall-how-i-fixed-030error-ooms-and-cut-ai-costs-by-70/693fe84a32a7814f2b6443d8/comment/693fe9dc3b892d069baaa409)

OP here. 👋 Just wanted to share a quick post-mortem on my recent "Vibe Coding" experiment. I built a wrapper around Replicate's ProPainter model, but I didn't realize that Replicate bills you for the time even if the process OOMs (Out of Memory). I ended up burning about $0.30 per failed request because users kept uploading 4K 60fps videos from iPhones. The fix was simple but effective: I used my idle VPS (Hostinger) to run FFmpeg as a middleware to normalize inputs (720p @ 30fps) before sending them to the GPU. The tool is linked in the article if you want to check it out. Happy to answer any questions about the Replicate/FFmpeg pipeline!
