Cursor errors: 401, model not found and the /v1 address

Coding with AICursor·· 2 views· 3 min read

Almost every Cursor error with All in One AI comes from three places: the key, the model id and the address. Here is what each API answer means and what to change in Cursor's settings.

The most common answers

Answer Why What to do
401 unauthorized The key is wrong, revoked or expired, or OpenAI API Key is not on. Paste the prod_ key again and check the option is on.
404 not_found The address is wrong: the /v1 is missing, or there is an extra /chat/completions. Type exactly https://api.mozout.com/v1.
404 model_not_found The id is incomplete or wrong, it is not a text model, or you picked one of Cursor's OpenAI models with the address overridden. Use the id with the slash, copied from the catalogue.
403 ip_not_allowed The key has an IP list and the request comes from Cursor's servers. Use a key without an IP list.
403 insufficient_scope The key does not have ai:write. Create a key with ai:read and ai:write.
402 insufficient_credits There are not enough credits for the reservation of the answer. Buy credits on the Buy credits tab.
429 rate_limited You went over the key's limit of requests per minute. Wait the seconds in Retry-After.
429 plan_limit_reached The Coding Plan points ran out and the request cannot be paid with credits. Wait for the reset or turn on Use credits when the plan runs out.

The address with /v1

Cursor speaks the Chat Completions format and adds /chat/completions to the address you type. That is why the address ends in /v1:

What you type What Cursor calls The result
https://api.mozout.com/v1 https://api.mozout.com/v1/chat/completions Right
https://api.mozout.com https://api.mozout.com/chat/completions 404 not_found
https://api.mozout.com/v1/chat/completions .../v1/chat/completions/chat/completions 404 not_found

Claude Code is the only tool that works the other way: it uses the address without /v1. Do not copy the address from one tool to the other.

Testing the key outside Cursor

If you are not sure whether the problem is the key or Cursor, test the key in the terminal, with it kept in the MOZOUT_API_KEY variable. GET /v1/token shows the key's mode, permissions and validity, and spends nothing:

curl "https://api.mozout.com/v1/token" -H "Authorization: Bearer $MOZOUT_API_KEY"

In Windows PowerShell:

curl.exe "https://api.mozout.com/v1/token" -H "Authorization: Bearer $env:MOZOUT_API_KEY"

If this works and Cursor does not, the error is in Cursor's settings: the address, the id or an option that is off. If this gives 401, the key itself is wrong.

In History, each request's details include the Correlation ID. If you need help, open a support ticket with that code and the model, without the key.

Want our models in Cursor? Visit the Coding with AI page.

See Coding with AI

SEE ALSO

Errors when setting up a tool with All in One AI: 401, model not found, no credits, /v1 and rejected config files

Cursor with All in One AI: your key, our address and the models to add

Override OpenAI Base URL in Cursor: what happens to Cursor's OpenAI models, and going back

Checking your Cursor setup with a sandbox_ key before you work

Coding with AI in All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $6.60/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.