You do not need to pay a monthly rate for Medicare Part A if you paid federal income taxes for at least a decade.
If you have not worked or paid taxes for this long, you can buy Medicare Part A for $505 a month if you worked less than 7 1/2 years, or $278 a month if you worked more than 7 1/2 years and less than 10 years.