Admin

Set a sandbox's model credit

Changed on

Sets the spending cap, in US dollars, on the sandbox's own OpenRouter key (the total, not an increment). 400 when the sandbox uses the deployment's shared key. Platform administrators only.

post/v1/admin/sandbox-orgs/{sandboxId}/credit

Request

  • Base URL
    https://api.openworklabs.com
  • URL
    https://api.openworklabs.com/v1/admin/sandbox-orgs/{sandboxId}/credit
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

sandboxIdstring required

Request body

creditUsdinteger required

Response

Updated sandbox.

Changes