Each faction has 1 base AP, and gets extra AP depending on its territory (number of nodes), with some randomness involved. You can find detailed calculations in tutorial page 4.