For Thailand Chantree Yungyuen opened the scoring in the 14th minute by converting a penalty corner before Kornkanok Sanpoung (32nd) doubled the lead in the third quarter.
But in the very next minute, Georgina Sam (33rd) pulled one back for Ghana from a penalty stroke.
Yungyuen (60th) converted her second penalty corner of the day in the final minute of the match to restore Thailand's lead.
Thailand, who had lost to Poland 1-4 in their opening match, will now play hosts India on Tuesday while Ghana will face Poland.
