A flat is (British-English, Indian-English) is nothing more than an apartment (American English). It is a self-contained housing unit, usually on a single story.
Apartment building – A building consisting of many apartments
Apartment complex – A family of apartment buildings on the same property and with the same ownership