# Using OpenRouter

Navigate to [openrouter.ai](https://openrouter.ai/). Hover over the profile icons on the right-hand side, then select the "Keys" tab from the dropdown menu. Click "Create Key," copy the API key, and paste it into the settings.

#### OpenRouter Configuration

Set the backend to OpenRouter:

```bash
Settings -> ChatBot -> ChatBot Backend -> OpenRouter
```

Set the API key:

```bash
Settings -> ChatBot -> OpenRouter -> OpenRouter API Key
```

Set the OpenRouter model:

```bash
Settings -> ChatBot -> OpenRouter -> OpenRouter Model
```


---

# 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://docs.heyamica.com/connecting-llms-your-core-ai-chatbot-model/using-openrouter.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.
