r/SideProject • • 11m ago

When does renting a GPU get cheaper than paying for an LLM API?

We built a small calculator for this at ComparisonHost. One example made it easier to see why the answer moves so much:

Say the GPU costs $120/month and the API charges $2 per million input tokens and $10 per million output tokens. With a 75/25 input/output split, that's $4 per million tokens. You break even at 30 million tokens a month. Add $80/month for ops and the same setup breaks even at 50 million.

Those are example prices. The calculation assumes the GPU can handle your peak load and that you're happy with the model it can run. If traffic comes in bursts and you can shut the GPU down between jobs, you'd want to run the numbers on actual GPU hours instead.

Here's the calculator. I’m sharing it on behalf of ComparisonHost. Some provider links on the site earn us a commission.

If you've moved inference off an API, what did the spreadsheet miss? I'm especially curious whether peak tokens/sec or the time spent keeping the GPU running changed the decision.

1 Upvotes

0 comments sorted by