Cursor accepts your own OpenAI key and a different base address. With the MozOut key and our address, Cursor's chat uses All in One AI models, paid with AI credits or with the Coding Plan. There is no file to create: it is all in the settings.
Before you start
| 1 |
Create a key in the API Center with the ai:read and ai:write permissions. Use a sandbox_ key to check the setup without spending and a prod_ key to work. The fields are explained in creating an API key.
|
|
The steps
| 1 |
Open Cursor Settings and then Models.
|
|
| 2 |
Under API Keys, turn on OpenAI API Key and paste your prod_ key.
|
|
| 3 |
Turn on Override OpenAI Base URL and type https://api.mozout.com/v1.
|
|
| 4 |
Under Add Custom Model, add the model id, for example moonshotai/kimi-k2.7-code. Repeat for each model you want to use.
|
|
| 5 |
Pick the model in the chat selector and send a message. With a sandbox_ key, the answer is always "Resposta de teste (sandbox).".
|
|
The selector only shows the models you added under Add Custom Model. For another model, add its id, exactly as it is in the catalogue:
| Model |
Context |
What for |
| moonshotai/kimi-k2.7-code |
262,144 tokens |
Built for coding: the starting point for everyday work. |
| deepseek-ai/deepseek-v4-pro |
1,048,576 tokens |
Strong reasoning, for big changes and hard bugs. |
| zai-org/glm-5.2 |
1,048,576 tokens |
Made for agents: handles tools well in long tasks. |
| deepseek-ai/deepseek-v4-flash |
1,048,576 tokens |
Fast and cheap, for background tasks and short questions. |
The ids are in the Models tab of All in One AI or in the API list. On Linux and macOS:
curl "https://api.mozout.com/v1/models?type=text" -H "Authorization: Bearer $MOZOUT_API_KEY"
In Windows PowerShell:
curl.exe "https://api.mozout.com/v1/models?type=text" -H "Authorization: Bearer $env:MOZOUT_API_KEY"
Each model comes with its id (always with the slash), its context_length and its price in pricing. Listing the models spends no credits.
Good to know
According to Cursor's documentation, requests go through Cursor's servers before they reach our API. Your own keys only work for chat models: Tab keeps using Cursor's models. For OpenAI keys, the documentation mentions standard chat models, not reasoning models.
While the address is overridden, requests to OpenAI models in Cursor also come to us. To use OpenAI again, turn off Override OpenAI Base URL.
|
These menu names come from our documentation. Cursor changes its settings often, and its help page no longer shows Override OpenAI Base URL. If you cannot find the option, use Cline or Kilo Code in VS Code, or a terminal tool: see which tool to use.
|
|
SEE ALSO
The All in One AI MCP server in Cursor, Windsurf and Cline: the file for each one
Which coding tool to use with All in One AI: OpenCode, Claude Code, Codex, Cursor, Cline, Kilo Code or Aider
Errors when setting up a tool with All in One AI: 401, model not found, no credits, /v1 and rejected config files
Coding Plan: which plan to choose, what it costs and how to subscribe
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 £5.28/mo (3-year plan, with coupon) See plans |