According to the ISE Licensing Guide (see Table 2 in the link), pxGrid is licensed by having Advantage subscription licensing - quantity is not relevant - you just need to have the minimum.
API does not need any specific license - if you have your Essentials/Advantage/Premier, then you're fine. If you run ISE as a VM, then every ISE that is a VM, needs a VM license.