A 404 from the base URL.
An OpenAI Chat Completions client takes the API base https://api.uncensoredllm.ai/v1 and a model such as glm-5.3-uncensored, and the request it should make goes to /v1/chat/completions. When a call returns 404, look at the URL the client actually built: a doubled version segment, a completion path typed twice or a base pointing somewhere other than the API are the usual suspects.
Three values, kept apart
Every client joins two strings: the base you configure and a route suffix it owns. Write them down separately and the error usually shows itself.
| Client | Base you set | Suffix it adds | Resulting URL |
|---|---|---|---|
| OpenAI SDK, Python or TypeScript | https://api.uncensoredllm.ai/v1 | /chat/completions | https://api.uncensoredllm.ai/v1/chat/completions |
| Anthropic SDK | https://api.uncensoredllm.ai | /v1/messages | https://api.uncensoredllm.ai/v1/messages |
| Spring AI 1.x | https://api.uncensoredllm.ai | /v1/chat/completions | https://api.uncensoredllm.ai/v1/chat/completions |
The mistakes that build a wrong path
- Version missing:
https://api.uncensoredllm.aiin an OpenAI client giveshttps://api.uncensoredllm.ai/chat/completions. - Version doubled:
https://api.uncensoredllm.ai/v1in a client that adds/v1itself (the Anthropic SDK, Spring AI 1.x) gives/v1/v1/.... - Suffix typed into the base:
https://api.uncensoredllm.ai/v1/chat/completionsas the base gives the suffix twice. - Website host:
https://uncensoredllm.aiforwards API paths to the API host with a redirect. That tends to end in a 401 rather than a 404, because many clients drop the key when a redirect changes host. See the 401 page.
Print the URL your client built
The OpenAI Python SDK sends requests through httpx, which logs the method, full URL and status of each request at INFO level and leaves headers out. A key sent in a header stays off the screen; redact any query string before you share a logged URL:
import loggingimport os from openai import OpenAI logging.basicConfig(level=logging.INFO) # httpx then logs each request's method, URL and status, never headers client = OpenAI(base_url="https://api.uncensoredllm.ai/v1", api_key=os.environ["UNCENSOREDLLM_API_KEY"])client.chat.completions.create(model="glm-5.3-uncensored", messages=[{"role": "user", "content": "ping"}])# the line to look for:# INFO:httpx:HTTP Request: POST https://api.uncensoredllm.ai/v1/chat/completions "HTTP/1.1 200 OK"If the logged URL has exactly one /v1 and ends in /chat/completions but the answer is still a 404, read the JSON body: error.code set to model_not_found moves the problem from the URL to the id.
Base URL: questions
Should the base URL include /chat/completions?
No. Set the base to https://api.uncensoredllm.ai/v1 and let the OpenAI client add /chat/completions. A base that already ends in /chat/completions produces /chat/completions/chat/completions, which is not a route.
Why does the saved Anthropic example use a different base form?
The Anthropic SDK appends /v1/messages itself, so it takes the bare host, https://api.uncensoredllm.ai. Giving it the /v1 base that suits OpenAI clients doubles the version segment. See the Anthropic SDK page.
Can a 404 prove that a model was removed?
No. Read the error code first. model_not_found means the request reached the chat route and the id was not recognised, which can be a typo as easily as a retired build. A 404 without that code says nothing about any model; check the URL.