Is unpaid OPT okay?

Previously I worked as OPT for one company. The role is marketing. The OPT job is regular employee and paid. But currently the company changed my role to contractor - unpaid but commission-driven. May I know if this is qualified for legal OPT? Thanks!!