You can generate the CloudStack API Keys from the CloudStack admin portal.
- Login as admin
- Go to Accounts
- Select the account which user belongs
- Click on view users
- Select the user
- Click on generate keys icon and you'll be able to see them in the detail View.