在Cursor中使用Deepseek API

一、下载Cursor:

官网:https://www.cursor.com/cn/downloads

二、申请Deepseek API

  1. 官网:https://platform.deepseek.com/api_keys
  2. 创建api key:


    image.png
  3. 充值账户(官方渠道):登录 DeepSeek 开放平台 → 进入「账户中心」或「充值」页面。
    image.png
  4. 具体使用可以查看左下角文档:


    image.png

三、在Cursor中配置Deepseek API:

  1. DeepSeek 配置
  • Base URL:https://api.deepseek.com
  • API Key:从 DeepSeek 平台获取。
  • 模型名称:deepseek-chat 或 deepseek-coder。
    image.png

    注:deepseek-chat 模型对应 DeepSeek-V3;deepseek-reasoner 模型对应 DeepSeek-R1。思维链为deepseek-reasoner模型在给出正式回答之前的思考过程,其原理详见推理模型
  1. 错误码:


    image.png

四、使用:

  1. 切换到deepseek-chat:


    image.png
  2. 选择Chat:


    image.png
  3. 这里输入内容即可:


    image.png

    注:如报错 Agent and Edit rely on custom models that cannot be billed to an API key. Please use a Pro or Business subscription and/or disable API keys. Ask should still work. 请使用Cursor 0.45及以下版本。

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容