It's going to depend on where you die(state) and whether they are shipping cremains or your embalmed body, in a casket. I'd suggest a direct cremation, with no funeral service, as it's the cheapest. If you have next of kin, they may be responsible for the costs but if not, the city or state may be responsible. Years ago I was able to get the city to take care of my late father's expenses. WE had been estranged for years and he had nothing. Flying a body to another state can be costly. Best to contact a funeral director in your area, for answers.
A 100%er, friend, died three yrs ago, had a local service, cremated, and military burial service and the VA paid $300 and the cost was about $6k, to his widow. A complete ripoff!!!
You can donate your body to a medical school for cadaver use. My Mom did that. If the school is in the state, where you die, they take care of transport costs, cremate the body, after a yrs use and send the cremains to the next of kin, all at no cost to the family. The family also receives a nice letter thanking them for the donation.
pr