Note: I'm new to using paid APIs (like Stripe, GPT-3, Twilio, ...).
When you are using a paid 3rd-party API, you are essentially betting on them keeping reasonable prices in the future, right? So in case you'd want to switch the API provider, potentially the work to switch could be huge if their endpoint design is different and they use other naming conventions.
Wouldn't it make sense then to wrap such APIs in an internal interface, so that you don't rely on the vendor itself?
I haven't seen much about that, or didn't know what to search for to find relevant results. Could you point me to relevant sources if I am missing something?