It's on their website:
Pay As You Go customers
If you're on Pay As You Go, your O2 phone can be unlocked 12 months after you bought it. It’ll cost you £15, which we'll deduct from your airtime balance. This policy might vary depending on which phone you’ve bought.