A sandbox_ key shows whether Cursor is set up right without spending credits or points. The answer is always the same sentence, but it comes back the same way as real answers: if it shows up, the address, the key and the id are right.
What you need
| 1 |
A key created in the API Center in Sandbox mode, with ai:read and ai:write and no IP list.
|
|
The test
| 1 |
In Cursor Settings, Models, paste the sandbox_ key in OpenAI API Key.
|
|
| 2 |
Check that Override OpenAI Base URL is on, with https://api.mozout.co.mz/v1.
|
|
| 3 |
In the chat, pick a model you added under Add Custom Model, for example moonshotai/kimi-k2.7-code.
|
|
The answer you should see
| What you see |
What it means |
| "Resposta de teste (sandbox)." |
The address, the key and the id are right. |
| A 401 error |
The key did not reach the API or is wrong. |
| A 404 error |
The address or the id is wrong: see Cursor errors. |
| A normal answer from a model |
You are using a prod_ key, or the request did not go through our address. |
The sandbox does not call the model and charges nothing, so the answer is always this one, whatever you ask. Cursor cannot write code with it.
The request in History
Open History and choose the Sandbox mode: Cursor's request shows with the model and the key, with no credits spent. In the sandbox, the model list, the prices and the balance are the real ones.
After the test
In OpenAI API Key, replace the sandbox_ key with the prod_ one. Nothing else needs to change. The first real request already spends credits or plan points.
|
The MCP server also accepts the sandbox_ key: a generation is ready at once, with a sample link and 0 credits.
|
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 |