Skip to content

Add or replace an organization model key

PUT
/models/providers/{provider}
curl --request PUT \
--url https://api.global.stillbox.example/v1/models/providers/anthropic \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "api_key": "example", "base_url": "example", "location": "example" }'

Every member’s agents then use it through the platform; the key itself never enters a sandbox. For custom, give an OpenAI-compatible endpoint (https) and where it runs.

provider
required

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

string
Allowed values: anthropic openai custom
Media typeapplication/json
object
api_key
required
string
>= 8 characters <= 4096 characters
base_url

For custom only, an https address, e.g. https://my-endpoint.example.com/v1

string
location

For custom only, where it runs, as a region code (us, eu, uae, in, uk, sg, sa, …). Needed in the global region; elsewhere the region’s operator sets it, and this is ignored.

string

Example generated

{
"api_key": "example",
"base_url": "example",
"location": "example"
}

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"
}