# Cursor (/zh-Hant/docs/guides/cursor)

在 Cursor 的對話模型中使用你的 cheapaimodel Key。



Cursor 允許你使用自己的 OpenAI 相容 Key 與 Base URL。

## 設定 [#設定]

1. 開啟 **Cursor Settings → Models**。
2. 在 **API Keys** 底下，把你的 cheapaimodel Key 填入 **OpenAI API Key**。
3. 開啟 **Override OpenAI Base URL**，並填入 `https://api.cheapaimodel.ai/v1`。
4. 點選 **Verify**。
5. 用 **Add model** 加入你想用的[目錄](/zh-Hant/models)模型 ID，並在對話模型選單中選擇其中一個。

<Callout type="warn">
  哪些功能使用你自己的 Key 由 Cursor 決定。部分內建功能（例如 Tab 自動完成）一律使用 Cursor 自己的模型，不會從你的 cheapaimodel 餘額扣款。
</Callout>
