> For the complete documentation index, see [llms.txt](https://docs.layerlens.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layerlens.ai/more-in-this-section-3/rotate-byok-key.md).

# Rotate a BYOK API key

Guide — rotate a BYOK API key without downtime.

**Premium → Models → {custom model} → Rotate key**. Provide the new key. The previous key continues to work for 24 hours during the grace period.

## See also

* [BYOK custom models](/5.-select-pick-the-model/byok-custom-models.md)
