# How can i regenerate new api keys?

**URL:** <https://community.imagekit.io/t/how-can-i-regenerate-new-api-keys/153>\
**Category:** General\
**Created:** [June 19, 2025, 2:45pm UTC](https://community.imagekit.io/t/how-can-i-regenerate-new-api-keys/153 "2025-06-19T14:45:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BhavyaVaishnav](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@BhavyaVaishnav](https://community.imagekit.io/u/BhavyaVaishnav)\
**Post date:** [June 19, 2025, 2:45pm UTC](https://community.imagekit.io/t/how-can-i-regenerate-new-api-keys/153/1 "2025-06-19T14:45:44Z")

</div>

i have created keys for my project but now i want to change the keys,there are no options of regeneration on API keys page so how can i do that?

---

<div class="post-metadata">

**Author:** ![imagekit\_kashish](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.imagekit.io/imagekit_kashish/32/8_2.png) [@imagekit\_kashish](https://community.imagekit.io/u/imagekit_kashish)\
**Post date:** [June 20, 2025, 3:12pm UTC](https://community.imagekit.io/t/how-can-i-regenerate-new-api-keys/153/2 "2025-06-20T15:12:54Z")

</div>

Under the **Developer Options → [API Key](https://imagekit.io/dashboard/developer/api-keys)** section of your ImageKit account, there is an option to **Roll your API keys**.

 ![Screenshot 2025-06-20 at 8.38.22 PM](https://canada1.discourse-cdn.com/flex032/uploads/imagekit/original/1X/7d0ad4db86d959526dc77dade68f267cb07f4419.png)

When initiating a key rotation, you can specify an expiry period for the existing key:

- Immediately
- In 1 hour
- In 24 hours
- In 3 days
- In 7 days

The selected expiry duration determines when the current key will be blocked and deactivated. Regardless of the chosen expiry timeframe, the newly generated key becomes active and available for use immediately. Read more on this in our documentation [**here**](https://imagekit.io/docs/api-keys#rolling-keys).
