Base URLs
Choose the URL for your SDK and protocol.
OpenAI SDKs generally use a URL ending in /v1; Anthropic SDKs use the root URL. Avoid adding /v1 twice. Protocol compatibility does not guarantee every provider feature.
Choose the correct root URL
This is the most common configuration mistake. Vietrouter has two root URLs depending on the protocol your app speaks — the wrong one returns 404, not 401.
| Application of type | The base URL needs to be pasted | Why |
|---|---|---|
Anthropic — Claude Code, OpenClaw, SDK anthropic | https://vietrouter.com.vn | The SDK automatically appends the path /v1/messages |
OpenAI — Cursor, Open WebUI, Dify, SDK openai | https://vietrouter.com.vn/v1 | The OpenAI library requires a URL that includes /v1 |
Examples receive source review and local checks; this does not establish compatibility with every app version. Check settings, send a small request and confirm usage before production use.