A. I didn’t go to the party because I didn’t feel up to it.

B. I didn’t feel up to going to the gym, so I stayed at home.

We can say “feel up to it”, or we can replace the word “it” with a verb in the gerund / infinitive.