Inference Providers

Create LiteLLM gateway provider

Changed on

Connects the organization's own LiteLLM proxy and syncs its models. mode=entra is for a proxy that accepts sign-in tokens instead of LiteLLM keys: it stores the Entra app registration (oauthTenantId, oauthClientId, write-only oauthClientSecret), one API scope (oauthScope) and the model list (modelIds), creates an "All LiteLLM models" group granted to the given audiences, reads nothing from the proxy, and each person then signs in with Microsoft through oauth/start. mode=oidc is the same for a proxy that validates the company's own OpenID Connect access tokens (JWT auth), when the organization has SSO model sign-in: it checks and stores the authorization server's issuer (oidcIssuer, whose discovery document must name exactly that issuer), the app people sign in through (oauthClientId, write-only oauthClientSecret), one or more API scopes (oidcScope) and modelIds, and each person signs in once with company SSO; 403 feature_disabled when the organization does not have it. mode=org stores one organization LiteLLM key used for everyone, creates an "All LiteLLM models" group granted to the given audiences, and keeps OpenWork spend tracking and limits on. mode=member stores a LiteLLM admin key used only to sync models and teams; each person then connects their own LiteLLM key, which picks the shared group matching that key's models. The given audiences are granted the empty "Can connect a LiteLLM key" group, and OpenWork spend tracking is off because LiteLLM budgets those keys. Keys are write-only. Requires the Manage Gateway providers permission and Gateway management; session callers must recently reauthenticate.

post/v1/inference-providers/litellm

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Request body

union required
object required
OR
object required
OR
object required

Response

Create LiteLLM gateway provider

object required
inferenceProvider, GatewayProviderDetails required
sync, object required

Changes

    • info

      added the optional property inferenceProvider/litellm/signInCheck to the response with the status

    • warning

      added the new oauth_oidc enum value to the inferenceProvider/credentials/items/kind response property for the response status

    • warning

      added the new oidc enum value to the inferenceProvider/litellm/keySource/anyOf[subschema #1] response property for the response status

    3 more changes in this revision