One endpoint, 11 different settings
We parsed the configuration snippets in 114 client setup guides. 54 of them set a custom endpoint, using 11 distinct environment variable names and 262 endpoint values. This is a study of what the clients actually expect, not a survey of users.
Findings
- There is no standard variable name. The 11 names in our guides are not aliases of one another; the top three (
OPENAI_BASE_URL,OPENAI_API_BASE,GATEWAY_BASE_URL) account for 61.0% of occurrences. Copying a snippet from a different tool is the fastest route to a setting that is silently ignored. - 85.1% of endpoint values carry
/v1(223 of 262); 39 do not. The split is not cosmetic: the Anthropic SDK appends/v1/messagesitself, so adding/v1to its base URL produces a doubled path and a 404 that looks like an auth failure. - Configuration guides are not evenly distributed across topics. The largest cluster here is by-tool with 32 endpoint-bearing guides. Most of the friction is at setup time, before a request is ever billed.
- Eight SDKs, eight different traps. The table below is the field-level version of Finding 2: a gateway makes routing a one-line change, but it does not translate one vendor's URL shape into another's.
Environment variable names by frequency
| Variable | Occurrences in config snippets |
|---|---|
OPENAI_BASE_URL | 10 |
OPENAI_API_BASE | 8 |
GATEWAY_BASE_URL | 7 |
ANTHROPIC_BASE_URL | 5 |
OPENAI_LIKE_API_BASE_URL | 2 |
GOOGLE_GEMINI_BASE_URL | 2 |
OPENAI_HOST | 2 |
OPENAI_API_BASE_URL | 2 |
HYPERBOLIC_API_BASE_URL | 1 |
OPENAI_COMPATIBLE_BASE_URL | 1 |
LLM_BASE_URL | 1 |
Where the SDK expects the path
| Client | Setting | Value shape | Trap |
|---|---|---|---|
| OpenAI Python SDK | base_url | https://aicomp.ai/v1 | Carries /v1 |
| OpenAI Node SDK | baseURL | https://aicomp.ai/v1 | Carries /v1 |
| Anthropic SDK / Claude Code | ANTHROPIC_BASE_URL | https://aicomp.ai | Client appends /v1/messages |
| LangChain | base_url kwarg | https://aicomp.ai/v1 | Non-OpenAI host may drop token usage |
| Vercel AI SDK | createOpenAI({ baseURL }) | https://aicomp.ai/v1 | Not openai(); that ignores the override |
| Spring AI | base-url + completions-path | https://aicomp.ai | No /v1 in base-url |
| Prism PHP | url | https://aicomp.ai/v1 | Default already ends in /v1 |
| Goose | OPENAI_HOST | https://aicomp.ai/v1 | Not OPENAI_BASE_URL |
Per-client endpoint data (54 guides)
Configuration guides by cluster
| Cluster | Guides with endpoint config |
|---|---|
| by-tool | 32 |
| base-url | 14 |
| errors | 6 |
| migration | 1 |
| cost | 1 |
Method and limits
We scanned the <code> and <pre> snippets of the 114 publicly published client guides on this site, took environment variable names matching an uppercase *BASE_URL / *API_BASE / *HOST pattern, and counted absolute HTTP(S) endpoint values. This is documentation parsing, not telemetry: the sample is limited to tools we have written guides for, repeatedly used example values are counted each time they appear, and the counts describe our corpus rather than the whole ecosystem. It is useful as a compatibility checklist and as a machine-readable index of exact settings; it is not a market-share estimate.
Cite or reuse this study
Released under CC BY 4.0. Suggested citation: aitokensai.com (2026). Custom base URL compatibility: client configuration index. Retrieved YYYY-MM-DD. CC BY 4.0.
Machine-readable exports: JSON and CSV. Custom base URL compatibility: client configuration index is derived only from the observations described in Method below; no vendor list-price claim is made where the upstream did not publish one.
Related research
- Custom base URL setup (the operative fixes), by client
- Exact error text index — what each misconfigured path prints
- 2026 price index and the price volatility study — the cost side after the call succeeds
FAQ
Should my base URL end in /v1?
It depends on the client. The OpenAI SDKs and most OpenAI-compatible tools expect the /v1 path in the value; the Anthropic SDK and Claude Code append /v1/messages themselves. The per-SDK table on this page lists the shape for eight common clients.
Is this based on real user telemetry?
No. The numbers come from parsing configuration snippets in our own published setup guides. They describe our corpus of clients, not usage frequency in the wild, and the Method section states that limit plainly.
Why does a 404 sometimes look like an authentication error?
A doubled or missing /v1 path can make the client report an auth-shaped failure before it ever validates the key. Confirm the base URL shape first, then check the key, then the model ID, that order isolates the cause fastest.
Check the current rate for your model before you commit a workload.