Skip to content
Gab AI

Use Gab AI with Cursor: setup, access and checks

Use Gab models for code questions and drafted changes in Cursor chat, starting with your editor’s connection settings.

Connect your client to Gab AI

Have your client installed and a Gab API key ready. Follow the configuration for your client below, then select a model and try a first prompt.

Find Cursor’s API-key and base-URL settings

Open Cursor Settings → Models. First check whether your installed build offers an OpenAI base-URL override for custom endpoints. If present, enter https://gab.ai/v1, add your Gab API key and a current text-model ID, then save or verify the connection. If the override is absent, use another integration guide rather than entering a Gab key for Cursor’s ordinary OpenAI endpoint.

Try the selected model in Cursor chat

Choose the configured model in chat and send the prompt below. Check the completed answer and the corresponding Gab API usage. Custom keys apply to supported chat models; Tab completion uses Cursor’s built-in models. Agent, Composer and cloud workflows need their own setup check.

Try a first prompt and follow-up

Select your configured Gab provider and model in Cursor. Send the first prompt, then continue the same conversation with the follow-up.

First prompt for Cursor
Text
For a workshop, income is USD 480 and base cost is USD 370. Reply with the remaining amount only.

Expected result: USD 110.

Follow-up prompt for Cursor
Text
Change only the base cost to USD 395. Keep income at USD 480 and reply with the new remaining amount only.

Expected result after the change: USD 85.

Check the API connection separately

This cURL example checks Chat Completions directly. Use the in-client prompts above to check your Cursor connection.

Try a small Chat Completions request
cURL
curl -sS https://gab.ai/v1/chat/completions \
  -H "Authorization: Bearer $GAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "arya",
  "messages": [
    {
      "role": "user",
      "content": "For a workshop, income is USD 480 and base cost is USD 370. Reply with the remaining amount only, as USD 110."
    }
  ],
  "max_tokens": 1024,
  "stream": false
}'

API access and usage

Authenticated API requests require active Plus or Plus Premium and applicable credits. API use is billed separately from included in-app Chat. Daily request limits and credit balance are separate; the authentication reference explains allowances and reset times.

Resolve failed or incomplete requests

Read the client’s error and confirm its active provider, base URL and model. For key, account or rate-limit errors, use the authentication guide. If an answer stops early, inspect the completion status and output budget before retrying. For tool failures, check the selected model’s capabilities and the client’s tool configuration.

Was this page helpful?