APIrove

Home / Docs / Cursor

TOOL GUIDE · CURSOR

Use APIrove in Cursor with a custom base URL

Enter your APIrove key and https://apirove.com/v1 in Cursor to code with GPT text models. Check the key with one curl request first, so any later error is easy to place.

Updated 2026-11-19 · Endpoint, URL and model IDs come from our docs; the Cursor UI steps are not yet tested

What is checked and what is not yet tested

ItemStatus
Base URL https://apirove.com/v1, POST /v1/chat/completions, GET /v1/models, Bearer authChecked (see the OpenAI-compatible API guide)
Text group keys call GPT text models; Claude needs a Full group keyChecked (see two key groups)
Menu names and toggle positions in Cursor settingsNot yet tested; they may differ between Cursor versions
Whether Tab completion, Agent and other features use the custom keyNot yet tested; check the usage page
Create keycurl checkCursor setupPick modelCheck usage
Flow: create a key → check with curl → fill in Cursor settings → pick a model → check the usage page

Five steps

  1. 1

    Sign up, add credits, create a key

    Sign up in the console, add credits, and create a Text group key on the keys page for GPT text models.

  2. 2

    Check the key with curl

    Send one request to https://apirove.com/v1/chat/completions with the same key. Change Cursor only after it returns 200.

  3. 3

    Fill in Cursor settings

    Paste the key into the OpenAI API key field in Cursor settings, turn on the base URL override and enter https://apirove.com/v1.

  4. 4

    Add the model name

    Add a model ID by hand, for example gpt-6.1-sol, spelled exactly as in the model directory.

  5. 5

    Pick the model and check usage

    Send one message with that model, then confirm the request appears on the usage page in the console.

Step 2: check the key with curl

Replace YOUR_API_KEY with your key and run this in a terminal. It asks for 16 output tokens, so the usage is tiny.

POST /v1/chat/completions
export APIROVE_API_KEY='YOUR_API_KEY'

curl https://apirove.com/v1/chat/completions \
  -H "Authorization: Bearer $APIROVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-6.1-sol", "messages": [{"role": "user", "content": "Hello!"}], "max_tokens": 16}'

A JSON reply with choices means the key, URL and model all work. To list the models this key can call:

GET /v1/models
curl https://apirove.com/v1/models \
  -H "Authorization: Bearer $APIROVE_API_KEY"

Step 3: fill in Cursor settings (not yet tested)

These menu names follow Cursor's published settings. We have not tested each step inside Cursor yet. If your version labels them differently, look for the OpenAI API key field and the base URL field.
  1. Open Cursor settings and go to the Models page.
  2. Paste the APIrove key into the OpenAI API Key field and turn on its toggle.
  3. Turn on Override OpenAI Base URL and enter the URL below. Do not add /chat/completions.
  4. Click Verify. If it fails, go back to step 2 and use curl to rule out the key and the balance.
Base URL
https://apirove.com/v1

Step 4: which model

Add a model ID by hand. It must match the model directory exactly, including case.

Model IDKey groupNotes
gpt-6.1-solText / FullGPT text model for everyday coding
gpt-5.6-terraText / FullGPT text model
gpt-6-astraText / FullGPT text model

Current rates for each model are on the pricing page. Do not chat with models whose names contain image or video; they use the image and video endpoints.

Errors

What you seeUsual causeFix
401 / invalid api keyTypo, extra space, or deleted keyCopy the key again from the keys page; check with curl
404 / model not foundExtra path in the base URL, or a misspelled model IDStop the base URL at /v1; match the model directory
403 / model unavailableThe key's group does not include the model (for example Claude on a Text group key)Use a GPT text model, or create a Full group key
Insufficient balancePrepaid balance is 0Add credits or redeem a code, then retry
429Too many requests or over a limitWait and retry; do not retry in a tight loop
Cursor says the model does not support custom keysThat feature may only use Cursor's own models (not yet tested)Use the chat panel or another entry point

More status codes: OpenAI-compatible API errors.

FAQ

Should the base URL include /chat/completions?

No. Enter only https://apirove.com/v1. The client adds the endpoint path. An extra path usually returns 404.

Which key should I use in Cursor?

For GPT text models the default Text group key is enough. Claude models need a Full group key, and Cursor may not send claude- model names to a custom base URL (not yet tested). For Claude, see the Claude Code guide.

Do Tab completion and every Cursor feature go through APIrove?

Not yet tested. Some Cursor features may only use Cursor's own models and ignore the custom key. The usage page is the source of truth: if a request shows up there, it reached APIrove.

How do I confirm requests reach APIrove?

Send one message, then open the usage page in the console. A row with the model name and charge means it works. No row means Cursor did not use this key.

How is it billed?

Actual token usage is deducted from your prepaid balance. Rates are on the pricing page and in the model directory. Calls stop when the balance is 0.

Start in three steps

Sign up, add credits, then create a key. Every step is in the console.

Related: Claude Code guide · Credits and billing · API key security · Models · Pricing

One API for text, image and video output