Use of For and to

Which sentance is correct ?
1.I accept your invitation for the party
2.I accept your invitation to the party.

Where is use can , could,would ?