> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apiany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Using in Cursor

> Configure APIAny.AI API keys, base URLs, and recommended models in Cursor.

[Cursor](https://cursor.com/) can connect to APIAny.AI through OpenAI-compatible settings. After setup, you can use chat, reasoning, translation, and multimodal models from the same client.

## Prerequisites

* Cursor is installed.
* You have created an API key in the [APIAny.AI dashboard](https://apiany.ai/dashboard/api-keys).
* You have selected a model ID, such as `gpt-5.4-mini` or `gpt-4o-mini`.

## Configuration values

| Field                    | Value                     |
| ------------------------ | ------------------------- |
| OpenAI API Key           | Your APIAny.AI API key    |
| Override OpenAI Base URL | `https://apiany.ai/v1`    |
| Model                    | `gpt-5.4-mini`, `gpt-5.5` |

## Setup

1. Open the Models section in Cursor settings.
2. Enable OpenAI API key configuration.
3. Enter the API key and override the OpenAI Base URL with the APIAny.AI URL.
4. Add the model IDs you need and test them in Chat or Composer.

## Recommended models

| Model ID            | Best for                                                                        |
| ------------------- | ------------------------------------------------------------------------------- |
| `gpt-5.5`           | Best first choice for complex reasoning, coding, and production workflows.      |
| `gpt-5.4`           | Strong general-purpose model for advanced chat and agent tasks.                 |
| `gpt-5.4-mini`      | Balanced speed, quality, and cost for everyday usage.                           |
| `gpt-4o-mini`       | Fast and economical choice for simple chat, translation, and lightweight tasks. |
| `claude-sonnet-4-6` | Claude-compatible model ID for long-form writing and coding workflows.          |
| `gemini-3.5-flash`  | Gemini-compatible model ID for fast multimodal usage.                           |

## Walkthrough screenshots

The screenshots below show the key configuration screens in Cursor. API names and endpoints have been adjusted for APIAny.AI.

### Step 1

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cursor/main-interface.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=917805a45622af61e0e5cd680d3656f1" alt="Cursor setup screenshot 1" width="1200" height="800" data-path="images/integrations/cursor/main-interface.png" />

### Step 2

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cursor/settings-models.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=4ee3fec725f911675dced3b8247c1421" alt="Cursor setup screenshot 2" width="1200" height="800" data-path="images/integrations/cursor/settings-models.png" />

### Step 3

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cursor/api-config.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=92b93d3393e3ded201828318ffede58d" alt="Cursor setup screenshot 3" width="1200" height="800" data-path="images/integrations/cursor/api-config.png" />

### Step 4

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cursor/api-model.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=3873a6652258b5fdc2d69c187ac4ef8c" alt="Cursor setup screenshot 4" width="1200" height="800" data-path="images/integrations/cursor/api-model.png" />

### Step 5

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cursor/ai-chat.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=f4a0d30ac8b54e71e35c8d240cbb24cd" alt="Cursor setup screenshot 5" width="1200" height="800" data-path="images/integrations/cursor/ai-chat.png" />

### Step 6

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cursor/autocomplete.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=e8447ebaf4ed2e546cba8abbbbb09a0a" alt="Cursor setup screenshot 6" width="1925" height="1025" data-path="images/integrations/cursor/autocomplete.png" />

### Step 7

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cursor/quick-edit.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=86f8c8a97c321726b35d385cb6b13474" alt="Cursor setup screenshot 7" width="1920" height="1031" data-path="images/integrations/cursor/quick-edit.png" />

## Troubleshooting

### 401 or authentication errors

Make sure the API key is copied completely, has no extra spaces, and is enabled in the APIAny.AI dashboard.

### The model does not appear in the app

Enter the model ID manually and confirm it is available in the [model catalog](/models/chat-models). Some tools do not fetch model lists automatically.

### Which Base URL should I use?

OpenAI-compatible settings usually use `https://apiany.ai/v1`; Claude-compatible settings usually use `https://apiany.ai`; tools that ask for a full endpoint use `https://apiany.ai/v1/chat/completions`.
