Pai is a small town in northern Thailand's Mae Hong Son Province, near the Myanmar border, about 146 km north-west of Chiang Mai on the northern route to Mae Hong Son. It lies on the Pai River.