SETUP GUIDE

How to Use Your Own API Key in Cursor IDE

Connect Cursor to RunAPI with your API key. Follow the screenshots to configure the Base URL, choose a model, and verify usage.

How to

Set up Cursor with your own API key

  1. Create a free RunAPI account

    Sign in to RunAPI with the verification code sent to your email.

  2. Copy your API key

    Grab the key from the dashboard and note the base URL — https://runapi.ai/v1.

    Dashboard — keys
    API key
    runapi_•••••••• Copy
    Base URL
    https://runapi.ai/v1 Copy
  3. Open Cursor Settings

    Open Cursor Settings, choose Models, then expand API Keys.

  4. Paste the base URL

    Turn on Override OpenAI Base URL to reveal the input, then enter https://runapi.ai/v1.

  5. Paste the API key

    Paste your RunAPI key into OpenAI API Key, save it, and enable its switch. Keep Override OpenAI Base URL enabled.

  6. Send a test message

    Choose GPT-5.6 Sol in the chat model picker (API ID: gpt-5.6-sol). If absent, search for the ID in Settings > Models; add it only if Cursor offers Add Custom Model and your plan supports it. Do not select Auto. Send a short message and confirm the corresponding RunAPI usage record; a reply alone does not verify routing.

    Reply with exactly: Hello from RunAPI.
Troubleshooting

Fixing the 'unauthorized user api key' error

Missing base URL

Use https://runapi.ai/v1 for supported OpenAI API requests with your RunAPI key. Auto and Cursor's proprietary features do not route through this key.

Extra whitespace

Invisible characters travel with a copy-paste. Clear the field and re-copy the key cleanly.

Expired key

Revoked or rotated keys return 401. Generate a fresh key from the dashboard.

Wrong model slug

Model names must match exactly. Check the current slug on runapi.ai/pricing.

How much does it cost compared to Cursor Pro?

Cursor subscription fees and RunAPI API usage are billed separately. BYOK does not replace the required Cursor subscription. Check current pricing and limits for both services; no fixed saving or unlimited usage is guaranteed.

Cursor API Key Setup FAQ

Check the Base URL, key, account balance and model access. Use https://runapi.ai/v1 with your RunAPI key. An authentication error needs investigation; changing the URL alone does not guarantee a fix.

More Setup Guides

Start using Cursor with your own key.

Building with a team?

We're here to help with enterprise setup, integrations, and technical questions.

Contact Us