Use Gemini with Cursor
$2/Mtok inGemini'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
google/gemini-3-1-pro
Price
$2 / M input · $8 / M output
Context window
1,000k tokens
Tool
Cursor
Setup below — under two minutes
Quickstart
Set up Gemini in Cursor
- 1
In Cursor → Settings → Models, enable 'Override OpenAI Base URL' and set:
https://api.companyfabric.com/v1 - 2
Paste your CompanyFabric API key in the OpenAI key field.
- 3
Add a custom model with the id google/gemini-3-1-pro 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 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 cost in Cursor?
$2 / M input · $8 / 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
Use Gemini with Claude Code
Claude Code's agent loop with Gemini's million-token context: point the harness at a model that can hold your whole repo in one window. The messages translation layer makes non-Anthropic models a --model flag, not a different tool.
Use Claude with Cursor
Cursor's UX with Claude Sonnet as the brain — the pairing most teams standardize on. Routing it through one metered key adds per-seat spend visibility Cursor's own billing doesn't give you.
Use DeepSeek with Cursor
Give every developer frontier-adjacent completions at commodity prices — DeepSeek in Cursor is the budget default that still holds up on real diffs.
One key. Every model. Exact prices.
Run Gemini in Cursor with free starter credits. Free starter credits included — no subscription required.