Vila has represented Spain in several international tournaments. In 2014, he helped his team win a bronze medal at the FIBA Europe Under-16 Championship in Latvia. In the 2017 FIBA Under-19 World Cup in Cairo, Vila averaged 13 points, 10.9 rebounds and 2.7 assists per game. At the quarterfinals of the tournament, he recorded 24 points, 11 rebounds and three assists in a 70–58 win over Argentina.