Cursor setup: Claude, GPT and Gemini on your own key, paid with Alipay

Updated 2026-11-28简体中文繁體中文日本語한국어DeutschFrançaisEspañolPortuguês (Brasil)ItalianoРусский

Cursor lets you use your own OpenAI API key with a custom base URL. With an APIKing key, Cursor’s chat and agent run on Claude, GPT, Gemini or DeepSeek, billed per token from your balance, with Alipay top-ups.

1. Enter the key and address

Open Settings → Cursor Settings → Models, paste your APIKing key in OpenAI API Key, turn on Override OpenAI Base URL, enter the address below and save:

OpenAI API Key:            sk-YOUR_KEY
Override OpenAI Base URL:  https://apiking.ai/v1
Model ID:                  gpt-6-sol

2. Add a model and test it

  • Add the exact model ID in Models, such as gpt-6-sol or claude-sonnet-5-5. Each model page has the exact name.
  • Open a new chat, choose that model in the picker and send a message.
  • The call shows on the usage page of the APIKing console.
If the picker only shows Auto or says the model is unavailable, check your Cursor plan and model permissions. Cursor Tab completions use Cursor’s own models, not this key.

Prices of models that suit Cursor

ModelPriceOfficial price (per 1M tokens)
Claude Sonnet 5.5$0.25 in · $1.30 out / 1M$2.00 in · $10.00 out / 1M
Claude Opus 5.5$0.50 in · $2.50 out / 1M$4.00 in · $20.00 out / 1M
GPT-6 Sol$0.10 in · $0.50 out / 1M$2.00 in · $10.00 out / 1M
GPT-6.2 Astra$0.40 in · $2.00 out / 1M$8.00 in · $40.00 out / 1M
Gemini 4 Argon$0.18 in · $0.90 out / 1M$2.00 in · $10.00 out / 1M
DeepSeek V4.1 Flash$0.15 in · $0.60 out / 1M$0.30 in · $1.20 out / 1M

Coding in the terminal too? See Claude Code setup and Codex setup.

Questions

Can Cursor use my own API key?

Yes. Enter it as the OpenAI API Key in Settings → Cursor Settings → Models and turn on Override OpenAI Base URL.

What base URL do I enter?

The APIKing /v1 address, with the exact model ID such as gpt-6-sol or claude-sonnet-5-5.

The picker only shows Auto. What now?

Check your Cursor plan and model permissions. Cursor Tab completions use Cursor’s own models, not this key.