Since you mentioned 400k baht I assume you are married to or the parent of a Thai.
You could get single entry non-o visa that that would allow a 90 day entry that you could extend for 60 days allowing a total stay of about 5 months. After that you could leave and re-enter the country to get 30 day visa exempt entry.