> 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-9/byok-models.md).

# BYOK custom models

REST — BYOK custom-model endpoints.

| Method | Path                             | Description             |
| ------ | -------------------------------- | ----------------------- |
| POST   | `/api/v1/model-keys`             | Register endpoint + key |
| GET    | `/api/v1/model-keys`             | List (masked)           |
| POST   | `/api/v1/model-keys/{id}/rotate` | Rotate                  |
| DELETE | `/api/v1/model-keys/{id}`        | Revoke                  |
| POST   | `/api/v1/model-keys/{id}/test`   | Probe endpoint          |

## See also

* [Concept: BYOK models](/more-in-this-section-9/byok-models.md)
* [Premium UI: BYOK custom models](/5.-select-pick-the-model/byok-custom-models.md)
