The price you pay for a service is not necessarily driven by the cost it takes to provide said service. It is more driven by the value and the demand/supply curve.
Accessing an AI via APIs provides differential value (and usage patterns) than accessing it through a chat interface. So I would expect he price to be quite different.