How can I use v0 API in Cursor.ai

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 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]

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.
  1. Navigate to the Models tab.
  2. Scroll down to the OpenAI API Key section.
  3. Paste your v0 API key into the provided field.
  4. Enable the option to Override OpenAI Base URL.
  5. Enter the following endpoint:

https://api.v0.dev/v1

  1. Click Save to apply the changes.
  2. 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.
  1. Begin interacting with the agent.
  • To confirm the model in use, type:
    who are you?

The API disabled the rest of the models like Claude and I keep getting :Model provided invalid arguments to terminal tool