You would be applying for a 90 day Non-Immigrant Type O visa based on being married to a foreigner who legally works here.
You need to meet these criteria
*****************************************************************************************
************
*****
329-
*****
7-
*****
5.pdf
Be advised the thai consulate in KL is NOT the most user friendly consulate in S/E Asia to deal with.