Firefighters were called to the property in Ynysfach just before 04:00 GMT.
The blaze had started in rubbish outside the house and spread to the kitchen
The Welsh Ambulance Service said two male casualties were taken to Prince Charles Hospital.
Two people have been taken to hospital suffering from the effects of smoke inhalation after a house fire in Merthyr Tydfil.