Home / Docs / Base URL /v1

Should your API Base URL include /v1?

Usually yes. The value for MonkeyAI is https://monkeytheme.com/v1. Missing /v1 sends the client to website routes; adding it twice sends requests to a path that does not exist.

401 JSON/v1/models
404 HTML/models
404/v1/v1/models
301/v1/models/

Base URL and endpoint URL are different fields

A client stores a Base URL, then appends an endpoint such as /models, /responses or /chat/completions. Starting from https://monkeytheme.com/v1 produces the correct API paths.

Field or requestValue
Base URL / OpenAI Base URL / API Basehttps://monkeytheme.com/v1
Models endpointhttps://monkeytheme.com/v1/models
Responses endpointhttps://monkeytheme.com/v1/responses
Chat Completions endpointhttps://monkeytheme.com/v1/chat/completions

What the live endpoints returned

These checks were run against production on 2026-08-02 without a real API key. They verify routing only; they do not claim a successful model response.

RequestObserved responseMeaning
GET /200 HTMLPublic website, not the API namespace
GET /models404 HTMLMissing /v1
GET /v1/models401 JSON API_KEY_REQUIREDCorrect route; authentication required
GET /v1/v1/models404Duplicated /v1
GET /v1/models/301 to /v1/modelsTrailing slash canonicalization
POST /v1/responses401 JSONCorrect Responses route
POST /responses404 HTMLMissing /v1

Test the route before changing a client

curl https://monkeytheme.com/v1/models \
  -H "Authorization: Bearer ***"

A valid key should return the model list visible to that account. Without a key, the current route returns JSON with API_KEY_REQUIRED. If you receive HTML or a 404, fix the path first.

When the root URL can be correct

Some clients ask for an account host and append /v1 themselves. Use https://monkeytheme.com only when that client’s own documentation explicitly says it appends the API version. Otherwise, start with https://monkeytheme.com/v1.

Do not solve a duplicate /v1/v1 by changing every client to the root URL. Fix only the field whose documented behavior adds /v1 automatically.

FAQ

Should the MonkeyAI Base URL include /v1?

For fields labeled Base URL, OpenAI Base URL or API Base, use https://monkeytheme.com/v1 unless that client explicitly documents that it appends /v1 itself.

Does 401 mean the Base URL is wrong?

A JSON 401 from /v1/models means the API route exists and authentication is the next issue. A 404 from /models or /v1/v1/models points to the path.

What if a client automatically adds /v1?

Follow that client’s official documentation and enter the root only when it explicitly says /v1 is appended. Do not apply this exception to every client.

Is a trailing slash after /models an error?

MonkeyAI currently redirects /v1/models/ to /v1/models with HTTP 301. Use the canonical endpoint without the trailing slash.

Related guides

API key and status codes

Separate 401, 404 and model errors with one minimal request.

Open troubleshooting

Codex CLI

Use an isolated profile with the tested Responses route.

Open Codex setup

Agent clients

Choose the guide for the client you are configuring.

Open agent center