You can always rent a box and serve an open-weight model to yourself remotely. That's probably the only economic solution that halfway makes sense, given hardware prices these days.
Outright ownership is going to cost the least since you are responsible for amortizing the maintenance and replacement costs.
Providers also markup their rate because they assume customers are running paid services and can afford the markup.