# 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="/files/e6yzk8G5ECl4UpJb90Pp" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ce-docs.keywordrush.com/ai/openrouter-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
