---
title: OpenRouter credentials
description: Documentation for OpenRouter credentials. Use these credentials to authenticate OpenRouter in n8n, a workflow automation platform.
contentType: [integration, reference]
priority: critical
---

# OpenRouter credentials

You can use these credentials to authenticate the following nodes:

- [Chat OpenRouter](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenrouter.md)

## Prerequisites

Create a [OpenRouter](https://openrouter.ai/) account.

## Supported authentication methods

- API key

## Related resources

Refer to [OpenRouter's API documentation](https://openrouter.ai/docs/quick-start) for more information about the service.

## Using API key

To configure this credential, you'll need:

- An **API Key**

To generate your API Key:

1. Login to your OpenRouter account or [create](https://openrouter.ai/) an account.
2. Open your [API keys](https://openrouter.ai/keys) page.
3. Select **Create new secret key** to create an API key, optionally naming the key.
4. Copy your key and add it as the **API Key** in n8n.

Refer to the [OpenRouter Quick Start](https://openrouter.ai/docs/quick-start) page for more information.
