As
@Gar***
states get the additional 60 days visiting Thai family if you’re marriage is registered in Thailand.
You cannot apply apply for a DTV inside Thailand.
You can apply for a 90 days Non O in Thailand and you’ll need 15-21 days left on your stamp.
If you apply based on being over 50 years the requirements are proof of 800K baht transferred from abroad. Based on marriage it’s 400K baht.
If you’re able to get affidavit letter from your embassy regarding income the requirements are 65K baht a month as retired and 40K based on marriage.