If you are from a country like Spain or Peru, you are in luck, because to go to Thailand you do not need to apply for a visa. You should only have a passport with a minimum validity of six months at the end of the trip. You have all the information in: «Documents, recommendations and requirements to travel to Thailand«.
You have all the information in: "Documents, recommendations and requirements to travel to Thailand".