The term "flat" is more common in British English and is used widely in places where British influence is predominant, such as the UK and Commonwealth countries. "apartment" is more common in American English and used predominantly in the USA.