A self-balancing robot

hello! I have been looking into IK (Inverse Kinematics) recently, and I’ve been wondering, how would I make a robot that’s completely controlled by IK and is self-balancing?

I have no idea where to start, any help is appreciated!