Skip to main content
PUT
Set account model provider

Authorizations

Authorization
string
header
required

Send a dashboard session token, an account API key (agt_t), or a command-line credential (afc_) as a Bearer token. Each endpoint lists accepted credential types.

Body

application/json

PUT /v1/tenants/me/provider.

mode
enum<string>
required

Whose key to dial with.

Available options:
platform,
self_managed
model
string | null

The model to select, if the tenant is changing it.

secret_ref
string | null

The credential to dial with, required under self-managed mode.

Response

OK

GET /v1/tenants/me/provider, and what a write answers with.

context_cap_tokens
integer<int32>
required

The context window the catalogue prices this model at.

Required range: x >= 0
mode
enum<string>
required

Whose key this tenant's runs dial with.

Available options:
platform,
self_managed
model
string
required

The model identifier as the provider spells it.

platform_default_available
boolean
required

Whether an active platform-default row exists at all.

provider
string
required

The provider the model belongs to.

secret_ref
string | null

The credential dialled under self-managed mode.