Cursor

Use Foza models with the Cursor AI editor

Setup#

Cursor support for custom keys and base URLs can vary by version and plan. This guide assumes your Cursor build shows OpenAI API Key and Override OpenAI Base URL under model settings.

Before you start, create a Foza API key and subscribe it to the model you want to use.

1

Open Cursor Settings

Go to Settings → Models (or press Cmd+, and search for "Models").

2

Override base URL

Set the Override OpenAI Base URL field to:

https://api.foza.ai/v1

Do not paste a full endpoint like /v1/chat/completions; Cursor expects only the base URL.

3

Set API key

Enter your Foza API key (sk-foza-xxxxx) in the API Key field.

4

Select a model

Choose a model slug from the dropdown or type it manually, e.g., openai/gpt-4o or anthropic/claude-sonnet-4.6.

5

Verify with a small request

Open Cursor chat and ask:

Explain the current file in three bullets. Do not edit anything.

If that works, try a small refactor or documentation edit.

Notes#

  • Some Cursor features may still use Cursor-managed routes and may not honor custom API keys.
  • If the model picker rejects a Foza slug, try adding the slug as a custom model first.
  • If verification fails, re-check that the API key is subscribed to that exact model.

Cursor will now route all AI completions through the Foza gateway, giving you access to any subscribed model.