How to get an OpenRouter API key
OpenRouter gives you one API key for models from many companies, such as Anthropic, OpenAI, Google, Meta, Mistral and DeepSeek. Connect it to use Generate with AI with any of them.
Create the key
- Sign in to OpenRouter, or create an account: openrouter.ai.
- Add credits to your account: openrouter.ai/settings/credits. Generations are paid from these credits.
- Open Keys - direct link: openrouter.ai/settings/keys - select Create API key, name it (for example
Workflow Trigger Extensions) and copy the key. It starts withsk-or-and is shown only once. You can set a credit limit on the key.
OpenRouter's own guide: openrouter.ai/docs/quickstart.
Connect it
- In your Shopify admin, open Workflow Trigger Extensions -> Developer -> Connections.
- Paste the key into the OpenRouter card and select Save key.
Your key is encrypted at rest and used only for generation. It is never shown again, and it never runs inside your trigger code. Then open a custom trigger and use Generate with AI on the Code tab: pick OpenRouter and a model. For a model that is not in the list, choose Other model id and enter its id, for example mistralai/mistral-large.

