Cannot use custom model added

I see that after switching to the built-in model, a different error showed up.

The “invalid x-api-key” error is often related to the “Override OpenAI Base URL” setting. Can you check:

  • Settings > Models > API Keys
  • Make sure “Override OpenAI Base URL” is turned off
  • If it was on, turn it off and restart Cursor
  • Open a new chat and try again

If that doesn’t help, please send:

  • A screenshot of Settings > Models > API Keys (with all toggles visible)
  • Your current Cursor version (Help > About Cursor)
  • Confirmation that Override OpenAI Base URL is definitely turned off

This is a known issue, I’ll add your case to the ticket for the dev team.