获取Token

首先打开DeepSeek官网(https://www.deepseek.com/),点击API开放平台,登录你的DeepSeek账户
notion image
在开放平台点击充值
notion image
选择充值金额(可以自定义),然后选择支付方式,最后点击去支付
notion image
点击API keys
notion image
点击创建 API key
notion image
随便输入一个名称
notion image
复制API key 注意:一定要保护好API key,如果API key泄露请立即删除!
notion image
打开Trae的设置,点击模型,点击添加自定义模型
notion image
服务商选择DeepSeek 模型按照你的喜好选择,然后填写你的API秘钥,最后点击添加模型
notion image
在Trae的AI聊天框内关闭 Auto Mode
notion image
向下滑,找到自定义模型
notion image
点击刚才添加的自定义模型就可以聊天了