A 404 from the base URL.

Updated November 23, 2026.

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.

Get a key

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.

ClientBase you setSuffix it addsResulting URL
OpenAI SDK, Python or TypeScripthttps://api.uncensoredllm.ai/v1/chat/completionshttps://api.uncensoredllm.ai/v1/chat/completions
Anthropic SDKhttps://api.uncensoredllm.ai/v1/messageshttps://api.uncensoredllm.ai/v1/messages
Spring AI 1.xhttps://api.uncensoredllm.ai/v1/chat/completionshttps://api.uncensoredllm.ai/v1/chat/completions

Each SDK joins paths its own way; check your client and version rather than assuming one rule.

The mistakes that build a wrong path

  • Version missing: https://api.uncensoredllm.ai in an OpenAI client gives https://api.uncensoredllm.ai/chat/completions.
  • Version doubled: https://api.uncensoredllm.ai/v1 in a client that adds /v1 itself (the Anthropic SDK, Spring AI 1.x) gives /v1/v1/....
  • Suffix typed into the base: https://api.uncensoredllm.ai/v1/chat/completions as the base gives the suffix twice.
  • Website host: https://uncensoredllm.ai forwards 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:

python
1import logging
2import os
3
4from openai import OpenAI
5
6logging.basicConfig(level=logging.INFO) # httpx then logs each request's method, URL and status, never headers
7
8client = OpenAI(base_url="https://api.uncensoredllm.ai/v1", api_key=os.environ["UNCENSOREDLLM_API_KEY"])
9client.chat.completions.create(model="glm-5.3-uncensored", messages=[{"role": "user", "content": "ping"}])
10# the line to look for:
11# 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.

Read next

Join on TelegramHelp