← 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

Match the base URL to your SDK protocol; an extra or missing /v1 returns HTTP 404.

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