×

Use Gemini with Cursor

$2/Mtok in

Gemini's long context inside Cursor shines on monorepos, attach entire packages as context without windowing tricks.

Facts

At a glance

Model

Gemini 3.1 Pro (preview)

google/gemini-3-1-pro-preview

Price

$2 / M input · $12 / M output

Context window

1,048.576k tokens

Tool

Cursor

Setup below, under two minutes

Quickstart

Set up Gemini in Cursor

  1. 1

    In Cursor → Settings → Models, enable 'Override OpenAI Base URL' and set:

    https://api.companyfabric.com/v1
  2. 2

    Paste your CompanyFabric API key in the OpenAI key field.

  3. 3

    Add a custom model with the id google/gemini-3-1-pro-preview and select it from the model picker.

Full tool guide: Use any model with Cursor

FAQ

Frequently asked questions

Do I need a Google account to use Gemini in Cursor?

No, one CompanyFabric key covers Gemini 3.1 Pro (preview) and every other model in the library. Billing is one prepaid balance with exact per-call metering; BYOK at 0% is available if you already have provider keys.

What does Gemini 3.1 Pro (preview) cost in Cursor?

$2 / M input · $12 / M output, the same metered price as any other route to the model. Set a per-key budget cap to bound what the tool can spend.

Can I switch models later without touching Cursor again?

Yes, the endpoint stays the same; the model is a string. Any catalog id works in the same configuration, including cheaper tiers for bulk work.

Explore

Related setups

One key. Every model. Exact prices.

Run Gemini in Cursor with free starter credits. Free starter credits included, no subscription required.