Skip to main content

OpenRouter

Set up OpenRouter — a gateway that exposes many different models behind a single API key — as your SmartHopper provider.

1. Create an account​

Visit OpenRouter and create a new account or log in.

OpenRouter login

2. Generate an API key​

Navigate to API Keys and click Create new key. Make sure you have available credits in your account.

Create a key

3. Copy the API key​

This is the last time you'll be able to copy this key — store it somewhere safe.

Copy the key

4. Open SmartHopper settings​

In the Grasshopper menu bar, click SmartHopper → Settings.

SmartHopper menu

5. Set OpenRouter as your default provider​

Under the General tab, select OpenRouter in the default provider dropdown.

Set OpenRouter as default

6. Enter your API key​

Click the OpenRouter tile on the General tab and paste the API key you copied.

OpenRouter settings

Picking models on OpenRouter

OpenRouter routes to models from many vendors. Use the AIModels component or the model dropdown on any AI component to browse what each model supports before selecting it.