@Gorge ******
You fill out a TM8 form. You need a copy of your passport data page, a copy of your last visa/extension stamp and a photo. 1,000 baht for a single entry or 3,800 baht for a multiple entry. The form is available online or just as easy to fill out in the office.