Inference Providers

Update LiteLLM key or key creation

Changed on

Verifies and stores a new organization LiteLLM key (org mode) or LiteLLM admin key (member and issued modes), and in issued mode changes how keys are created, then syncs. Changing issueStrategy replaces existing created keys at that sync. The proxy URL and mode are fixed; create a new provider to change them. Keys are write-only. Requires the Manage Gateway providers permission and Gateway management; session callers must recently reauthenticate.

patch/v1/inference-providers/{inferenceProviderId}/litellm

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/inference-providers/{inferenceProviderId}/litellm
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

inferenceProviderIdstring typeid required

Den TypeID with 'ipr_' prefix and a 26-character base32 suffix.

Request body

apiKeystring
issueStrategy'per_team' | 'mirror'

issued mode. per_team: one key per LiteLLM team the person belongs to, or one key without a team when they are in none. mirror: a copy of their oldest active key (team, models, aliases, tags, expiry; never key-level budgets or rate limits).

mirrorFallback'per_team' | 'error'

issued + mirror: for someone with no key to copy, create per-team keys, or report them and create nothing.

Response

Update LiteLLM key or key creation

Changes

    • info

      added the required property / to the response with the status

    • info

      added the optional property / to the response with the status