Glossary / API mechanics
Base URL
The base URL is the root address your client library talks to, for example an OpenAI-compatible host plus /v1. Changing it is what lets the same SDK code point at a different provider.
Definition
The base URL is the root address your client library talks to, for example an OpenAI-compatible host plus /v1. Changing it is what lets the same SDK code point at a different provider.
What it changes in your bill
Because the client stays the same, switching base URL is instant and reversible. This is why compatible providers can be trialled in minutes rather than weeks.
How to check it yourself
Keep base URL in an environment variable so a provider swap is one deploy, not a code change.
Related terms
Try it on Tapix AI
Tapix AI exposes 100+ models behind one OpenAI-compatible endpoint. Prepaid from $1, no monthly minimum, live prices per model.
Get a key and run one real call See live prices