LLM Usage

Set or clear this workspace's monthly cap on its own-provider LLM spend

Changed on
put/workspaces/{workspaceSlug}/llm/budget

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /workspaces/{workspaceSlug}/llm/budget
  • Auth: HTTP bearer

Path parameters

workspaceSlugstring required

Workspace slug

Request body

monthlyBudgetUsdnumber

Cap in USD; 0 pauses the affected work immediately, null removes the cap. The purse it governs is the one the path names, and only that one: /admin/workspaces/{workspaceSlug}/llm/budget caps spend on shared (instance) models, /workspaces/{workspaceSlug}/llm/budget caps the workspace's spend on its own connected provider. The two are never added together.

Response

Cap updated

Changes

    • breaking

      for the path request parameter workspaceSlug, the minLength was increased from 0 to 3

    • warning

      for the path request parameter workspaceSlug, the maxLength was set to 51

    • warning

      changed the pattern of the path request parameter workspaceSlug from ^[a-z0-9][a-z0-9-]{2,50}$ to ^(?!.*--)[a-z0-9][a-z0-9-]{1,49}[a-z0-9]$