Auto generate password for account created through API?

Okay I understand. What is the problem you are facing with Invites API?