Apply for the permit in your home country or another country where you are residing legally.You can also apply for a residence permit in Finland if your spouse is a Finnish citizen and you are a citizen of a visa-free country, i.e. you do not need a visa to come to Finland.