Set up DeepSeek in Cursor
Cursor can call any OpenAI-compatible API. Point it at API Store and you can use DeepSeek V4.1 for chat and code edits, paying per token from a prepaid balance.
Before you start
- An API Store account with some balance
- An API key from the API keys page (it starts with sk-)
Steps
- Open Cursor, then Settings, then Models.
- In the OpenAI section, paste your API Store key into OpenAI API Key.
- Turn on Override OpenAI Base URL and enter the base URL below.
- Choose Add model, type the model name below and switch it on.
- Press Verify, then pick the model in the chat panel.
Values to enter
Base URL
https://api.apistore.cloud/v1API key
sk-...Model
deepseek-v4-1-flashMenu names can differ slightly between versions of the app.
Which model to pick
- deepseek-v4-1-flash for everyday coding and chat
- deepseek-v4-1-flash-economy when the lowest price matters most
Troubleshooting
- 401 invalid_api_key. The key is wrong or revoked. Create a new one.
- 402 insufficient_balance. Top up, or raise the key's daily cap.
- 404 model_not_found. Check the spelling of the model name.
- Cursor's own models stop working. The base URL override applies to all OpenAI models in Cursor. Turn it off to go back.
What it costs
deepseek-v4-1-flash: $0.21 input and $0.84 output per 1M tokens in peak hours, $0.105 and $0.42 off-peak. Input read from cache costs $0.0042.
Setup guides: Cline · Claude Code · Docs
