The framework is the skeleton holding the library or libraries. The API is the programming interface allowing you to interact with another application or operating system. It pulls from sources of code within the framework to work with other sources of code or applications of the code.