I did the P90X Ab Ripper X workout on Tuesday and Yesterday.  Right after I was done on Tuesday I felt discomfort to my hip flexors but thought it was just because I had not worked out in a while.  The next day, they were much worse but did the workout again.  I could not sleep last night because I cannot lay flat.  I can barely lift my leg on my own and I cannot stand straight up without pain.  Should I wait to see if they get better or go see a doctor?
See a doctor as there could be a muscle pull or stretching or even sprain. Try some painkillers like methocarbamol 750 mg along with broken 400 mg thrice a day after meal, apply hot packs to affected area and take complete rest from all workouts Lie on firm mattress in most comfortable posture that suits you with bend knee or side posture whichever eases pain