Skip to content

Base URLs and protocols

Setting Value
OpenAI SDK base_url or baseURL https://wudiapi.com/v1
WorkBuddy custom OpenAI endpoint https://wudiapi.com/v1
Claude Code ANTHROPIC_BASE_URL https://wudiapi.com
Claude Desktop Gateway, where supported https://wudiapi.com
Complete Chat Completions endpoint https://wudiapi.com/v1/chat/completions
Complete Responses endpoint https://wudiapi.com/v1/responses
Complete Messages endpoint https://wudiapi.com/v1/messages

OpenAI-compatible SDKs normally append a resource such as /chat/completions, so the base address includes /v1. Anthropic clients commonly append /v1/messages themselves, so their base address is the site root. Check your client’s field description and its final request URL.

Common mistakes include /v1/v1/messages, a repeated /chat/completions, or receiving the site’s HTML instead of JSON. A 404 or a response beginning with <!DOCTYPE html> is a reason to check the complete URL and HTTP method first.

GPT, Claude and Gemini identify model families. Chat Completions, Responses and Messages identify request and response formats. Confirm the selected model’s supported protocol rather than inferring it from the brand.

Protocol Typical client Core fields
Chat Completions Compatible chat clients model, messages
Responses Clients such as Codex model, input
Messages Claude Code, Anthropic SDK model, max_tokens, messages

Query the model list, send a minimal request with the same key, and then configure the client. Restore optional capabilities one at a time. An HTTP response at a browser address is not a substitute for an authenticated API request. For more address examples, see the Base URL guide.