> ## 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 Cline

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

[Cline](https://cline.bot/) 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

* Cline 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                  |
| -------- | ---------------------- |
| API mode | `OpenAI Compatible`    |
| Base URL | `https://apiany.ai/v1` |
| API Key  | Your APIAny.AI API key |
| Model    | `gpt-5.4`              |

## Setup

1. Install and open Cline in VS Code.
2. Open Cline settings and choose OpenAI Compatible.
3. Enter the Base URL, API key, and model ID.
4. Save and ask Cline to run a small coding task to verify the connection.

## 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 Cline. API names and endpoints have been adjusted for APIAny.AI.

### Step 1

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cline/extension-install.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=1e0908371b3de33c9538f0afebc53b94" alt="Cline setup screenshot 1" width="1510" height="1010" data-path="images/integrations/cline/extension-install.png" />

### Step 2

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cline/sidebar-settings.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=2809e9fb0d367cd949cad60c7cfb14dd" alt="Cline setup screenshot 2" width="1919" height="1031" data-path="images/integrations/cline/sidebar-settings.png" />

### Step 3

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cline/api-config.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=db89840d408ace7e7f40ee1e11305b63" alt="Cline setup screenshot 3" width="1920" height="1031" data-path="images/integrations/cline/api-config.png" />

### Step 4

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cline/chat-interface.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=6fdf536d542526331879855ec4a03f27" alt="Cline setup screenshot 4" width="1920" height="1031" data-path="images/integrations/cline/chat-interface.png" />

### Step 5

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cline/code-refactor.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=722af084c5eacfafcd8acb0e3ab81482" alt="Cline setup screenshot 5" width="1920" height="1031" data-path="images/integrations/cline/code-refactor.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`.
