You as a US citizen cannot get any visa at the entry point. You need to apply for a Single Entry Tourist Visa which gives you 60 days upon entry to Thailand in advance of your travelling to Thailand. You can apply for it eVisa system (
*****************************
while you are in US.
Without any proper visa that you get before you fly, you only can be stamped into Thailand for 30 days on visa-exempt.