Grok API

Grok API for Cursor

Connect Grok 4.5 to Cursor with your GrokAPI key and the OpenAI-compatible base URL.

1

Install Cursor

Download Cursor for macOS, Windows, or Linux from the official website and complete the installation.

Download Cursor
2

Open Settings and select Models

Open Cursor Settings, then go to the Models section.

3

Open OpenAI API Key

Find the OpenAI API Key option in Models and open its connection settings.

4

Connect Grok API

Paste your GrokAPI key, enable Override OpenAI Base URL, enter the base URL below, and select grok-4.5.

Cursor settings
OpenAI API Key: sk-grok-YOUR_API_KEY
Override OpenAI Base URL: https://api.llm-gate.tech/v1
Model: grok-4.5
Create a key
5

Verify the connection

Ask Grok to explain the currently open file. A successful streamed response and a usage entry in the GrokAPI dashboard confirm that Cursor is using your key.