How to get an OpenAI API key

To create, edit and translate email layouts with GPT, connect your own OpenAI API key. Creating one takes a minute.

Create the key

  1. Sign in to the OpenAI platform, or create an account: platform.openai.com.
  2. Open API keys, direct link: platform.openai.com/api-keys.
  3. Select Create new secret key, name it (for example Workflow Transactional Email) and copy the key. It starts with sk- and is shown only once.
  4. Make sure your OpenAI account has a payment method or credit: platform.openai.com/settings/organization/billing. Generations are billed to your account.

OpenAI's own quickstart for the API: developers.openai.com/api/docs/quickstart.

Connect it

  1. In your Shopify admin, open Workflow Transactional Email > Developer > Connections.
  2. Paste the key into the OpenAI card and select Save key. The key is checked with the provider before it is saved.
  3. Pick your Default model from the list of models your key can use.

The key is encrypted and used only when you generate, edit or translate a layout. It is never shown again. Then create a layout, or open one and use Edit with AI.