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
Match the base URL to your SDK protocol; an extra or missing /v1 returns HTTP 404.
| Application of type | The base URL needs to be pasted | Why |
|---|---|---|
Anthropic — Claude Code, OpenClaw, SDK anthropic | https://thapi.cloud | The SDK automatically appends the path /v1/messages |
OpenAI — Cursor, Open WebUI, Dify, SDK openai | https://thapi.cloud/v1 | The OpenAI library requires a URL that includes /v1 |
Snippets are protocol-verified; run a small test call and verify the Usage log before deploying to production.