If you don't have a motorbike license in your home country, you will need to get a local license to legally drive.
People who rent them out might not care at all. But your insurance for sure will if there is an accident. And seeing as Thailand is pretty far up towards the top on traffic accidents... You want to be covered.