# OpenRouter API

{% hint style="danger" %}
Our default prompts and plugin features are optimized for OpenAI GPT and Claude models. Results may be unpredictable when using other models via OpenRouter.
{% endhint %}

### **How to Obtain an OpenRouter API Key** <a href="#how-to-obtain-an-openrouter-api-key" id="how-to-obtain-an-openrouter-api-key"></a>

1. Create an [OpenRouter](https://openrouter.ai/) account or sign in.
2. Go to the **API Keys** page.
3. Click **"Create key"**, enter a name for the key, and save it.

### **How to Set OpenRouter Models** <a href="#how-to-set-openrouter-models" id="how-to-set-openrouter-models"></a>

{% hint style="warning" %}
By default, if no model is set, **'openrouter/auto'** will be used.
{% endhint %}

{% hint style="warning" %}
**Free limit**: If you are using a free model variant (with an ID ending in `:free`), then you will be limited to 20 requests per minute and 200 requests per day.
{% endhint %}

OpenRouter acts as a proxy and unified interface for 300+ paid and free LLMs, each with its own pricing and rate limits. [**Click here**](https://openrouter.ai/models) to view all available models.

1. Click **"Copy model ID"** for your chosen model.
2. Add the model ID in the **"OpenRouter Models"** field in the plugin settings.
3. You can set multiple model IDs, separated by commas. The plugin will prioritize them in order, using the first model first and others as fallbacks.

<figure><img src="https://4254262503-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M3fnB7iKYwDc1Xhr3H3%2Fuploads%2F8JimX17TcaPpT9YfTdIP%2Fimage.png?alt=media&#x26;token=51babba3-a9dd-4bcd-9fa9-e835a277fd7f" alt=""><figcaption></figcaption></figure>
