Even if you are not a US citizen, if you’re flying through the US, or have residency / a visa in the US, you will still need to follow the same regulations. Here’s what you'll need to do to travel there:
Choose one of the 12 categories of travel. You simply need to declare which category you choose, both while booking anything and when returning back to the US. The Support for the Cuban People category is typically the easiest category to fit into.
Book a flight and then your airline will instruct you on where to purchase a Cuban Tourist Card. This is a Cuban government requirement, and has nothing to do with the 12 permitted categories of travel.