API
Why the API returns 401, 402, or 404
401 is the key. 402 is no balance in the bot. 404 is a Base URL without /v1 or a client sending Anthropic / Responses. 400 is a bad model or JSON. 503 means wait and retry. Three different failures, not “the model is down”.
Key — API button in @uncensobot. How not to paste a trailing newline: API key in Telegram. Protocol and Base URL: custom Base URL, Cursor: Cursor setup, parameters — docs.
401 — key
Missing Authorization: Bearer, typo, revoked key, or a line break stuck to the token from Telegram. Trim spaces. A random OpenAI key will not work here.
402 — balance
The bot balance is empty. API has no free calls. Packs start at $1 in Telegram. The monthly free chat slot in the bot does not fund HTTP.
400 — model or JSON
Unknown model or broken JSON. Copy the id in full, no [1m]. An empty model is GLM — not an error.
404 — URL or protocol
Usually Base URL https://uncensored.monster without /v1, or a client sending Anthropic Messages or OpenAI Responses. Embeddings and FIM also 404. After changing Cursor, open a new agent chat.
503 — transient
Service-side glitch. Wait. Do not hammer the same request immediately.
FAQ
Does 404 mean the model id is missing?
Usually not. Check /v1 in the Base URL and that the client is not Anthropic. A wrong id more often returns 400, not 404.
Why 401 right after copying from Telegram?
A space or invisible character rode along. Paste again without a trailing newline.
402 right after creating a key?
A key is not credit. Top up in the bot with a pack from $1, then retry.