Get LLM API key for BYOR
GET /api/keys/llm/byor
Get the LLM API key for BYOR (Bring Your Own Runtime). This endpoint validates that the key exists in LiteLLM before returning it. If validation fails, it automatically generates a new key to ensure users always receive a working key. Returns 402 Payment Required if BYOR export is not enabled for the request's effective org.
Responses
| Status | Description |
|---|---|
200 | Successful Response |
Response body
| Field | Type | Required | Description |
|---|---|---|---|
key | `string | null` | yes |
Operation ID: get_llm_api_key_for_byor_api_keys_llm_byor_get