API is the active component in a drug that provides therapeutic effects, while excipients are inactive substances that support the delivery and stability of the API.