Integrations

Cursor → AI24X

Cursor can use any OpenAI-compatible endpoint. Point Models at AI24X for flash/pro (and VIP named models) with one key and PayPal USD top-up.

1) Prerequisites

Sign up → Console → create an API key → keep a small credit balance. Cursor desktop or latest IDE build.

2) Cursor Settings

  1. Open Cursor Settings → Models (or Features → Models, depending on build).
  2. Enable OpenAI API Key / custom OpenAI-compatible provider.
  3. OpenAI API Key: paste your AI24X key from Console.
  4. Override OpenAI Base URL: https://api.ai24x.com/v1 (include /v1, do not append /chat/completions).
  5. Add or pick model id flash (optional: pro, ultra). Save.
  6. In Chat / Composer, select that model and send a short prompt (e.g. hello).

3) Smoke test (terminal)

If Cursor returns an error, verify the key outside the IDE:

curl -sS -X POST "https://api.ai24x.com/v1/chat/completions" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_AI24X_API_KEY" \ -d "{\"model\":\"flash\",\"messages\":[{\"role\":\"user\",\"content\":\"hello\"}]}"

Expect HTTP 200 and a text reply in choices[0].message.content.

4) Pitfalls

  • Base URL must end at /v1. Extra /chat/completions → 404/405.
  • 401 = bad or rotated key—create a new one in Console and paste again.
  • Start with flash; use pro for harder tasks; VIP ids (e.g. vip-kimi) need an active membership.
  • Some Cursor builds cache the model list—toggle the custom key off/on after changing Base URL.

Create account Open WebUI guide Console