Use ApexApi in Cursor

Cursor can talk to ApexApi as a drop-in OpenAI endpoint — giving you every model in our catalog inside the editor, billed to one balance. Setup takes about a minute.

1. Get your API key

Create a key in your dashboard — it starts with ak-.

2. Add the key in Cursor

Open Settings → Cursor Settings → Models → API Keys, enable OpenAI API Key, and paste your ApexApi key.

3. Override the OpenAI Base URL

In the same section, enable Override OpenAI Base URL and enter:

https://api.apexapi.dev/v1

The trailing /v1 matters.

4. Add the models you want

Under Models, click + Add Custom Model and enter an ApexApi model ID in provider/model format, for example:

anthropic/claude-sonnet-4.6
openai/gpt-4o
google/gemini-3.5-flash

The name must match the catalog ID exactly — browse all IDs on the models page. Enable the model after adding it, then select it from Cursor's model picker in chat.

Troubleshooting

  • 401 Unauthorized — the key wasn't pasted correctly, or the OpenAI key toggle is off.
  • Model not found — the custom model name doesn't match a catalog ID. Copy it verbatim from the models page.
  • Verification fails — make sure the base URL is exactly https://api.apexapi.dev/v1 (no trailing slash after v1) and your balance is positive.
  • Requests hang or error mid-stream — check the error codes reference; streaming and Cursor's request formats are fully supported.