Skip to content

Change where models may run, or the monthly cap per person

PATCH
/models
curl --request PATCH \
--url https://api.global.stillbox.example/v1/models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "policy": "any", "cap_usd_per_person": 1, "managed": true }'
Media typeapplication/json
object
policy

default returns to the region’s default.

string
Allowed values: any in_region default
cap_usd_per_person
number format: double
managed

Allow Stillbox’s own model keys, charged to credits at cost.

boolean

The new settings

Media typeapplication/json
object
region
required
string
policy
required

Whether agents may use models that run outside this region. Sovereign regions default to in_region.

string
Allowed values: any in_region
policy_is_default
required

The policy is the region’s default, not one the organization chose.

boolean
policy_locked

The region’s operator keeps every organization’s model calls in the region; the policy can’t be widened, and own endpoints run only at addresses the operator approved.

boolean
cap_usd_per_person
required

The most each person’s model calls may cost a month, estimated from list prices; 0 means no cap.

number format: double
secrets_ready
required

The region can keep company keys (it has a secrets key).

boolean
prices_as_of

The date of the price list costs are estimated from.

string
providers
required
Array<object>
object
provider
required

Anthropic’s or OpenAI’s API, or an OpenAI-compatible endpoint of your own.

string
Allowed values: anthropic openai custom
key_hint
required

The key’s last four characters.

string
base_url

For an own endpoint, its address.

string
location
required

Where calls are processed, as a region code (us, eu, uae, in, …). Outside the global region, an own endpoint’s location is the one the region’s operator approved for its address, or unverified.

string
left_region
required

Calls to it are processed outside this region.

boolean
blocked

The organization’s policy keeps agents from using it.

boolean
updated_at
required
string format: date-time
managed

Sandboxes may use Stillbox’s own model keys for providers the organization has no key for, charged to credits at cost.

boolean
managed_providers

The providers Stillbox offers keys for in this region, where they process calls, and whether the policy allows them.

Array<object>
object
provider
required
string
location
required
string
blocked
required
boolean

Example

{
"policy": "any",
"providers": [
{
"provider": "anthropic"
}
]
}

The request is invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

Only an owner can do this (owner_only), or the invitation is for another address (not_invited)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}