I believe you can be no older than 29 at the time of your commissioning and you must serve 10 years after graduating from flight training.
You also have to score high enough on your initial test to get into USAF flight school and you can only take it once.