An API allows external applications to interact with that application. Nothing to do with being “energy inefficient”.
Some of Microsoft’s APIs are quite restricted and it does put them at a disadvantage, but you can blame the broken software patent system for not allowing innovation to flow within that infrastructure.