Public hospitals charge foreigners pretty much the same amounts as average private hospitals do. Using public hospitals makes sense only if you have Thai social security.
It's a great way of having medical insurance when you're retired. Just work in Thailand at least 6 months, and then simply keep your Thai social security. No need to pay crazy amounts for private medical insurance.