Is laser communications or infrared light communications considered part of the Amateur spectrum
do you need a licence to play with long distance light or high power laser communications?
You don't need an amateur radio license for this, but as mentioned by others, high power light sources and lasers are regulated by other means that you will want to research, including regulations concerning interference with aviation or marine navigation. Lasers pointed at planes is the obvious issue but even bright lights may require permits and/or declaring them with the authorities. E.g. for various laser and light shows the organizers have to do this so that the aviation authorities can issue NOTAMs letting pilots know that in the area XY is something going on and they should be aware of the extra lights in order to not confuse them e.g. with nearby airport lighting or some warning lights on some mast. Accidents did happen for such reasons in the past.
OTOH, unless you want play with moonbounce or blasting lasers into the sky for whatever reason, you don't need very high power to transmit data at all. A small laser diode is usually completely sufficient. For a short distance you can also use a regular LED. Even classic incadescent lightbulbs were used for this. As a kid I have built a simplex set like this for transmitting audio over a few tens of meters - the bulb was barely glowing. There you don't need to worry about breaking any regulations, just make sure you don't accidentally blind drivers (including ships and railways!) or plane pilots with the beam.
Achievable distance is going to be limited by the dispersion in the atmosphere - and your ability to accurately aim the transmitter at the receiver. The latter is a pretty difficult and fiddly job, so practical upper limits of such optical links tend to be on the order of a kilometer or two.