---
title: "UncensoredLLM API 404: fix the base URL and the request path"
canonical: https://uncensoredllm.ai/fix/uncensored-api-base-url-404
generated: 2026-11-23T06:20:14.620Z
source: https://uncensoredllm.ai/fix/uncensored-api-base-url-404
base_url: https://api.uncensoredllm.ai/v1
---

# 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](https://app.uncensoredllm.ai/console)

## 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` |

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](https://uncensoredllm.ai/fix/uncensored-api-invalid-api-key).

## 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 logging
import 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.

## Read next

- [When the id is the problem](https://uncensoredllm.ai/fix/uncensored-api-model-not-found)
- [401 invalid_api_key](https://uncensoredllm.ai/fix/uncensored-api-invalid-api-key)
- [The Anthropic SDK setup](https://uncensoredllm.ai/anthropic-sdk-uncensored-models)
- [OpenAI compatibility](https://uncensoredllm.ai/openai-compatible-uncensored-api)
