Complex sentence: The API specifies how software components should interact and are used when programming graphical user interface (GUI) components.
Split into simpler sentences: The API specifies how software components should interact. An API is used when programming graphical user interface (GUI) components.