# OpenRouter

Source: https://everywhere.sylinko.com/en/docs/model-provider/openrouter

This tutorial will guide you step-by-step on how to get an API key for [OpenRouter](https://openrouter.ai/).

OpenRouter offers free models that can be used after registering an account.

## Steps

* Log in to your [OpenRouter](https://openrouter.ai/) account by clicking `Sign in` in the top right corner. If you don't have an account, please register for a new one.

![Login](https://everywhere.sylinko.com/model-provider/openrouter/login.webp)

* After logging in, go to the [API Keys page](https://openrouter.ai/settings/keys).

![API Keys page](https://everywhere.sylinko.com/model-provider/openrouter/api-key.webp)

* After that, click `Create API Key`, fill in the key name at the top of the pop-up dialog to help you remember its purpose, and the Credit Limit below is optional and can be left blank.

![Create API Key](https://everywhere.sylinko.com/model-provider/openrouter/create-api-key.webp)

* After clicking `Create`, a new dialog will display your API key. Copy this key to use it in Everywhere.

![Copy API Key](https://everywhere.sylinko.com/model-provider/openrouter/get-api-key.webp)

Please be sure to save your API key properly, as it will only be displayed once. If you accidentally close the dialog box, you can generate a new key on the API keys page and delete the old key that you forgot to save.

**Privacy**

Please note that the API key is sensitive information. Do not disclose it to anyone or share it in public.

## Note

If you want to use the free models provided by OpenRouter, you need to make additional settings, otherwise you will encounter errors when calling the free models.

* Visit the [Training, Logging, & Privacy settings page](https://openrouter.ai/settings/privacy).

* Check the `Enable free endpoints that may train on inputs` and `Enable free endpoints that may publish prompts` options to enable free models.

![Enable free models](https://everywhere.sylinko.com/model-provider/openrouter/enable-free-models.webp)
