Actually, it's 15 years old.
The age of sexual consent for both boys and girls is 15 years. The Thai Penal Code also provides for close-in age exemption in case a child below 18 has sexual intercourse with another child aged 13-15 years of age with the consent of the latter.
https://ecpat.org/country/thailand