[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[v0](/c/v0/59)

# How can I use v0 API in [Cursor.ai](https://cursor.ai)

975 views · 3 likes · 4 posts


Brandon (@brandontan) · 2025-06-29

Hi, I am having issues in using the v0 API in Cursor. I followed the steps below:

### Step 1: Obtain Your v0 API Key

1. Visit [v0.dev](https://v0.dev) and log in to your account.
2. Navigate to your account settings and locate the **API Keys** section.
3. Generate a new API key or copy an existing one.[[bitcot.com](https://bitcot.com)]
---

### Step 2: Configure Cursor to Use v0 API

1. Open Cursor.
2. Access the **Settings** panel:
  * On macOS: Press `⌘ + Shift + J`.
  * On Windows/Linux: Press `Ctrl + Shift + J`.
3. Navigate to the **Models** tab.
4. Scroll down to the **OpenAI API Key** section.
5. Paste your v0 API key into the provided field.
6. Enable the option to **Override OpenAI Base URL**.
7. Enter the following endpoint:

[https://api.v0.dev/v1](https://api.v0.dev/v1)

8. Click **Save** to apply the changes.
9. Click **Verify** to confirm the connection is successful.

### Step 3: Utilize v0 in Cursor's Agent Mode

1. Open a new chat in Cursor.
2. Set the mode to **Agent**.
3. Choose any OpenAI-labeled model (e.g., `gpt-4o`, `gpt-4-turbo`).
  * Note: Cursor will internally route requests to `v0-1.0-md` regardless of the selected model.
4. Begin interacting with the agent.
  * To confirm the model in use, type:
who are you?
<!-- Current versus Expected behavior -->
The API disabled the rest of the models like Claude and I keep getting :Model provided invalid arguments to terminal tool


<!-- Code, configuration, and steps that reproduce this issue -->



<!-- Project information (URL, framework, environment, project settings) -->


Ecomgit1 (@ecomgit1) · 2025-08-17 · ♥ 1

I have the same exact issue. Have you found a solution ?


Brandon (@brandontan) · 2025-08-18 · ♥ 1

You can ask agent to use the V0 api and it will fetch the component code for you.


Anshuman Bhardwaj (@anshumanb) · 2025-08-18 · ♥ 1

Hi @brandontan, thanks for sharing what worked for you. Can you elaborate a bit more on what worked for you? Is it just asking Cursor Agent to use the v0 API?