Leave and come back then you get 60 days, 90 days with extension.
********************************************************************************
%20entry%2C%20Thai%20immigration%20officials,arriving%20by%20air%20or%20land.
Starting July 15, 2024, U.S. citizens are entitled to receive a 60-day visa upon entry to the Kingdom of Thailand for the purpose of tourism, business engagements, and urgent or ad-hoc work. This visa category can be extended for another period not exceeding 30 days.