Fix Cursor Custom OpenAI Base URL & API Key Verification Errors

Troubleshoot Cursor custom API key verification failures, mismatched model names, and Override OpenAI Base URL pitfalls.

CURSOR APICursorFailed to verify OpenAI API Key / Custom Base URL ignored in Cursor

Root Causes

Common Triggers

  • Missing /v1 suffix on the custom Base URL causing 404 errors
  • Selected model ID does not match the gateway catalog spelling
  • Custom API key enabled without toggling "Override OpenAI Base URL"

Long-Term Stability Path

Drive GPT-6.2, Claude 5.5, and Gemini 4 inside Cursor from a single Brioi key.

Step-by-Step Fix

  • Step 1 · Use exact Base URL formatSet Override OpenAI Base URL to https://vip.brioi.com/v1 (include /v1, omit /chat/completions).
  • Step 2 · Match exact model IDsAdd exact model IDs (gpt-6.2-sol, claude-sonnet-5-5, gemini-4-neon) in Cursor Settings → Models.
  • Step 3 · Sanity-test with curl firstConfirm your API key returns HTTP 200 in terminal before clicking Verify.

Working Reference Snippet

Cursor · CURSOR API
Base URL: https://vip.brioi.com/v1
API Key:  sk-your-brioi-key
Models:   claude-sonnet-5-5, gpt-6.2-sol, gemini-4-neon

FAQ

Do all Cursor features work with a custom API key?

Chat and generation work via custom keys; Cursor-proprietary features like Tab autocomplete require Cursor’s own plan.

More Troubleshooting Guides