Scottish Fire and Rescue Service were called to the flat in Beech Avenue, Galashiels, at about 03:30 on Saturday.
The fire is believed to have started in the kitchen.
Firefighters wearing breathing apparatus guided a man and a woman from the flat. The couple were treated by an ambulance crew at the scene.
Two people have been rescued from a top floor flat in the Scottish Borders after a fire broke out.