How do I change or regenerate my API key?

1 min read · Last updated June 2026

To replace your master key, regenerate it. The old key stops working immediately, so update it everywhere you use it. Sub-keys cannot be regenerated, so to replace one you delete it and create a new sub-key.

Regenerate your master key

The Regenerate button is on both the Dashboard overview and the API keys page.

  1. Sign in and open Dashboard, or API keys for the fuller view.
  2. On the master key, click Regenerate and confirm.
  3. Copy the new key (it starts with sk_live_).

Update it in the plugin

  1. In WordPress, go to Media > SlashImage.
  2. Paste the new key into the key field and click Reconnect.
  3. Confirm the connection pill reads Connected.

If you use the key on more than one site, update it on each one. Optimizing resumes on a site as soon as it has the new key.

Replace a sub-key

Sub-keys can't be regenerated. To replace one, open API keys, click Revoke on the old sub-key, then create a new one. Copy the new sk_sub_ key and connect it on the site that used the old key. See What are sub-keys and how do I create them?.

See also

Was this helpful?