You can apply for a residence permit electronically via the EnterFinland service, by visiting a Finnish Embassy in a country other than Finland, or by visiting one of the service points of the Finnish Immigration Service in Finland.