If you simply want to extend your visa while in Thailand then you can go to Thai Immigration and the cost is 1,900 Baht for an additional 30 days if you have a tourist visa. Note that a visa on arrival cannot be extended. If you have a marriage visa or retirement visa then this needs to meet certain requirements for the visa to be extended to 1 year.