On this pageBase URLs
Back to docs

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 typeThe base URL needs to be pastedWhy
Anthropic — Claude Code, OpenClaw, SDK anthropichttps://vietrouter.com.vnThe SDK automatically appends the path /v1/messages
OpenAI — Cursor, Open WebUI, Dify, SDK openaihttps://vietrouter.com.vn/v1The 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.

Zalo groupWhatsApp