Kc require (aqueous/gaseous) products to be on the numerator and (aqueous/gaseous) reactants to be in the denominator, whereas Ksp will require (aqueous) products to be on the numerator and (aqueous) reactants to be in the denominator. Both require products on top and reactants in the bottom.
K = [products] / [reactants]
Kc is used when a reaction reaches dynamic equilibrium, whereas Ksp is used when an insoluble ionic solid dissolved by a tiny amount in a solution, as well as in determining whether or not a precipitate will form.
Kc can be used to measure equilibrium concentration for all reactions, whereas Ksp is limited to only ionic compounds' solubility.
The decomposition of HI (g) will required the use of Kc since the species are all gaseous, and gases cannot be ionic.