The formal name is a "extension of stay based on being a family member of an alien permitted a temporary stay in Thailand". This requires being formally married. A brief overview of the requirements can be found at
*****************************************
*****
(it's option 20)
However check your specific immigration office for their requirements.