I'm coming to the end of my Air Force commitment after 8 years. The new commitment is 10 years from the time you graduate pilot training.
The needs of the airforce changes from time to time though, and there is no way of saying what it will be in the next 10 years. Right now they are paying people to get out of the Air Force... even pilots with time left on their commitment.