Where the settings are
Cursor Settings (Cmd/Ctrl + ,) → Models. The key and base URL fields sit under the model list.
Steps
- Turn on OpenAI API Key and paste your UplinkSwitch key.
- Turn on Override OpenAI Base URL and enter
https://api.uplinkswitch.com/v1. - Click Save. (Older Cursor versions label the button Verify.)
- Under Models, add the ids you want. Any OpenAI-format id on the Models page works, Claude included:model ids
claude-sonnet-5-5 claude-opus-5-5 deepseek-v4-pro-0813 gpt-6.1-sol - Pick one in the chat panel. Ask and Agent mode both work.
What each setting does
- OpenAI API Key is the credential Cursor sends with each request. Paste the whole
sk-uplink-live-...key from the console. - Override OpenAI Base URL sends those requests to
https://api.uplinkswitch.com/v1instead of OpenAI. Enter it exactly as shown, with the/v1at the end. - Models is the list the picker offers. Add each id you want to use there.
Picking a model
Cursor sends OpenAI-format requests, and every chat model on the Models page answers in that format. That covers the Claude, GPT, Gemini, DeepSeek and Kimi families from one key. Type the id exactly as the Models page shows it, for example claude-sonnet-5-5, not the display name.
Each model page lists its input, cached input and output price per million tokens. Agent requests carry the conversation, the files Cursor read and the tool results, so input tokens are most of the bill. A model with a low input price costs the least per request. The Cursor cost breakdown works a request through at live prices.
What a Cursor request costs on each model
One agent request at 30,000 input tokens and 1,000 output tokens: the conversation, the files Cursor read and the tool results go up, a short answer comes back. Prices are live from GET /v1/catalog (Dec 3, 1:31 PM UTC); list is the developer's own published price.
| Model | Input / 1M | Cached input / 1M | Output / 1M | List input | Under list | One request, 30,000 in + 1,000 out |
|---|---|---|---|---|---|---|
| Claude Sonnet 5.5 | $1.20 | $0.075 | $3.00 | $2.00 | 40% on input | $0.039 |
| Claude Opus 5.5 | $2.80 | $0.15 | $10.00 | $4.00 | 30% on input | $0.094 |
| DeepSeek V4 Pro 0813 | $0.792 | $0.0625 | $1.188 | $1.32 | 40% on input | $0.0249 |
| GPT-6.1 Sol | $0.60 | $0.06 | $3.00 | $2.00 | 70% on input | $0.021 |
USD per million tokens, live from GET /v1/catalog. The last column is the request above at this base URL, nothing at the cached rate.
On Claude Sonnet 5.5 the 30,000 input tokens are 92% of the request, which is why the input column decides. The Cursor cost breakdown works the same request into a day and a month, next to Cursor's own plans.
Agent mode and GPT models
With the base URL override on, Cursor's Agent mode sends GPT models (ids starting with gpt-) a Responses API body at the Chat Completions path. Cursor lists this as a known bug in its forum.
The gateway reads that body as the Chat Completions request it stands for and answers in Chat Completions format, streaming or not. GPT ids work in Agent mode and Ask mode alike, at the same price.
Check it
List the models your key can call:
curl https://api.uplinkswitch.com/v1/models -H "Authorization: Bearer sk-uplink-live-..."Then send one request the way Cursor does. -i prints the headers: x-uplink-request-id names the request, and on a non-streamed answer x-uplink-charge is what it cost in USD.
curl -i https://api.uplinkswitch.com/v1/chat/completions \
-H "Authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-H "HTTP-Referer: https://uplinkswitch.ai" \
-H "X-Title: Cursor" \
-d '{"model": "gpt-5.5", "messages": [{"role": "user", "content": "Say ok."}]}'HTTP-Referer and X-Title name the app in the request log; Cursor has no field for extra headers, so its own requests are logged under its user agent automatically.
In Cursor, send a message with one of your ids selected. The request shows on the console's Usage page with its tokens and its charge.
Billing and caching
- Requests bill per token at the model's price, from your prepaid balance.
- When a response reports cached input tokens, they bill at the model's cached rate instead of the input rate. A long chat that repeats the same prefix costs less per turn than a fresh one.
- On Cursor Teams and Enterprise plans, Cursor counts own-key requests against its usage and adds its own per-token fee. That fee is billed by Cursor, not here. Individual plans are not counted (Cursor's API key docs).
- Credit is prepaid from $10 in the console, with no subscription, and each top-up locks your prices for 30 days. Bonus credit on larger top-ups: +5% from $50, +10% from $100, +15% from $120.
Errors and fixes
401 invalid_api_key: the key is wrong or revoked. Copy it again from the console.404 model_not_found: the id in the picker is not on the Models page. Check the spelling against the page.402 insufficient_balance: the balance does not cover the request. Top up in the console.402 monthly_limit_reachedmeans the key hit the monthly spend limit you set on it.403 scope_denied: the key is limited to certain models and this is not one of them. Pick an allowed id or use a key without the limit.429 rate_limited: Cursor went past the account's rate tier or the key's own limit. The response carriesretry-after.- TLS errors: Settings → Network → HTTP Compatibility Mode → HTTP/1.1.
Add the MCP server
Cursor can also call UplinkSwitch as an MCP server: live prices, a cost estimate and the daily real-model check as tools in the agent. Add this to .cursor/mcp.json in the project (or ~/.cursor/mcp.json for every project), with the key in the UPLINK_API_KEY environment variable:
{
"mcpServers": {
"uplinkswitch": {
"url": "https://api.uplinkswitch.com/mcp",
"headers": { "Authorization": "Bearer ${env:UPLINK_API_KEY}" }
}
}
}The tools are list_models, list_media_models, media_model, estimate and proof (no key needed), then chat, compare, search, embed, rerank, transcribe, media_quote, generate, generation and generations on the key: every model on the catalog is a tool, compare asks two to five models at once, and generate runs any image, video, speech, music or 3D model and returns the files to the agent, a finished image inline. Each run is billed to the key like any other request; a failed one is refunded. The server card is at https://api.uplinkswitch.com/mcp/server-card.
Good to know
- The override covers every model in the picker. Switch it off to use Cursor's own.
- Tab completions always use Cursor's built-in models.
- Cursor routes own-key requests through its own servers to build the final prompt, and sends the key along with each one. Its docs say the key is not stored, and that Cursor's Zero Data Retention policy does not apply to own-key requests.
Questions
Can I use Claude in Cursor with this key? Yes. The Claude models answer in the OpenAI format too, so add claude-sonnet-5-5 or claude-opus-5-5 under Models and pick it in chat.
Does it change Cursor's own models? While the override is on, every model in the picker goes to UplinkSwitch. Switch it off to use Cursor's own models again.
Can I use the same key in other tools? Yes, and they share the balance. Create a key per tool in the console if you want to see Cursor's spend on its own. The other guides cover Claude Code, Cline, OpenCode and more.