What is the difference between PSD2 APIs and B2B APIs?

The PSD2 APIs have been developed under the Revised Payment Service Directive while the B2B APIs have been developed at a later stage to complement the existing APIs in order to serve Business To Business functionality. All PSD2 APIs can be used for free while B2B APIs are chargeable.