How can I create 50,000+ bitcoin addresses in my wallet?

I will need more than 50,000+ addresses in my main wallet. I use Bitcoin Armory, Bitcoin-Qt and I'm just trying out Blockchain.info.

Is it possible to generate 50,000+ addresses in my wallet? If I use bBitcoin-Qt  or Armory I can create addresses manually, but I need something to automate this system.

Is it possible? Is there some API for this?