> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# OpenRouter connector

- Connector: `appmixer.ai.openrouter`
- Version: 1.1.4
- Components: 5 (0 triggers, 5 actions)

The unified interface for LLMs.

- Connector page: <https://connectors.appmixer.com/connector/appmixer.ai.openrouter/1.1.4>
- Source code: <https://github.com/clientIO/appmixer-connectors/tree/dev/src/appmixer/ai/openrouter>
- Download package: <https://connectors.appmixer.com/connector/appmixer.ai.openrouter/1.1.4/download>

## Authentication

**Type:** API Key

**Fields:**

- `API Key` (text): Log into your OpenRouter account and find _Keys_ page in the Settings.

## Actions (5)

- [A I Agent](https://connectors.appmixer.com/connector/appmixer.ai.openrouter/1.1.4/component/appmixer.ai.openrouter.AIAgent.md) (`appmixer.ai.openrouter.AIAgent`): Build an AI agent responding with contextual answers or performing contextual actions.
- [Make Api Call](https://connectors.appmixer.com/connector/appmixer.ai.openrouter/1.1.4/component/appmixer.ai.openrouter.MakeApiCall.md) (`appmixer.ai.openrouter.MakeApiCall`): Generic method for making API calls to a 3rd party service.
- [Send Prompt](https://connectors.appmixer.com/connector/appmixer.ai.openrouter/1.1.4/component/appmixer.ai.openrouter.SendPrompt.md) (`appmixer.ai.openrouter.SendPrompt`): Send a prompt to a Large Language Model and receive a response.
- [Transform Text To J S O N](https://connectors.appmixer.com/connector/appmixer.ai.openrouter/1.1.4/component/appmixer.ai.openrouter.TransformTextToJSON.md) (`appmixer.ai.openrouter.TransformTextToJSON`): Extract structured JSON data from text using AI.
- [List Models](https://connectors.appmixer.com/connector/appmixer.ai.openrouter/1.1.4/component/appmixer.ai.openrouter.ListModels.md) (`appmixer.ai.openrouter.ListModels`): List models.

## Changelog

### 1.1.4

- Security: upgraded uuid to 11.1.1 (missing buffer bounds check in v3/v5/v6).

### 1.1.3

- MakeApiCall: Request Headers and Query Parameters set in the Designer are now sent. They were silently dropped: the key-value field stores its rows as a JSON object string, which the component did not parse.

### 1.1.2

- AI Agent: fixed the 'Instructions' being ignored. They were never sent to the model, so the agent answered from the prompt alone. They now lead every request, including every turn of a thread.

### 1.1.1

- Output examples for AIAgent, ListModels and SendPrompt.

### 1.1.0

- Added MakeApiCall component for performing arbitrary authorized API calls to the OpenRouter API.

### 1.0.1

- Fixed AI Agent mcpCallTool not passing correlationId, causing MCP server tool calls to appear in separate execution logs.

### 1.0.0

- First version.
