If you are in a country whose Thai embassy has adopted e-visa, then you would apply here:
****************************
If not, you would apply at the Thai embassy that serves your area. Additional details should be available on the website of your Thai embassy regardless.