You can generate the CloudStack API Keys from the CloudStack admin portal.
Eg. http://yourcloudstack-management-ip:8080/client
- 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.