Skip to main content

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

StatusDescription
200Successful Response

Response body

FieldTypeRequiredDescription
key`stringnull`yes

Operation ID: get_llm_api_key_for_byor_api_keys_llm_byor_get