Inference Providers

Create TrueFoundry gateway provider

Changed on

Connects the organization's TrueFoundry AI Gateway with one TrueFoundry admin key (a virtual account token with the tenant admin role) and syncs its chat models. The given audiences are granted the empty "Gets a TrueFoundry key" group. For each allowed person, OpenWork finds their TrueFoundry user by OpenWork email (or, with createMissingUsers, adds them), creates one personal access token owned by that user, stores it as the person's own credential and grants the shared group matching the models that token can reach. TrueFoundry budgets and logs those tokens; OpenWork prices requests and applies usage limits only with trackUsageCosts on, for models with public pricing. Keys are write-only. Requires the Manage Gateway providers permission and Gateway management; session callers must recently reauthenticate.

post/v1/inference-providers/truefoundry

Request

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

Request body

object required
name, string
controlPlaneUrl, string required

The address people open TrueFoundry at, e.g. https://acme.truefoundry.cloud.

gatewayUrl, string

The TrueFoundry AI Gateway base URL when it is not <controlPlaneUrl>/api/llm.

apiKey, string required

A TrueFoundry virtual account token with the tenant admin role. Write-only; never a personal access token.

createMissingUsers, boolean

Create missing users in TrueFoundry: when an allowed person's OpenWork email is not a TrueFoundry user, add them to TrueFoundry (default member role, no invite email) and create their token. They get only TrueFoundry's default models until a TrueFoundry admin configures their teams and access.

trackUsageCosts, boolean

Track usage costs in OpenWork: where a TrueFoundry model has public pricing (from its matched models.dev model), price each person's requests at it in OpenWork, so they count towards the person's usage limits and usage tracking. Off by default: TrueFoundry alone budgets these requests.

allMembers, boolean
memberIds, string[]
teamIds, string[]

Response

Create TrueFoundry 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

    2 more changes in this revision